| | |
| | | <if test="params.tbYear != null and params.tbYear !=''"> |
| | | and trgis."tb_year" = #{params.tbYear} |
| | | </if> |
| | | and trgis."check_state" = 1 |
| | | and (trgis."check_state" = 1 or trgis."check_state" = 2 or trgis."check_state" = 3) |
| | | )investigationResNum, |
| | | ( |
| | | SELECT COUNT(*) FROM |
| | |
| | | <if test="params.tbYear != null and params.tbYear !=''"> |
| | | and trgis."tb_year" = #{params.tbYear} |
| | | </if> |
| | | and trgis."check_state" = 2 |
| | | and trgis."check_state" = 3 |
| | | )checkResNum, |
| | | ( |
| | | SELECT COUNT(*) |
| | |
| | | <if test="params.tbYear != null and params.tbYear !=''"> |
| | | and tdis."tb_year" = #{params.tbYear} |
| | | </if> |
| | | and tdis."check_state" = 1 |
| | | and (tdis."check_state" = 1 or tdis."check_state" = 2 or tdis."check_state" = 3) |
| | | )investigationDykeNum, |
| | | ( |
| | | SELECT COUNT(*) FROM |
| | |
| | | <if test="params.tbYear != null and params.tbYear !=''"> |
| | | and tdis."tb_year" = #{params.tbYear} |
| | | </if> |
| | | and tdis."check_state" = 2 |
| | | and (tdis."check_state" = 2 or tdis."check_state" = 3) |
| | | )checkDykeNum, |
| | | IFNULL( |
| | | ( |
| | |
| | | group by tdi."tb_state_id",tdi."dyke_guid",tdi."unit" |
| | | )TEMP1 |
| | | ) tdi on tdi."tb_state_id" = tdis."guid" |
| | | where (tdis."check_state" = 1 or tdis."check_state" = 2) |
| | | where (tdis."check_state" = 1 or tdis."check_state" = 2 or tdis."check_state" = 3) |
| | | ) trd |
| | | LEFT JOIN YWXT."att_ad_base" county ON county."ad_code" = trd."ad_code" |
| | | LEFT JOIN YWXT."att_ad_base" city ON city."ad_code" = county."p_ad_code" |