Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV
| | |
| | | <if test="intakeName != null and intakeName != ''"> |
| | | and pint.name like CONCAT('%', #{intakeName,jdbcType=VARCHAR}, '%') |
| | | </if> |
| | | <if test="lossAmountGreaterOrEqual != null "> |
| | | and rldl.loss_amount >= #{lossAmountGreaterOrEqual,jdbcType=DOUBLE} |
| | | </if> |
| | | <if test="startDt != null"> |
| | | and rldl.dt >= #{startDt,jdbcType=DATE} |
| | | </if> |
| | |
| | | <if test="intakeName != null and intakeName != ''"> |
| | | and pint.name like CONCAT('%', #{intakeName,jdbcType=VARCHAR}, '%') |
| | | </if> |
| | | <if test="lossAmountGreaterOrEqual != null "> |
| | | and rldl.loss_amount >= #{lossAmountGreaterOrEqual,jdbcType=DOUBLE} |
| | | </if> |
| | | <if test="startDt != null"> |
| | | and rldl.dt >= #{startDt,jdbcType=DATE} |
| | | </if> |
| | |
| | | and rldl.dt <= #{endDt,jdbcType=DATE} |
| | | </if> |
| | | </where> |
| | | ORDER BY rldl.dt DESC, rldl.loss_amount DESC |
| | | <!-- <if test="pageCurr != null and pageSize != null">--> |
| | | <!-- LIMIT ${(pageCurr-1)*pageSize}, ${pageSize}--> |
| | | <!-- </if>--> |
| | | ORDER BY rldl.dt_last DESC |
| | | <trim prefix="limit "> |
| | | <if test="start != null and count != null"> |
| | | #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER} |
| | |
| | | <if test="intakeName != null and intakeName != '' "> |
| | | and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | <if test="lossAmountGreaterOrEqual != null "> |
| | | and rld.loss_amount >= #{lossAmountGreaterOrEqual,jdbcType=DOUBLE} |
| | | </if> |
| | | <if test="startDt != null"> |
| | | and rld.dt >= #{startDt,jdbcType=DATE} |
| | | </if> |
| | |
| | | <if test="intakeName != null and intakeName != '' "> |
| | | and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | <if test="lossAmountGreaterOrEqual != null "> |
| | | and rld.loss_amount >= #{lossAmountGreaterOrEqual,jdbcType=DOUBLE} |
| | | </if> |
| | | <if test="startDt != null"> |
| | | and rld.dt >= #{startDt,jdbcType=DATE} |
| | | </if> |
| | |
| | | and rld.dt <= #{endDt,jdbcType=DATE} |
| | | </if> |
| | | </where> |
| | | ORDER BY rld.dt DESC , rld.loss_amount DESC |
| | | <!-- <if test="pageCurr != null and pageSize != null">--> |
| | | <!-- LIMIT {(pageCurr-1)*pageSize}, ${pageSize}--> |
| | | <!-- </if>--> |
| | | ORDER BY rld.id DESC |
| | | <trim prefix="limit " > |
| | | <if test="start != null and count != null"> |
| | | #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER} |
| | |
| | | oh.cl_total_amount AS closeTotalAmount |
| | | FROM rm_open_close_valve_last oh |
| | | LEFT JOIN pr_intake inta ON inta.id = oh.intake_id |
| | | LEFT JOIN ba_client cl ON cl.id = oh.client_id |
| | | LEFT JOIN se_client cl ON cl.id = oh.client_id |
| | | <where> |
| | | <if test="intakeId != null and intakeId > 0"> |
| | | AND oh.intake_id = #{intakeId} |
| | |
| | | @Schema(description = "取水口ID") |
| | | private String intakeId; |
| | | |
| | | @Schema(description = "漏损大于等于") |
| | | private Double lossAmountGreaterOrEqual; |
| | | |
| | | @Schema(description = "统计开始日期", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |