Commit d7d2638c by liulianglang

往年时间计算

parent 8bc1a42b
......@@ -132,11 +132,11 @@
) then 1 else 0 end) ]]> as dqcount,
<![CDATA[ sum( case when asj.ajlbdm in (
'05000300'
) and asj.zatz_jyqk ='050003000100' then 1 else 0 end)]]> as btzpcount,
) and asj.zatz_jyqk !='050003000200' then 1 else 0 end)]]> as btzpcount,
<![CDATA[ sum(case when asj.ajlbdm in (
'05000300'
) and asj.zatz_jyqk !='050003000100' then 1 else 0 end) ]]> as dxzpcount,
) and asj.zatz_jyqk ='050003000200' then 1 else 0 end) ]]> as dxzpcount,
<![CDATA[ sum(case when asj.ajlbdm in (
'05000400'
......@@ -178,11 +178,11 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
) then 1 else 0 end) ]]> as dqcount,
<![CDATA[ sum( case when asj.ajlbdm in (
'05000300'
) and asj.zatz_jyqk ='050003000100' then 1 else 0 end)]]> as btzpcount,
) and asj.zatz_jyqk !='050003000200' then 1 else 0 end)]]> as btzpcount,
<![CDATA[ sum(case when asj.ajlbdm in (
'05000300'
) and asj.zatz_jyqk !='050003000100' then 1 else 0 end) ]]> as dxzpcount,
) and asj.zatz_jyqk ='050003000200' then 1 else 0 end) ]]> as dxzpcount,
<![CDATA[ sum(case when asj.ajlbdm in (
'05000400'
......@@ -197,7 +197,8 @@ 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 to_char(ASJ.LARQ,'yyyy-MM')=to_char(sysdate,'yyyy-MM')
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
<foreach collection="unitcodeList" item="dws" open="(" close=")" separator=" or ">
......@@ -803,13 +804,13 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
<if test="type!=null and type!='' and type == 'btzp'.toString()"><!--普通诈骗-->
and asj.ajlbdm in (
'05000300'
) and asj.zatz_jyqk ='050003000100'
) and asj.zatz_jyqk !='050003000200'
</if>
<if test="type!=null and type!='' and type == 'dxzp'.toString()"><!--电信诈骗-->
and asj.ajlbdm in (
'05000300'
) and asj.zatz_jyqk !='050003000100'
) and asj.zatz_jyqk ='050003000200'
</if>
<if test="type!=null and type!='' and type == 'qd'.toString()"><!--抢夺-->
and asj.ajlbdm in (
......@@ -864,7 +865,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
AND asj.LARQ <![CDATA[<]]> to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
<if test="wnsj!=null and wnsj!=''"><!--查询往年时间月份-->
AND asj.LARQ = to_date(#{wnsj, jdbcType=VARCHAR},'yyyy-mm')
AND to_char(ASJ.LARQ,'yyyy-MM') =#{wnsj, jdbcType=VARCHAR}
</if>
<if test="month!=null and month!=''">
AND to_char(ASJ.LARQ,'yyyy-MM')=#{month}
......
......@@ -11,7 +11,7 @@
AND asj.LARQ <![CDATA[<]]> to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
<if test="wnsj!=null and wnsj!=''"><!--查询往年时间月份-->
AND to_char(ASJ.LARQ,'yyyy-MM') =to_char(#{wnsj, jdbcType=VARCHAR},'yyyy-MM')
AND to_char(ASJ.LARQ,'yyyy-MM') =#{wnsj, jdbcType=VARCHAR}
</if>
<if test="jabz!=null and jabz!='' and jabz == '1'.toString()"><!--破现案查询-->
......@@ -31,7 +31,7 @@
<sql id="aj-condition">
<if test="type!=null and type!='' and type == 'ww'.toString()"><!--文物-->
and asj.ajlbdm in ('06040100','06040200','06040300','06040400','06040500','06040600','06040700')
and asj.ajlbdm in ('06040100','06040200','06040300','06040400','06040401','06040402','06040500','06040600','06040700')
</if>
<if test="type!=null and type!='' and type == 'qd'.toString()"><!--抢夺-->
and asj.ajlbdm = '05000400'
......@@ -52,16 +52,17 @@
and asj.ajlbdm = '05000200'
</if>
<if test="type!=null and type!='' and type == 'ctdqp'.toString()"><!--传统盗抢骗-->
and asj.ajlbdm in ( '05000200','05000400','05000300','06021000')
and asj.ajlbdm in ( '05000200','05000400','05000300','06021000','06021001','06021002')
</if>
<if test="type!=null and type!='' and type == 'dxwlzp'.toString()"><!--电信网络诈骗-->
and asj.zatz_jyqk = '050003000200'
and asj.ajlbdm in ('05000300') and asj.zatz_jyqk ='050003000200'
</if>
<if test="type!=null and type!='' and type == 'zp'.toString()"><!--诈骗-->
and asj.zatz_jyqk in ( '050003000200','05003000100','05003000300' )
and asj.ajlbdm in ('05000300')
</if>
<if test="type!=null and type!='' and type == 'qfcc'.toString()"><!--侵犯财产-->
and asj.ajlbdm = '05000000'
and asj.ajlbdm like '05000%'
</if>
<if test="type!=null and type!='' and type == 'gysh'.toString()"><!--故意伤害-->
and asj.ajlbdm = '04000300'
......
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