| | |
| | | |
| | | <select id="selectCustomizePage" resultType="cn.gistack.sm.resDataCheck.vo.QualityManageDetailVO"> |
| | | SELECT |
| | | MAX(id) id, |
| | | RES_ID, |
| | | is_gate, |
| | | eng_scal, |
| | | is_danger, |
| | | town_code, |
| | | town_name, |
| | | county_code, |
| | | county_name, |
| | | city_code, |
| | | city_name, |
| | | res_reg_code, |
| | | res_name, |
| | | rz, |
| | | tb_weir_top_elevation, |
| | | tb_norm_pool_stag, |
| | | tb_control_z, |
| | | tb_des_fl_stag, |
| | | tb_dam_top_elevation, |
| | | tb_dead_stag, |
| | | replace(wm_concat(remark),',',';') as remark |
| | | MAX(is_gate) is_gate, |
| | | MAX(eng_scal) eng_scal, |
| | | MAX(is_danger) is_danger, |
| | | MAX(town_code) town_code, |
| | | MAX(town_name) town_name, |
| | | MAX(county_code)county_code, |
| | | MAX(county_name)county_name, |
| | | MAX(city_code) city_code, |
| | | MAX(city_name) city_name, |
| | | MAX(res_reg_code) res_reg_code, |
| | | MAX(res_name) res_name, |
| | | MAX(rz) rz, |
| | | MAX(tb_weir_top_elevation) tb_weir_top_elevation, |
| | | MAX(tb_norm_pool_stag) tb_norm_pool_stag, |
| | | MAX(tb_control_z) tb_control_z, |
| | | MAX(tb_des_fl_stag) tb_des_fl_stag, |
| | | MAX(tb_dam_top_elevation) tb_dam_top_elevation, |
| | | MAX(tb_dead_stag) tb_dead_stag, |
| | | replace(wm_concat(remark),',',';') as remark, |
| | | MAX(create_time) create_time |
| | | from YWXT.SM_RES_DATA_QUALITY_MANAGE_DETAIL |
| | | where |
| | | 1=1 |
| | | <if test="vo.resId != null and vo.resId != ''"> |
| | | res_id = #{vo.resId} |
| | | AND res_id = #{vo.resId} |
| | | </if> |
| | | <if test="vo.resName != null and vo.resName != ''"> |
| | | res_name LIKE CONCAT('%', #{vo.resName},'%') |
| | | AND res_name LIKE CONCAT('%', #{vo.resName},'%') |
| | | </if> |
| | | <if test="vo.startTime != null and vo.startTime != ''"> |
| | | AND DATE_FORMAT(create_time,'%Y-%m-%d') >= #{vo.startTime} |
| | |
| | | AND DATE_FORMAT(create_time,'%Y-%m-%d') <= #{vo.endTime} |
| | | </if> |
| | | <if test="vo.engScal != null and vo.engScal != ''"> |
| | | eng_scal = #{vo.engScal} |
| | | and eng_scal = #{vo.engScal} |
| | | </if> |
| | | <if test="vo.isDanger != null and vo.isDanger != ''"> |
| | | and is_danger = #{vo.isDanger} |
| | | </if> |
| | | <if test="vo.cityCode != null and vo.cityCode != ''"> |
| | | city_code = #{vo.cityCode} |
| | | and city_code = #{vo.cityCode} |
| | | </if> |
| | | <if test="vo.countyCode != null and vo.countyCode != ''"> |
| | | county_code = #{vo.countyCode} |
| | | and county_code = #{vo.countyCode} |
| | | </if> |
| | | <if test="vo.townCode != null and vo.townCode != ''"> |
| | | town_code= #{vo.townCode} |
| | | and town_code= #{vo.townCode} |
| | | </if> |
| | | GROUP BY |
| | | RES_ID, |
| | | is_gate, |
| | | eng_scal, |
| | | is_danger, |
| | | town_code, |
| | | town_name, |
| | | county_code, |
| | | county_name, |
| | | city_code, |
| | | city_name, |
| | | res_reg_code, |
| | | res_name, |
| | | rz, |
| | | tb_weir_top_elevation, |
| | | tb_norm_pool_stag, |
| | | tb_control_z, |
| | | tb_des_fl_stag, |
| | | tb_dam_top_elevation, |
| | | tb_dead_stag |
| | | RES_ID |
| | | </select> |
| | | </mapper> |