| | |
| | | |
| | | |
| | | <select id="selectReportFloodRecordPages" resultMap="vo"> |
| | | SELECT R.*, |
| | | SELECT R.*,arfl."tb_flse_lim_stag" tbFlseLimStag,r.main_z - arfl."tb_flse_lim_stag" mainBe,r.person_rz - arfl."tb_flse_lim_stag" personBe, |
| | | arb."name" reservoirName , |
| | | |
| | | arb."res_reg_code" as resRegCode, |
| | |
| | | LEFT JOIN SJZT_MD."att_ad_base" county ON town."p_ad_code" = county."guid" |
| | | LEFT JOIN SJZT_MD."att_ad_base" city ON county."p_ad_code" = city."guid" |
| | | LEFT JOIN SJZT_MD."att_ad_base" province ON province."guid" = city."p_ad_code" |
| | | left join sjzt_md."att_res_flse_lim" arfl on arfl."res_guid" = arb."guid" and arfl."is_use" = 1 |
| | | |
| | | WHERE r.is_deleted = 0 |
| | | <if test=" reportFloodRecord.adCode!= null and reportFloodRecord.adCode !='' "> |
| | |
| | | AND r.reservoir_id = #{reportFloodRecord.reservoirId} |
| | | </if> |
| | | <if test="reportFloodRecord.startTime !=null and reportFloodRecord.startTime !=''"> |
| | | AND DATE_FORMAT(r.create_time,'%Y-%m-%d') >= #{reportFloodRecord.startTime} |
| | | AND DATE_FORMAT(r.report_time,'%Y-%m-%d') >= #{reportFloodRecord.startTime} |
| | | </if> |
| | | <if test="reportFloodRecord.endTime !=null and reportFloodRecord.endTime !=''"> |
| | | AND DATE_FORMAT(r.create_time,'%Y-%m-%d') <= #{reportFloodRecord.endTime} |
| | | AND DATE_FORMAT(r.report_time,'%Y-%m-%d') <= #{reportFloodRecord.endTime} |
| | | </if> |
| | | <if test="reportFloodRecord.createUser !=null and reportFloodRecord.createUser !=''"> |
| | | AND r.create_user = #{reportFloodRecord.createUser} |
| | | </if> |
| | | <if test="reportFloodRecord.isOver !=null and reportFloodRecord.isOver !=''"> |
| | | AND r.is_over = #{reportFloodRecord.isOver} |
| | | </if> |
| | | <if test="reportFloodRecord.isStatus !=null and reportFloodRecord.isStatus !=''"> |
| | | AND r.status = #{reportFloodRecord.isStatus} |
| | | </if> |
| | | <if test="reportFloodRecord.gateStatus !=null and reportFloodRecord.gateStatus !=''"> |
| | | AND r.gate_status = #{reportFloodRecord.gateStatus} |
| | | </if> |
| | | |
| | | <if test="reportFloodRecord.resRegCode != null and reportFloodRecord.resRegCode != ''"> |
| | |
| | | </if> |
| | | |
| | | |
| | | ORDER BY CREATE_TIME DESC |
| | | --ORDER BY CREATE_TIME DESC |
| | | </select> |
| | | <select id="customizeGetDetail" resultMap="vo"> |
| | | |