AND (((asjcz.laywsjzt is not null or asjcz.laywsjzt != '') and asjcz.laywsjzt!='02') or asjcz.laywsjzt is null or asjcz.laywsjzt='' )
AND (((asjcz.laywsjzt is not null and asjcz.laywsjzt != '') and asjcz.laywsjzt!='02' and asjcz.laywsjzt!='05') or asjcz.laywsjzt is null or asjcz.laywsjzt='' )
<iftest="unitcode != null and unitcode !=''">
<iftest="unitcode != null and unitcode !=''">
and asj.LADW_GAJGJGDM in (SELECT code FROM code_gxs WHERE CODE_LEV1 =#{unitcode, jdbcType=VARCHAR} or CODE_LEV2 =#{unitcode, jdbcType=VARCHAR} or CODE_LEV3 =#{unitcode, jdbcType=VARCHAR} or CODE_LEV4 =#{unitcode, jdbcType=VARCHAR} or CODE_LEV5 =#{unitcode, jdbcType=VARCHAR})
and asj.LADW_GAJGJGDM in (SELECT code FROM code_gxs WHERE CODE_LEV1 =#{unitcode, jdbcType=VARCHAR} or CODE_LEV2 =#{unitcode, jdbcType=VARCHAR} or CODE_LEV3 =#{unitcode, jdbcType=VARCHAR} or CODE_LEV4 =#{unitcode, jdbcType=VARCHAR} or CODE_LEV5 =#{unitcode, jdbcType=VARCHAR})
</if>
</if>
...
@@ -361,7 +361,7 @@
...
@@ -361,7 +361,7 @@
FROM tb_st_asj asj LEFT JOIN tb_xw_asjcz asjcz on asj.asjbh = asjcz.asjbh
FROM tb_st_asj asj LEFT JOIN tb_xw_asjcz asjcz on asj.asjbh = asjcz.asjbh
<includerefid="common-condition"/>
<includerefid="common-condition"/>
AND year(asj.larq)=year(now())
AND year(asj.larq)=year(now())
AND (((asjcz.zczjywsjzt is not null or asjcz.zczjywsjzt != '') and asjcz.zczjywsjzt!='02') or asjcz.zczjywsjzt is null or asjcz.zczjywsjzt = '')
AND (((asjcz.zczjywsjzt is not null and asjcz.zczjywsjzt != '') and asjcz.zczjywsjzt!='02') or asjcz.zczjywsjzt is null or asjcz.zczjywsjzt = '')
AND asjcz.laywsjzt = '02' and asjcz.zczjywsjzt='03'
AND asjcz.laywsjzt = '02' and asjcz.zczjywsjzt='03'
</if>
</if>
<iftest="gzt_type == '06'"><!--立案即将超期-->
<iftest="gzt_type == '06'"><!--立案即将超期-->
AND (((asjcz.laywsjzt is not null or asjcz.laywsjzt != '') and asjcz.laywsjzt!='02') or asjcz.laywsjzt is null or asjcz.laywsjzt = '')
AND (((asjcz.laywsjzt is not null and asjcz.laywsjzt != '') and asjcz.laywsjzt!='02' and asjcz.laywsjzt!='05') or asjcz.laywsjzt is null or asjcz.laywsjzt = '')
AND TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,now())<![CDATA[>=]]>21 and TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,now())<![CDATA[<]]>24
AND TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,now())<![CDATA[>=]]>21 and TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,now())<![CDATA[<]]>24
AND year(asj.larq)=year(now())
AND year(asj.larq)=year(now())
</if>
</if>
<iftest="gzt_type == '07'"><!--立案已超期-->
<iftest="gzt_type == '07'"><!--立案已超期-->
AND (((asjcz.laywsjzt is not null or asjcz.laywsjzt != '') and asjcz.laywsjzt!='02') or asjcz.laywsjzt is null or asjcz.laywsjzt = '')
AND (((asjcz.laywsjzt is not null and asjcz.laywsjzt != '') and asjcz.laywsjzt!='02' and asjcz.laywsjzt!='05') or asjcz.laywsjzt is null or asjcz.laywsjzt = '')
AND TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,now())<![CDATA[>=]]>24
AND TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,now())<![CDATA[>=]]>24
AND year(asj.larq)=year(now())
AND year(asj.larq)=year(now())
</if>
</if>
<iftest="gzt_type == '08'"><!--侦查终结即将超期-->
<iftest="gzt_type == '08'"><!--侦查终结即将超期-->
AND asjcz.laywsjzt = '02'
AND asjcz.laywsjzt = '02'
AND (((asjcz.zczjywsjzt is not null or asjcz.zczjywsjzt != '') and asjcz.zczjywsjzt!='02') or asjcz.zczjywsjzt is null or asjcz.zczjywsjzt = '')
AND (((asjcz.zczjywsjzt is not null and asjcz.zczjywsjzt != '') and asjcz.zczjywsjzt!='02') or asjcz.zczjywsjzt is null or asjcz.zczjywsjzt = '')
AND blgc.sp_type='00'
AND blgc.sp_type='00'
AND blgc.SPSFTG_PDBZ='1'
AND blgc.SPSFTG_PDBZ='1'
AND TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,now())<![CDATA[>=]]>21 and TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,now())<![CDATA[<]]>24
AND TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,now())<![CDATA[>=]]>21 and TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,now())<![CDATA[<]]>24
...
@@ -1443,13 +1443,13 @@
...
@@ -1443,13 +1443,13 @@
</if>
</if>
<iftest="gzt_type == '09'"><!--侦查终结已超期-->
<iftest="gzt_type == '09'"><!--侦查终结已超期-->
AND asjcz.laywsjzt = '02'
AND asjcz.laywsjzt = '02'
AND (((asjcz.zczjywsjzt is not null or asjcz.zczjywsjzt != '') and asjcz.zczjywsjzt!='02') or asjcz.zczjywsjzt is null or asjcz.zczjywsjzt = '')
AND (((asjcz.zczjywsjzt is not null and asjcz.zczjywsjzt != '') and asjcz.zczjywsjzt!='02') or asjcz.zczjywsjzt is null or asjcz.zczjywsjzt = '')
AND TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,now())<![CDATA[>=]]>24
AND TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,now())<![CDATA[>=]]>24
AND year(asj.larq)=year(now())
AND year(asj.larq)=year(now())
</if>
</if>
<iftest="gzt_type == '10'"><!--立案超期总数-->
<iftest="gzt_type == '10'"><!--立案超期总数-->
AND year(asj.larq)=year(now())
AND year(asj.larq)=year(now())
AND (((((asjcz.laywsjzt is not null or asjcz.laywsjzt != '') and asjcz.laywsjzt!='02') or asjcz.laywsjzt is null or asjcz.laywsjzt = '')
AND (((((asjcz.laywsjzt is not null and asjcz.laywsjzt != '') and asjcz.laywsjzt!='02' and asjcz.laywsjzt!='05') or asjcz.laywsjzt is null or asjcz.laywsjzt = '')
AND TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,now())<![CDATA[>=]]>24)
AND TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,now())<![CDATA[>=]]>24)
or
or
(asjcz.laywsjzt='02' AND TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,blgc.spsj)<![CDATA[>=]]>24) )
(asjcz.laywsjzt='02' AND TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,blgc.spsj)<![CDATA[>=]]>24) )
...
@@ -1457,7 +1457,7 @@
...
@@ -1457,7 +1457,7 @@
<iftest="gzt_type == '11'"><!--侦查终结超期总数-->
<iftest="gzt_type == '11'"><!--侦查终结超期总数-->
AND year(asj.larq)=year(now())
AND year(asj.larq)=year(now())
AND asjcz.laywsjzt = '02'
AND asjcz.laywsjzt = '02'
AND (((((asjcz.zczjywsjzt is not null or asjcz.zczjywsjzt != '') and asjcz.zczjywsjzt!='02') or asjcz.zczjywsjzt is null or asjcz.zczjywsjzt = '')
AND (((((asjcz.zczjywsjzt is not null and asjcz.zczjywsjzt != '') and asjcz.zczjywsjzt!='02') or asjcz.zczjywsjzt is null or asjcz.zczjywsjzt = '')
AND TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,now())<![CDATA[>=]]>24)
AND TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,now())<![CDATA[>=]]>24)
or
or
(asjcz.zczjywsjzt='02' and TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,blgc.spsj)<![CDATA[>=]]>24)
(asjcz.zczjywsjzt='02' and TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,blgc.spsj)<![CDATA[>=]]>24)
...
@@ -1499,29 +1499,29 @@
...
@@ -1499,29 +1499,29 @@
</if>
</if>
<iftest="gzt_type == '06'"><!--立案即将超期-->
<iftest="gzt_type == '06'"><!--立案即将超期-->
AND year(asj.larq)=year(now())
AND year(asj.larq)=year(now())
AND (((asjcz.laywsjzt is not null or asjcz.laywsjzt != '') and asjcz.laywsjzt!='02') or asjcz.laywsjzt is null or asjcz.laywsjzt = '')
AND (((asjcz.laywsjzt is not null and asjcz.laywsjzt != '') and asjcz.laywsjzt!='02' and asjcz.laywsjzt!='05') or asjcz.laywsjzt is null or asjcz.laywsjzt = '')
AND TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,now())<![CDATA[>=]]>21 and TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,now())<![CDATA[<]]>24
AND TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,now())<![CDATA[>=]]>21 and TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,now())<![CDATA[<]]>24
</if>
</if>
<iftest="gzt_type == '07'"><!--立案超期待办理-->
<iftest="gzt_type == '07'"><!--立案超期待办理-->
AND year(asj.larq)=year(now())
AND year(asj.larq)=year(now())
AND (((asjcz.laywsjzt is not null or asjcz.laywsjzt != '') and asjcz.laywsjzt!='02') or asjcz.laywsjzt is null or asjcz.laywsjzt = '')
AND (((asjcz.laywsjzt is not null and asjcz.laywsjzt != '') and asjcz.laywsjzt!='02' and asjcz.laywsjzt!='05') or asjcz.laywsjzt is null or asjcz.laywsjzt = '')
AND TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,now())<![CDATA[>=]]>24
AND TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,now())<![CDATA[>=]]>24
</if>
</if>
<iftest="gzt_type == '08'"><!--侦查终结即将超期-->
<iftest="gzt_type == '08'"><!--侦查终结即将超期-->
AND asjcz.laywsjzt = '02'
AND asjcz.laywsjzt = '02'
AND year(asj.larq)=year(now())
AND year(asj.larq)=year(now())
AND (((asjcz.zczjywsjzt is not null or asjcz.zczjywsjzt != '') and asjcz.zczjywsjzt!='02') or asjcz.zczjywsjzt is null or asjcz.zczjywsjzt = '')
AND (((asjcz.zczjywsjzt is not null and asjcz.zczjywsjzt != '') and asjcz.zczjywsjzt!='02') or asjcz.zczjywsjzt is null or asjcz.zczjywsjzt = '')
AND TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,now())<![CDATA[>=]]>21 and TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,now())<![CDATA[<]]>24
AND TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,now())<![CDATA[>=]]>21 and TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,now())<![CDATA[<]]>24
</if>
</if>
<iftest="gzt_type == '09'"><!--侦查超期待办理-->
<iftest="gzt_type == '09'"><!--侦查超期待办理-->
AND asjcz.laywsjzt = '02'
AND asjcz.laywsjzt = '02'
AND year(asj.larq)=year(now())
AND year(asj.larq)=year(now())
AND (((asjcz.zczjywsjzt is not null or asjcz.zczjywsjzt != '') and asjcz.zczjywsjzt!='02') or asjcz.zczjywsjzt is null or asjcz.zczjywsjzt = '')
AND (((asjcz.zczjywsjzt is not null and asjcz.zczjywsjzt != '') and asjcz.zczjywsjzt!='02') or asjcz.zczjywsjzt is null or asjcz.zczjywsjzt = '')
AND TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,now())<![CDATA[>=]]>24
AND TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,now())<![CDATA[>=]]>24
</if>
</if>
<iftest="gzt_type == '10'"><!--立案超期总数-->
<iftest="gzt_type == '10'"><!--立案超期总数-->
AND year(asj.larq)=year(now())
AND year(asj.larq)=year(now())
AND (((((asjcz.laywsjzt is not null or asjcz.laywsjzt != '') and asjcz.laywsjzt!='02') or asjcz.laywsjzt is null or asjcz.laywsjzt = '')
AND (((((asjcz.laywsjzt is not null and asjcz.laywsjzt != '') and asjcz.laywsjzt!='02' and asjcz.laywsjzt!='05') or asjcz.laywsjzt is null or asjcz.laywsjzt = '')
AND TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,now())<![CDATA[>=]]>24)
AND TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,now())<![CDATA[>=]]>24)
or
or
(asjcz.laywsjzt='02' AND TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,blgc.spsj)<![CDATA[>=]]>24) )
(asjcz.laywsjzt='02' AND TIMESTAMPDIFF(HOUR,asj.ASJFSSJ_ASJFSJSSJ,blgc.spsj)<![CDATA[>=]]>24) )
...
@@ -1529,7 +1529,7 @@
...
@@ -1529,7 +1529,7 @@
<iftest="gzt_type == '11'"><!--侦查终结超期总数-->
<iftest="gzt_type == '11'"><!--侦查终结超期总数-->
AND year(asj.larq)=year(now())
AND year(asj.larq)=year(now())
AND asjcz.laywsjzt = '02'
AND asjcz.laywsjzt = '02'
AND (((((asjcz.zczjywsjzt is not null or asjcz.zczjywsjzt != '') and asjcz.zczjywsjzt!='02') or asjcz.zczjywsjzt is null or asjcz.zczjywsjzt = '')
AND (((((asjcz.zczjywsjzt is not null and asjcz.zczjywsjzt != '') and asjcz.zczjywsjzt!='02') or asjcz.zczjywsjzt is null or asjcz.zczjywsjzt = '')
AND TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,now())<![CDATA[>=]]>24)
AND TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,now())<![CDATA[>=]]>24)
or
or
(asjcz.zczjywsjzt='02' and TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,blgc.spsj)<![CDATA[>=]]>24)
(asjcz.zczjywsjzt='02' and TIMESTAMPDIFF(HOUR,asj.ZCZJ_ZXSJ01,blgc.spsj)<![CDATA[>=]]>24)