| | |
| | | <if test="params.tbYear != null and params.tbYear !=''"> |
| | | and trgis."tb_year" = #{params.tbYear} |
| | | </if> |
| | | <if test="params.tbQuarter != null and params.tbQuarter !=''"> |
| | | AND trgis."tb_quarter" = #{params.tbQuarter} |
| | | </if> |
| | | and (trgis."check_state" > 1) |
| | | )investigationResNum, |
| | | ( |
| | |
| | | and (town."ad_code" = aab."guid" or county."ad_code" = aab."guid" or city."ad_code" = aab."guid" or province."ad_code" = aab."guid") |
| | | <if test="params.tbYear != null and params.tbYear !=''"> |
| | | and trgis."tb_year" = #{params.tbYear} |
| | | </if> |
| | | <if test="params.tbQuarter != null and params.tbQuarter !=''"> |
| | | AND trgis."tb_quarter" = #{params.tbQuarter} |
| | | </if> |
| | | and trgis."check_state" = 3 |
| | | )checkResNum, |
| | |
| | | <if test="params.tbYear != null and params.tbYear !=''"> |
| | | and trgis."tb_year" = #{params.tbYear} |
| | | </if> |
| | | <if test="params.tbQuarter != null and params.tbQuarter !=''"> |
| | | AND trgis."tb_quarter" = #{params.tbQuarter} |
| | | </if> |
| | | and trgis."check_state" = 3 and trgis.dangerNum is not null |
| | | )resMayiNum, |
| | | ( |
| | |
| | | <if test="params.tbYear != null and params.tbYear !=''"> |
| | | and tdis."tb_year" = #{params.tbYear} |
| | | </if> |
| | | <if test="params.tbQuarter != null and params.tbQuarter !=''"> |
| | | AND tdis."tb_quarter" = #{params.tbQuarter} |
| | | </if> |
| | | and (tdis."check_state" = 1 or tdis."check_state" = 2 or tdis."check_state" = 3) |
| | | )investigationDykeNum, |
| | | ( |
| | |
| | | <if test="params.tbYear != null and params.tbYear !=''"> |
| | | and tdis."tb_year" = #{params.tbYear} |
| | | </if> |
| | | <if test="params.tbQuarter != null and params.tbQuarter !=''"> |
| | | AND tdis."tb_quarter" = #{params.tbQuarter} |
| | | </if> |
| | | and (tdis."check_state" = 2 or tdis."check_state" = 3) |
| | | )checkDykeNum, |
| | | IFNULL( |
| | |
| | | <where> |
| | | <if test="params.tbYear != null and params.tbYear !=''"> |
| | | and tdis."tb_year" = #{params.tbYear} |
| | | </if> |
| | | <if test="params.tbQuarter != null and params.tbQuarter !=''"> |
| | | AND tdis."tb_quarter" = #{params.tbQuarter} |
| | | </if> |
| | | and tdis."check_state" >= 2 |
| | | </where> |
| | |
| | | <if test="params.tbYear != null and params.tbYear != ''"> |
| | | AND tdi."tb_year" = #{params.tbYear} |
| | | </if> |
| | | <if test="params.tbQuarter != null and params.tbQuarter !=''"> |
| | | AND tdi."tb_quarter" = #{params.tbQuarter} |
| | | </if> |
| | | group by tdi."tb_state_id",tdi."dyke_guid",tdi."unit" |
| | | )TEMP1 |
| | | ) tdi on tdi."tb_state_id" = tdis."guid" |