| | |
| | | </if> |
| | | ) |
| | | where trd."guid" = tdud."dyke_id" and tdud."danger_level" = 1 and tdis."check_state" > 1 |
| | | <if test="vo.tbYear !=null and vo.tbYear !=''"> |
| | | AND tdud."tb_year" = #{vo.tbYear} |
| | | </if> |
| | | <if test="vo.tbQuarter !=null and vo.tbQuarter !=''"> |
| | | AND tdud."tb_quarter" = #{vo.tbQuarter} |
| | | </if> |
| | | ) as firstLength, |
| | | ( |
| | | select sum(tdud."danger_length") from sjzt_md."tb_dyke_unit_danger" tdud |
| | |
| | | </if> |
| | | ) |
| | | where trd."guid" = tdud."dyke_id" and tdud."danger_level" = 2 and tdis."check_state" > 1 |
| | | <if test="vo.tbYear !=null and vo.tbYear !=''"> |
| | | AND tdud."tb_year" = #{vo.tbYear} |
| | | </if> |
| | | <if test="vo.tbQuarter !=null and vo.tbQuarter !=''"> |
| | | AND tdud."tb_quarter" = #{vo.tbQuarter} |
| | | </if> |
| | | ) as secondLength, |
| | | ( |
| | | select sum(tdud."danger_length") from sjzt_md."tb_dyke_unit_danger" tdud |
| | |
| | | </if> |
| | | ) |
| | | where trd."guid" = tdud."dyke_id" and tdud."danger_level" = 3 and tdis."check_state" > 1 |
| | | <if test="vo.tbYear !=null and vo.tbYear !=''"> |
| | | AND tdud."tb_year" = #{vo.tbYear} |
| | | </if> |
| | | <if test="vo.tbQuarter !=null and vo.tbQuarter !=''"> |
| | | AND tdud."tb_quarter" = #{vo.tbQuarter} |
| | | </if> |
| | | ) as thirdLength |
| | | |
| | | from sjzt_md."tb_res_dyke" trd |