| | |
| | | List<VoDayLoss> selectIntakes4LossDay(Map<?, ?> params) ; |
| | | |
| | | /** |
| | | * 查询统计取水口日漏损量,统计取水口数量 |
| | | * 查询统计取水口日漏损量 |
| | | * @param params |
| | | * @return |
| | | */ |
| | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.dy.pipIrrGlobal.pojoSt.StLossMonth; |
| | | import com.dy.pipIrrGlobal.voSt.VoIntakeLossStatistics; |
| | | import com.dy.pipIrrGlobal.voSt.VoMonthAmount; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Author: liurunyu |
| | |
| | | */ |
| | | List<VoIntakeLossStatistics> statisticsByIntake(Integer year) ; |
| | | |
| | | |
| | | //////////////////////////////////////////////// |
| | | // 统计查询 |
| | | /////////////////////////////////////////////// |
| | | |
| | | /** |
| | | * 为查询统计取水口日漏损量,统计取水口数量 |
| | | * @param intakeN |
| | | * @return |
| | | */ |
| | | Long selectIntakeCount4LossMonth(@Param("intakeNum")String intakeN) ; |
| | | |
| | | /** |
| | | * 为查询统计取水口日漏损量,查询一页取水口ID |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<VoMonthAmount> selectIntakes4LossMonth(Map<?, ?> params) ; |
| | | |
| | | /** |
| | | * 查询统计取水口月漏损量 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | //下面1到12月分了2个查询,原因是在一个查询中,非常慢,不知道什么原因,也许是子查询太多的原因 |
| | | List<VoMonthAmount> selectLossAmountOfMonth01_06(Map<?, ?> params); |
| | | List<VoMonthAmount> selectLossAmountOfMonth07_12(Map<?, ?> params); |
| | | |
| | | } |
| | |
| | | */ |
| | | |
| | | @Data |
| | | @JsonPropertyOrder({ "intakeId", "intakeNum", "month1" , "month2" , "month3" , "month4" , "month5" , "month6" , "month7" , "month8" , "month9" , "month10" , "month11" , "month12" }) |
| | | @JsonPropertyOrder({ "intakeId", "intakeNum", "intakeLng", "intakeLat", "month1" , "month2" , "month3" , "month4" , "month5" , "month6" , "month7" , "month8" , "month9" , "month10" , "month11" , "month12" }) |
| | | public class VoMonthAmount { |
| | | private static final long serialVersionUID = 202408081417001L; |
| | | public static final long serialVersionUID = 202408081417001L; |
| | | |
| | | /** |
| | | * 取水口ID |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | private Long intakeId; |
| | | public Long intakeId; |
| | | |
| | | /** |
| | | * 取水口编号 |
| | | */ |
| | | private String intakeNum; |
| | | public String intakeNum; |
| | | |
| | | /** |
| | | * 经度 |
| | | */ |
| | | public Double intakeLng; |
| | | /** |
| | | * 纬度 |
| | | */ |
| | | public Double intakeLat; |
| | | |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double month1; |
| | | public Double month1; |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double month2; |
| | | public Double month2; |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double month3; |
| | | public Double month3; |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double month4; |
| | | public Double month4; |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double month5; |
| | | public Double month5; |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double month6; |
| | | public Double month6; |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double month7; |
| | | public Double month7; |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double month8; |
| | | public Double month8; |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double month9; |
| | | public Double month9; |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double month10; |
| | | public Double month10; |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double month11; |
| | | public Double month11; |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Double month12; |
| | | public Double month12; |
| | | } |
| | |
| | | from rm_loss_day |
| | | <where> |
| | | <if test="startDt != null "> |
| | | AND dt <![CDATA[>=]]> #{startDt, jdbcType=DATE, jdbcType=DATE} |
| | | AND dt <![CDATA[>=]]> #{startDt, javaType=DATE, jdbcType=DATE} |
| | | </if> |
| | | <if test="endDt != null "> |
| | | AND dt <![CDATA[<]]> #{endDt, jdbcType=DATE, jdbcType=DATE} |
| | | AND dt <![CDATA[<]]> #{endDt, javaType=DATE, jdbcType=DATE} |
| | | </if> |
| | | </where> |
| | | order by intake_id DESC, id ASC |
| | |
| | | |
| | | |
| | | <sql id="selectLossAmountOfDay_with"> |
| | | WITH intakeLossAmountDay AS ( |
| | | SELECT intaId.intakeId AS intakeId, |
| | | rld.dt AS dt, |
| | | rld.loss_amount AS lossAmount |
| | |
| | | INNER JOIN rm_loss_day rld ON rld.intake_id = intaId.intakeId |
| | | <where> |
| | | <if test="startDt != null "> |
| | | AND rld.dt <![CDATA[>=]]> #{startDt, jdbcType=DATE, jdbcType=DATE} |
| | | AND rld.dt <![CDATA[>=]]> #{startDt, javaType=DATE, jdbcType=DATE} |
| | | </if> |
| | | <if test="endDt != null "> |
| | | AND rld.dt <![CDATA[<=]]> #{endDt, jdbcType=DATE, jdbcType=DATE} |
| | | AND rld.dt <![CDATA[<=]]> #{endDt, javaType=DATE, jdbcType=DATE} |
| | | </if> |
| | | </where> |
| | | ) |
| | | </sql> |
| | | |
| | | <!--统计指定月份各天漏损量(1号到5号)--> |
| | | <select id="selectLossAmountOfDay01_05" resultType="com.dy.pipIrrGlobal.voSt.VoDayLoss"> |
| | | <include refid="selectLossAmountOfDay_with" /> |
| | | WITH intakeLossAmountDay AS (<include refid="selectLossAmountOfDay_with"/>) |
| | | SELECT inta.intakeId AS intakeId, |
| | | inta.intakeNum AS intakeNum, |
| | | inta.intakeLng AS intakeLng, |
| | |
| | | |
| | | <!--统计指定月份各天漏损量(6号到10号)--> |
| | | <select id="selectLossAmountOfDay06_10" resultType="com.dy.pipIrrGlobal.voSt.VoDayLoss"> |
| | | <include refid="selectLossAmountOfDay_with" /> |
| | | WITH intakeLossAmountDay AS (<include refid="selectLossAmountOfDay_with"/>) |
| | | SELECT inta.intakeId AS intakeId, |
| | | inta.intakeNum AS intakeNum, |
| | | inta.intakeLng AS intakeLng, |
| | |
| | | |
| | | <!--统计指定月份各天漏损量(11号到15号)--> |
| | | <select id="selectLossAmountOfDay11_15" resultType="com.dy.pipIrrGlobal.voSt.VoDayLoss"> |
| | | <include refid="selectLossAmountOfDay_with" /> |
| | | WITH intakeLossAmountDay AS (<include refid="selectLossAmountOfDay_with"/>) |
| | | SELECT inta.intakeId AS intakeId, |
| | | inta.intakeNum AS intakeNum, |
| | | inta.intakeLng AS intakeLng, |
| | |
| | | |
| | | <!--统计指定月份各天漏损量(20号到16号)--> |
| | | <select id="selectLossAmountOfDay16_20" resultType="com.dy.pipIrrGlobal.voSt.VoDayLoss"> |
| | | <include refid="selectLossAmountOfDay_with" /> |
| | | WITH intakeLossAmountDay AS (<include refid="selectLossAmountOfDay_with"/>) |
| | | SELECT inta.intakeId AS intakeId, |
| | | inta.intakeNum AS intakeNum, |
| | | inta.intakeLng AS intakeLng, |
| | |
| | | |
| | | <!--统计指定月份各天漏损量(21号到25号)--> |
| | | <select id="selectLossAmountOfDay21_25" resultType="com.dy.pipIrrGlobal.voSt.VoDayLoss"> |
| | | <include refid="selectLossAmountOfDay_with" /> |
| | | WITH intakeLossAmountDay AS (<include refid="selectLossAmountOfDay_with"/>) |
| | | SELECT inta.intakeId AS intakeId, |
| | | inta.intakeNum AS intakeNum, |
| | | inta.intakeLng AS intakeLng, |
| | |
| | | |
| | | <!--统计指定月份各天漏损量(26号到31号)--> |
| | | <select id="selectLossAmountOfDay26_31" resultType="com.dy.pipIrrGlobal.voSt.VoDayLoss"> |
| | | <include refid="selectLossAmountOfDay_with" /> |
| | | WITH intakeLossAmountDay AS (<include refid="selectLossAmountOfDay_with"/>) |
| | | SELECT inta.intakeId AS intakeId, |
| | | inta.intakeNum AS intakeNum, |
| | | inta.intakeLng AS intakeLng, |
| | |
| | | group by intake_id |
| | | </select> |
| | | |
| | | |
| | | <!-- 为查询统计取水口日漏损量,统计取水口数量 --> |
| | | <select id="selectIntakeCount4LossMonth" resultType="java.lang.Long"> |
| | | SELECT COUNT(*) |
| | | FROM pr_intake tb |
| | | <where> |
| | | AND tb.deleted != 1 |
| | | <if test="intakeNum != null and intakeNum != ''"> |
| | | AND tb.name = #{intakeNum} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <!-- 为查询统计取水口日漏损量,查询一页取水口ID --> |
| | | <select id="selectIntakes4LossMonth" resultType="com.dy.pipIrrGlobal.voSt.VoMonthAmount"> |
| | | SELECT id as intakeId, |
| | | name as intakeNum, |
| | | lat as intakeLat, |
| | | lng as intakeLng |
| | | FROM pr_intake |
| | | <where> |
| | | AND deleted != 1 |
| | | <if test="intakeNum != null and intakeNum != ''"> |
| | | AND name = #{intakeNum} |
| | | </if> |
| | | </where> |
| | | order by id DESC |
| | | <trim prefix="limit " > |
| | | <if test="start != null and count != null"> |
| | | #{start, javaType=Integer, jdbcType=INTEGER}, #{count, javaType=Integer, jdbcType=INTEGER} |
| | | </if> |
| | | </trim> |
| | | </select> |
| | | |
| | | <sql id="selectLossAmountOfMonth_with"> |
| | | SELECT intaId.intakeId AS intakeId, |
| | | sld.year AS `year`, |
| | | sld.month AS `month`, |
| | | sld.amount AS amount |
| | | FROM JSON_TABLE( |
| | | #{intakesJson}, |
| | | '$[*]' COLUMNS ( |
| | | intakeId BIGINT PATH '$.intakeId' |
| | | ) |
| | | ) intaId |
| | | INNER JOIN st_loss_month sld ON sld.intake_id = intaId.intakeId |
| | | <where> |
| | | <if test="year != null "> |
| | | AND sld.year = #{year, javaType=Integer, jdbcType=INTEGER} |
| | | </if> |
| | | </where> |
| | | </sql> |
| | | |
| | | <!--统计指定月份各月漏损量(1号到6月)--> |
| | | <select id="selectLossAmountOfMonth01_06" resultType="com.dy.pipIrrGlobal.voSt.VoMonthAmount"> |
| | | WITH intakeLossAmountMonth AS (<include refid="selectLossAmountOfMonth_with" />) |
| | | SELECT inta.intakeId AS intakeId, |
| | | inta.intakeNum AS intakeNum, |
| | | inta.intakeLng AS intakeLng, |
| | | inta.intakeLat AS intakeLat, |
| | | tb01.amount AS month1, |
| | | tb02.amount AS month2, |
| | | tb03.amount AS month3, |
| | | tb04.amount AS month4, |
| | | tb05.amount AS month5, |
| | | tb06.amount AS month6 |
| | | FROM JSON_TABLE( |
| | | #{intakesJson}, |
| | | '$[*]' COLUMNS ( |
| | | intakeId BIGINT PATH '$.intakeId', |
| | | intakeNum VARCHAR(100) PATH '$.intakeNum', |
| | | intakeLng DOUBLE PATH '$.intakeLng', |
| | | intakeLat DOUBLE PATH '$.intakeLat' |
| | | ) |
| | | ) inta |
| | | LEFT JOIN ( |
| | | SELECT tb.intakeId AS intakeId, |
| | | tb.amount AS amount |
| | | FROM intakeLossAmountMonth AS tb |
| | | WHERE tb.year = #{year} |
| | | AND tb.month = 1 |
| | | ) as tb01 on tb01.intakeId = inta.intakeId |
| | | LEFT JOIN ( |
| | | SELECT tb.intakeId AS intakeId, |
| | | tb.amount AS amount |
| | | FROM intakeLossAmountMonth AS tb |
| | | WHERE tb.year = #{year} |
| | | AND tb.month = 2 |
| | | ) as tb02 on tb02.intakeId = inta.intakeId |
| | | LEFT JOIN ( |
| | | SELECT tb.intakeId AS intakeId, |
| | | tb.amount AS amount |
| | | FROM intakeLossAmountMonth AS tb |
| | | WHERE tb.year = #{year} |
| | | AND tb.month = 3 |
| | | ) as tb03 on tb03.intakeId = inta.intakeId |
| | | LEFT JOIN ( |
| | | SELECT tb.intakeId AS intakeId, |
| | | tb.amount AS amount |
| | | FROM intakeLossAmountMonth AS tb |
| | | WHERE tb.year = #{year} |
| | | AND tb.month = 4 |
| | | ) as tb04 on tb04.intakeId = inta.intakeId |
| | | LEFT JOIN ( |
| | | SELECT tb.intakeId AS intakeId, |
| | | tb.amount AS amount |
| | | FROM intakeLossAmountMonth AS tb |
| | | WHERE tb.year = #{year} |
| | | AND tb.month = 5 |
| | | ) as tb05 on tb05.intakeId = inta.intakeId |
| | | LEFT JOIN ( |
| | | SELECT tb.intakeId AS intakeId, |
| | | tb.amount AS amount |
| | | FROM intakeLossAmountMonth AS tb |
| | | WHERE tb.year = #{year} |
| | | AND tb.month = 6 |
| | | ) as tb06 on tb06.intakeId = inta.intakeId |
| | | </select> |
| | | |
| | | <!--统计指定月份各月漏损量(7号到12月)--> |
| | | <select id="selectLossAmountOfMonth07_12" resultType="com.dy.pipIrrGlobal.voSt.VoMonthAmount"> |
| | | WITH intakeLossAmountMonth AS (<include refid="selectLossAmountOfMonth_with" />) |
| | | SELECT inta.intakeId AS intakeId, |
| | | inta.intakeNum AS intakeNum, |
| | | inta.intakeLng AS intakeLng, |
| | | inta.intakeLat AS intakeLat, |
| | | tb07.amount AS month7, |
| | | tb08.amount AS month8, |
| | | tb09.amount AS month9, |
| | | tb010.amount AS month10, |
| | | tb011.amount AS month11, |
| | | tb012.amount AS month12 |
| | | FROM JSON_TABLE( |
| | | #{intakesJson}, |
| | | '$[*]' COLUMNS ( |
| | | intakeId BIGINT PATH '$.intakeId', |
| | | intakeNum VARCHAR(100) PATH '$.intakeNum', |
| | | intakeLng DOUBLE PATH '$.intakeLng', |
| | | intakeLat DOUBLE PATH '$.intakeLat' |
| | | ) |
| | | ) inta |
| | | LEFT JOIN ( |
| | | SELECT tb.intakeId AS intakeId, |
| | | tb.amount AS amount |
| | | FROM intakeLossAmountMonth AS tb |
| | | WHERE tb.year = #{year} |
| | | AND tb.month = 7 |
| | | ) as tb07 on tb07.intakeId = inta.intakeId |
| | | LEFT JOIN ( |
| | | SELECT tb.intakeId AS intakeId, |
| | | tb.amount AS amount |
| | | FROM intakeLossAmountMonth AS tb |
| | | WHERE tb.year = #{year} |
| | | AND tb.month = 8 |
| | | ) as tb08 on tb08.intakeId = inta.intakeId |
| | | LEFT JOIN ( |
| | | SELECT tb.intakeId AS intakeId, |
| | | tb.amount AS amount |
| | | FROM intakeLossAmountMonth AS tb |
| | | WHERE tb.year = #{year} |
| | | AND tb.month = 9 |
| | | ) as tb09 on tb09.intakeId = inta.intakeId |
| | | LEFT JOIN ( |
| | | SELECT tb.intakeId AS intakeId, |
| | | tb.amount AS amount |
| | | FROM intakeLossAmountMonth AS tb |
| | | WHERE tb.year = #{year} |
| | | AND tb.month = 10 |
| | | ) as tb010 on tb010.intakeId = inta.intakeId |
| | | LEFT JOIN ( |
| | | SELECT tb.intakeId AS intakeId, |
| | | tb.amount AS amount |
| | | FROM intakeLossAmountMonth AS tb |
| | | WHERE tb.year = #{year} |
| | | AND tb.month = 11 |
| | | ) as tb011 on tb011.intakeId = inta.intakeId |
| | | LEFT JOIN ( |
| | | SELECT tb.intakeId AS intakeId, |
| | | tb.amount AS amount |
| | | FROM intakeLossAmountMonth AS tb |
| | | WHERE tb.year = #{year} |
| | | AND tb.month = 12 |
| | | ) as tb012 on tb012.intakeId = inta.intakeId |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pipIrrGlobal.voSt.VoDayLoss; |
| | | import com.dy.pipIrrStatistics.intake.IntakeSv; |
| | | import com.dy.pipIrrStatistics.intake.qo.IntakeAmountQO; |
| | | import com.dy.pipIrrStatistics.result.StatisticlResultCode; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | return BaseResponseUtils.buildSuccess(this.sv.lossAmountOfDay(qo)); |
| | | } |
| | | |
| | | /** |
| | | * 查询指定月份各日漏损量 |
| | | * @param qo |
| | | * @return |
| | | */ |
| | | @GetMapping(path = "/lossAmountOfMonth") |
| | | @SsoAop() |
| | | public BaseResponse<QueryResultVo<List<VoDayLoss>>> lossAmountOfMonth(LossQo qo) throws Exception { |
| | | if(qo.getYear() == null) { |
| | | return BaseResponseUtils.buildErrorMsg("查询条件年度不能为空"); |
| | | } |
| | | return BaseResponseUtils.buildSuccess(this.sv.lossAmountOfMonth(qo)); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pipIrrGlobal.daoRm.RmLossDayMapper; |
| | | import com.dy.pipIrrGlobal.daoSt.StLossMonthMapper; |
| | | import com.dy.pipIrrGlobal.voSt.VoDayLoss; |
| | | import com.dy.pipIrrGlobal.voSt.VoMonthAmount; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.dubbo.common.utils.PojoUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import java.text.ParseException; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Optional; |
| | | |
| | | /** |
| | | * @Author: liurunyu |
| | |
| | | |
| | | @Autowired |
| | | private RmLossDayMapper rmLossDayMapper ; |
| | | |
| | | @Autowired |
| | | private StLossMonthMapper stLossMonthMapper ; |
| | | |
| | | /** |
| | | * 统计指定月份各天漏损量 |
| | |
| | | |
| | | List<VoDayLoss> list01_05 = rmLossDayMapper.selectLossAmountOfDay01_05(params); |
| | | if(list01_05 != null && list01_05.size() > 0){ |
| | | //下面1到31号分了6个查询,原因是入一个查询中,非常慢,不知道什么原因,也许是子查询太多的原因 |
| | | //下面1到31号分了6个查询,原因是在一个查询中,非常慢,不知道什么原因,也许是子查询太多的原因 |
| | | List<VoDayLoss> list06_10 = rmLossDayMapper.selectLossAmountOfDay06_10(params); |
| | | List<VoDayLoss> list11_15 = rmLossDayMapper.selectLossAmountOfDay11_15(params); |
| | | List<VoDayLoss> list16_20 = rmLossDayMapper.selectLossAmountOfDay16_20(params); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 统计指定月份各月漏损量 |
| | | * @param qo |
| | | * @return |
| | | */ |
| | | public QueryResultVo<List<VoMonthAmount>> lossAmountOfMonth(LossQo qo) throws ParseException { |
| | | QueryResultVo<List<VoMonthAmount>> rsVo = new QueryResultVo<>() ; |
| | | // 生成查询参数 |
| | | Map<String, Object> params = (Map<String, Object>) PojoUtils.generalize(qo) ; |
| | | // 获取符合条件的记录数 |
| | | Long itemTotal = stLossMonthMapper.selectIntakeCount4LossMonth(qo.intakeNum) ; |
| | | |
| | | if(itemTotal != null && itemTotal > 0){ |
| | | rsVo.pageSize = qo.pageSize ; |
| | | rsVo.pageCurr = qo.pageCurr ; |
| | | rsVo.calculateAndSet(itemTotal, params); |
| | | |
| | | List<VoMonthAmount> list = stLossMonthMapper.selectIntakes4LossMonth(params); |
| | | if(list == null || list.size() == 0){ |
| | | rsVo.obj = list ; |
| | | }else{ |
| | | String json = JSON.toJSONString(list) ; |
| | | params.put("intakesJson", json); |
| | | |
| | | List<VoMonthAmount> list01_06 = stLossMonthMapper.selectLossAmountOfMonth01_06(params); |
| | | if(list01_06 != null && list01_06.size() > 0){ |
| | | //下面1到12月分了2个查询,原因是在一个查询中,非常慢,不知道什么原因,也许是子查询太多的原因 |
| | | List<VoMonthAmount> list07_12 = stLossMonthMapper.selectLossAmountOfMonth07_12(params); |
| | | this.merge(list01_06, list07_12); |
| | | } |
| | | rsVo.obj = list01_06 ; |
| | | } |
| | | } |
| | | return rsVo ; |
| | | } |
| | | |
| | | private void merge(List<VoMonthAmount> list01_06, |
| | | List<VoMonthAmount> list07_12){ |
| | | for(VoMonthAmount vo01_06 : list01_06){ |
| | | for(VoMonthAmount vo07_12 : list07_12){ |
| | | if(vo01_06.intakeId.longValue() == vo07_12.intakeId.longValue()){ |
| | | vo01_06.month7 = vo07_12.month7 ; |
| | | vo01_06.month8 = vo07_12.month8 ; |
| | | vo01_06.month9 = vo07_12.month9 ; |
| | | vo01_06.month10 = vo07_12.month10 ; |
| | | vo01_06.month11 = vo07_12.month11 ; |
| | | vo01_06.month12 = vo07_12.month12 ; |
| | | break ; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |