Commit efac58b5 by lilei

修改积案统计条件

parent 12c1d228
......@@ -41,7 +41,7 @@
<!--未破积案总数-->
<sql id="wpjazs-condition">
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1'
and (asjcz.laywsjzt !='05' or asjcz.laywsjzt is null or asjcz.laywsjzt ='' )
and asjcz.laywsjzt ='02'
<if test="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})
</if>
......@@ -58,7 +58,7 @@
<!--去年积案-->
<sql id="qnja-condition">
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1'
and (asjcz.laywsjzt !='05' or asjcz.laywsjzt is null or asjcz.laywsjzt ='' )
and asjcz.laywsjzt ='02'
<if test="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})
</if>
......@@ -68,7 +68,7 @@
<!--超五年积案-->
<sql id="cwnja-condition">
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1' and (asjcz.laywsjzt !='05' or asjcz.laywsjzt is null or asjcz.laywsjzt ='' )
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1' and asjcz.laywsjzt ='02'
<if test="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})
</if>
......@@ -79,7 +79,7 @@
<!--超十年积案-->
<sql id="csnja-condition">
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1' and (asjcz.laywsjzt !='05' or asjcz.laywsjzt is null or asjcz.laywsjzt ='' )
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1' and asjcz.laywsjzt ='02'
<if test="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})
</if>
......
......@@ -40,7 +40,7 @@
<!--未破积案总数-->
<sql id="wpjazs-condition">
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1'
and (asjcz.laywsjzt !='05' or asjcz.laywsjzt is null or asjcz.laywsjzt ='' )
and asjcz.laywsjzt ='02'
<if test="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})
</if>
......@@ -57,7 +57,7 @@
<!--去年积案-->
<sql id="qnja-condition">
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1'
and (asjcz.laywsjzt !='05' or asjcz.laywsjzt is null or asjcz.laywsjzt ='' )
and asjcz.laywsjzt ='02'
<if test="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})
</if>
......@@ -67,7 +67,7 @@
<!--超五年积案-->
<sql id="cwnja-condition">
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1' and (asjcz.laywsjzt !='05' or asjcz.laywsjzt is null or asjcz.laywsjzt ='' )
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1' and asjcz.laywsjzt ='02'
<if test="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})
</if>
......@@ -78,7 +78,7 @@
<!--超十年积案-->
<sql id="csnja-condition">
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1' and (asjcz.laywsjzt !='05' or asjcz.laywsjzt is null or asjcz.laywsjzt ='' )
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1' and asjcz.laywsjzt ='02'
<if test="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})
</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment