Commit 02a6964c by liulianglang

排除侦查终结时间为null

parent 0a729ca6
......@@ -215,7 +215,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
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' and asj.ZCJDDM = '0600'
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600' 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')
</if>
......@@ -240,7 +240,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
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' and asj.ZCJDDM = '0600'
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600' and asj.ZCZJ_ZXSJ01 is not null
<if test="ajlbsql !=null and ajlbsql!=''">
${ajlbsql}
</if>
......@@ -371,7 +371,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
SELECT count(1)
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600' and to_char(ASJ.LARQ,'yyyy-MM') =#{qnrq}
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600' and asj.ZCZJ_ZXSJ01 is not null and to_char(ASJ.LARQ,'yyyy-MM') =#{qnrq}
<if test="ajlbsql !=null and ajlbsql!=''">
${ajlbsql}
</if>
......@@ -450,7 +450,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
SELECT count(1)
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600'
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600' 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')
</if>
......@@ -477,7 +477,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
SELECT count(1)
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600'
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600' and asj.ZCZJ_ZXSJ01 is not null
<if test="ajlbsql !=null and ajlbsql!=''">
${ajlbsql}
</if>
......@@ -885,7 +885,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
</if>
<if test="ajType!=null and ajType!='' and ajType == '2'.toString()"><!--破案查询-->
and asj.ZCJDDM = '0600'
and asj.ZCJDDM = '0600' and asj.ZCZJ_ZXSJ01 is not null
</if>
<if test="unitcodeList != null and unitcodeList.size() > 0">
and
......
......@@ -22,7 +22,7 @@
</if>
<if test="ajType!=null and ajType!='' and ajType == '2'.toString()"><!--破案查询-->
and asj.ZCJDDM = '0600'
and asj.ZCJDDM = '0600' and asj.ZCZJ_ZXSJ01 is not null
</if>
<if test="month!=null and month!=''">
AND to_char(asj.LARQ,'yyyy-MM')=#{month}
......@@ -109,7 +109,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' and asj.ZCJDDM = '0600'
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600' and asj.ZCZJ_ZXSJ01 is not null
<include refid="aj-condition"/>
<include refid="common-condition"/>
) asj
......@@ -121,7 +121,7 @@
SELECT count(1)
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600'
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600' and asj.ZCZJ_ZXSJ01 is not null
<include refid="aj-condition"/>
<include refid="common-condition"/>
......
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