Commit e6adfdf8 by liulianglang

立案统计需求修改

parent b02342fb
......@@ -8,7 +8,7 @@
select asj.larq as monthName,count(*) faNum from (
SELECT to_char(asj.larq,'yyyy-mm') as larq
FROM tb_st_asj asj
where asj.xxsc_pdbz='0'
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0400','0500','0600','0700','0800')
<if test="larqQssj!=null and larqQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
......@@ -33,7 +33,7 @@
select asj.larq as monthName,count(*) faNum from (
SELECT to_char(asj.larq,'yyyy-mm') as larq
FROM tb_st_asj asj
where asj.xxsc_pdbz='0'
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0400','0500','0600','0700','0800')
<if test="ajlbsql !=null and ajlbsql!=''">
${ajlbsql}
</if>
......@@ -60,7 +60,7 @@
<select id="getqnrqFaCount" resultType="java.lang.Integer">
SELECT count(1)
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and to_char(ASJ.LARQ,'yyyy-MM') =#{qnrq}
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0400','0500','0600','0700','0800') and to_char(ASJ.LARQ,'yyyy-MM') =#{qnrq}
<if test="ajlbsql !=null and ajlbsql!=''">
${ajlbsql}
</if>
......@@ -78,7 +78,7 @@
SELECT count(1)
FROM tb_st_asj asj
where asj.xxsc_pdbz='0'
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0400','0500','0600','0700','0800')
<if test="larqQssj!=null and larqQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
......@@ -101,7 +101,7 @@
SELECT count(1)
FROM tb_st_asj asj
where asj.xxsc_pdbz='0'
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0400','0500','0600','0700','0800')
<if test="ajlbsql !=null and ajlbsql!=''">
${ajlbsql}
</if>
......@@ -150,7 +150,7 @@
,'02002202'
) then 1 else 0 end) ]]> as blyzblcount,
<![CDATA[ sum(case when asj.ajlbdm like '0607%' then 1 else 0 end) ]]> as dpfzajcount
from tb_st_asj asj where asj.xxsc_pdbz='0'
from tb_st_asj asj where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0400','0500','0600','0700','0800')
<if test="larqQssj!=null and larqQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
......@@ -197,7 +197,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
) then 1 else 0 end) ]]> as blyzblcount,
<![CDATA[ sum(case when asj.ajlbdm like '0607%' then 1 else 0 end) ]]> as dpfzajcount
from tb_st_asj asj where asj.xxsc_pdbz='0'
and asj.ZCJDDM in ('0400','0500','0600','0700','0800')
and to_char(ASJ.LARQ,'yyyy-MM')= to_char(to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd'),'yyyy-MM')
<if test="unitcodeList != null and unitcodeList.size() > 0">
and
......@@ -463,10 +463,10 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0600','0700','0800') and asj.ZCZJ_ZXSJ01 is not null
<if test="larqQssj!=null and larqQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
AND ASJ.ZCZJ_ZXSJ01 <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
<if test="larqJssj!=null and larqJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ <![CDATA[<]]> to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
AND ASJ.ZCZJ_ZXSJ01 <![CDATA[<]]> to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
<if test="jabz!=null and jabz!='' and jabz == '1'.toString()"><!--破现案查询-->
and to_char(ASJ.LARQ,'yyyy')=to_char(ASJ.ZCZJ_ZXSJ01,'yyyy')
......@@ -612,7 +612,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
select
<include refid="aj-common-column"/>
from tb_st_asj asj
where asj.xxsc_pdbz='0'
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0400','0500','0600','0700','0800')
<if test="larqQssj!=null and larqQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
......@@ -640,7 +640,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
select
count(1)
from tb_st_asj asj
where asj.xxsc_pdbz='0'
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0400','0500','0600','0700','0800')
<if test="larqQssj!=null and larqQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
......@@ -666,7 +666,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
select
<include refid="aj-common-column"/>
from tb_st_asj asj
where asj.xxsc_pdbz='0'
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0400','0500','0600','0700','0800')
<include refid="aj-condition"/>
<include refid="common-condition"/>
order by asj.larq desc
......@@ -678,7 +678,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
select
count(1)
from tb_st_asj asj
where asj.xxsc_pdbz='0'
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0400','0500','0600','0700','0800')
<include refid="aj-condition"/>
<include refid="common-condition"/>
......
......@@ -86,7 +86,7 @@
select asj.larq as monthName,count(*) faNum from (
SELECT to_char(asj.larq,'yyyy-mm') as larq
FROM tb_st_asj asj
where asj.xxsc_pdbz='0'
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0400','0500','0600','0700','0800')
<include refid="aj-condition"/>
<include refid="common-condition"/>
) asj
......@@ -99,7 +99,7 @@
SELECT count(1)
FROM tb_st_asj asj
where asj.xxsc_pdbz='0'
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0400','0500','0600','0700','0800')
<include refid="aj-condition"/>
<include refid="common-condition"/>
......@@ -164,7 +164,7 @@
<!--案件透视-->
<select id="getAjTsCount" resultType="java.lang.Integer">
select count(1) from tb_st_asj asj
where asj.xxsc_pdbz='0'
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0400','0500','0600','0700','0800')
<include refid="aj-condition"/>
<include refid="common-condition"/>
</select>
......@@ -174,7 +174,7 @@
select
<include refid="aj-common-column"/>
from TB_ST_ASJ asj
where asj.xxsc_pdbz='0'
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0400','0500','0600','0700','0800')
<include refid="aj-condition"/>
<include refid="common-condition"/>
order by asj.larq desc
......
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