Commit 3da045c3 by yanru

修改立案日期结束时间格式

parent 6c5946e8
......@@ -19,10 +19,10 @@
or CODE_LEV5 =#{unitcode, jdbcType=VARCHAR})
</if>
<if test="lasjQssj!=null and lasjQssj!=''">&lt;!&ndash;时间不为空 根据立案日期选择查询&ndash;&gt;
AND DATE_FORMAT(asj.LARQ,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="lasjJssj!=null and lasjJssj!=''">&lt;!&ndash;时间不为空 根据立案日期选择查询&ndash;&gt;
AND DATE_FORMAT(asj.LARQ,'%Y%m%d') <![CDATA[<=]]> DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[<=]]> DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="asjfsddDylbdm!=null and asjfsddDylbdm!=''">
AND ASJ.asjfsdd_dylbdm = #{asjfsddDylbdm,jdbcType=VARCHAR}
......@@ -40,10 +40,10 @@
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1'
and asjcz.laywsjzt='02'
<if test="lasjQssj!=null and lasjQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ ,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[>=]]> #{lasjQssj,jdbcType=VARCHAR}
</if>
<if test="lasjJssj!=null and lasjJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ ,'%Y%m%d') <![CDATA[<=]]> DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[<]]> DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
<if test="asjfsddDylbdm != null and asjfsddDylbdm !=''">
and asj.LADW_GAJGJGDM in
......@@ -116,10 +116,10 @@
or CODE_LEV5 =#{unitcode, jdbcType=VARCHAR})
</if>
<if test="lasjQssj!=null and lasjQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ ,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="lasjJssj!=null and lasjJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ ,'%Y%m%d') <![CDATA[<=]]> DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[<]]> DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
<if test="asjfsddDylbdm!=null and asjfsddDylbdm!=''">
AND asj.asjfsdd_dylbdm = #{asjfsddDylbdm,jdbcType=VARCHAR}
......@@ -153,7 +153,7 @@
AND asj.LARQ <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="lasjJssj!=null and lasjJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND asj.LARQ <![CDATA[<]]> DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d')
AND asj.LARQ <![CDATA[<]]> DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
GROUP BY asj.TSSDDM
......@@ -188,7 +188,7 @@
AND asj.LARQ <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="lasjJssj!=null and lasjJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND asj.LARQ <![CDATA[<]]> DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d')
AND asj.LARQ <![CDATA[<]]> DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
<if test="asjfsddDylbdm!=null and asjfsddDylbdm!=''">
AND asj.asjfsdd_dylbdm = #{asjfsddDylbdm,jdbcType=VARCHAR}
......
......@@ -39,14 +39,14 @@
inner join
(select asj.asjbh from tb_st_asj asj inner join tb_xw_rybh rybh on asj.asjbh=rybh.asjbh where asj.xxsc_pdbz='0' and rybh.xxsc_pdbz='0' and rybh.RSSHCDDM='1'
<if test="larqQssj!=null and larqQssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[>=]]>(str_to_date(#{larqQssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[<=]]>(str_to_date(#{larqJssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and asj.larq <![CDATA[<]]>DATE_ADD(#{larqJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)</if>
group by rybh.asjbh having count(*) >=3) zdsw on asj.asjbh=zdsw.asjbh
</if>
<if test="typeFlag=='jsb'" >
inner join
(select asj.asjbh from tb_st_asj asj inner join tb_xw_zbfzxyr xyr on asj.asjbh=xyr.asjbh where asj.xxsc_pdbz='0' and xyr.xxsc_pdbz='0' and xyr.zhfzxyr_sfjsbr_pdbz='1'
<if test="larqQssj!=null and larqQssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[>=]]>(str_to_date(#{larqQssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[<=]]>(str_to_date(#{larqJssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and asj.larq <![CDATA[<]]>DATE_ADD(#{larqJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)</if>
) jsb on asj.asjbh=jsb.asjbh
</if>
where asj.xxsc_pdbz='0'
......@@ -64,14 +64,14 @@
<if test="typeFlag=='zdsw'" >
inner join (select asj.asjbh from tb_st_asj asj inner join tb_xw_rybh rybh on asj.asjbh=rybh.asjbh where asj.xxsc_pdbz='0' and rybh.xxsc_pdbz='0' and rybh.RSSHCDDM='1'
<if test="larqQssj!=null and larqQssj!=''">and asj.larq <![CDATA[>=]]>(str_to_date(#{larqQssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and asj.larq <![CDATA[<]]>(str_to_date(#{larqJssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S')+1)</if>
<if test="larqJssj!=null and larqJssj!=''">and asj.larq <![CDATA[<]]>DATE_ADD(#{larqJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)</if>
group by rybh.asjbh having count(*) >=3) zdsw on asj.asjbh=zdsw.asjbh
</if>
<if test="typeFlag=='jsb'" ><!-- 精神病患案件 -->
inner join
(select asj.asjbh from tb_st_asj asj inner join tb_xw_zbfzxyr xyr on asj.asjbh=xyr.asjbh where asj.xxsc_pdbz='0' and xyr.xxsc_pdbz='0' and xyr.zhfzxyr_sfjsbr_pdbz='1'
<if test="larqQssj!=null and larqQssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[>=]]>(str_to_date(#{larqQssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[<=]]>(str_to_date(#{larqJssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and asj.larq <![CDATA[<]]>DATE_ADD(#{larqJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)</if>
) jsb on asj.asjbh=jsb.asjbh
</if>
where asj.xxsc_pdbz='0' and la.xxsc_pdbz='0' and zczj.xxsc_pdbz='0'
......@@ -433,7 +433,7 @@
)
</if>
<if test="larqQssj!=null and larqQssj!=''">and asj.larq <![CDATA[>=]]>(str_to_date(#{larqQssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and asj.larq <![CDATA[<]]>(str_to_date(#{larqJssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S')+1)</if>
<if test="larqJssj!=null and larqJssj!=''">and asj.larq <![CDATA[<]]>DATE_ADD(#{larqJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)</if>
<if test="xxdjdwGajgjgdm!=null and xxdjdwGajgjgdm!=''">
and asj.xxdjdw_Gajgjgdm
in(
......@@ -482,7 +482,10 @@
</if>
<if test="typeFlag=='toZczj'" ><!--侦查终结信息维护 -->
and asjcz.LAYWSJZT ='02'
<if test="ajywztdm!=null and ajywztdm!=''">
<if test="ajywztdm=='00'">
and (asjcz.zczjywsjzt is null or asjcz.zczjywsjzt ='' or asjcz.zczjywsjzt ='00')
</if>
<if test="ajywztdm!=null and ajywztdm!='' and ajywztdm !='00'">
and asjcz.zczjywsjzt = #{ajywztdm, jdbcType=VARCHAR}
</if>
<!--侦查终结超期是指填写了侦查终结信息且五天内未提请侦查终结审批的案件信息-->
......@@ -519,7 +522,7 @@
)
</if>
<if test="larqQssj!=null and larqQssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[>=]]>(str_to_date(#{larqQssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[<=]]>(str_to_date(#{larqJssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and asj.larq <![CDATA[<]]>DATE_ADD(#{larqJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)</if>
<if test="xxdjdwGajgjgdm!=null and xxdjdwGajgjgdm!=''">
and asj.xxdjdw_Gajgjgdm
in(
......@@ -534,7 +537,7 @@
<if test="spsjQssj!=null and spsjQssj!=''">and la.spsj <![CDATA[>=]]>(str_to_date(#{spsjQssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="spsjJssj!=null and spsjJssj!=''">and la.spsj <![CDATA[<]]>(str_to_date(#{spsjJssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S')+1)</if>
<if test="laywsjzt!=null and laywsjzt!=''">
<!--<if test="laywsjzt!=null and laywsjzt!=''">
<if test="laywsjzt=='00'">
and (asjcz.laywsjzt = '00' or asjcz.laywsjzt is NULL or asjcz.laywsjzt ='' or asjcz.laywsjzt='')
</if>
......@@ -550,7 +553,7 @@
<if test="zczjywsjzt!='00'">
and asjcz.zczjywsjzt = #{zczjywsjzt, jdbcType=VARCHAR}
</if>
</if>
</if>-->
<if test="sfhgpdbz!=null and sfhgpdbz!=''"> and asj.SFHGPDBZ =#{sfhgpdbz, jdbcType=VARCHAR}</if>
</sql>
......
......@@ -5,10 +5,10 @@
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1'
and asjcz.laywsjzt='02'
<if test="larqQssj!=null and larqQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ ,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{larqQssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(#{larqQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="larqJssj!=null and larqJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ ,'%Y%m%d') <![CDATA[<=]]> DATE_FORMAT(#{larqJssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[<=]]> DATE_FORMAT(#{larqJssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<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})
......@@ -86,7 +86,7 @@
<if test="larqQssj!=null and larqQssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[>=]]>
(str_to_date(#{larqQssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[<=]]>
(str_to_date(#{larqJssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)</if>
group by rybh.asjbh having count(*) >=3) zdsw on asj.asjbh=zdsw.asjbh
</if>
<include refid="common-condition"/>
......@@ -106,7 +106,7 @@
(select asj.asjbh from tb_st_asj asj inner join tb_xw_rybh rybh on asj.asjbh=rybh.asjbh
where asj.xxsc_pdbz='0' and rybh.xxsc_pdbz='0' and rybh.RSSHCDDM='1'
<if test="larqQssj!=null and larqQssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[>=]]>(str_to_date(#{larqQssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[<=]]>(str_to_date(#{larqJssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[<=]]>DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)</if>
group by rybh.asjbh having count(*) >=3) zdsw on asj.asjbh=zdsw.asjbh
</if>
<include refid="pa-condition"/>
......
......@@ -17,10 +17,10 @@
or CODE_LEV5 =#{unitcode, jdbcType=VARCHAR})
</if>
<if test="lasjQssj!=null and lasjQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="lasjJssj!=null and lasjJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[<=]]> DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[<]]> DATE_ADD(#{larqJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
<if test="asjfsddDylbdm!=null and asjfsddDylbdm!=''">
AND ASJ.asjfsdd_dylbdm = #{asjfsddDylbdm,jdbcType=VARCHAR}
......@@ -45,10 +45,10 @@
or CODE_LEV5 =#{unitcode, jdbcType=VARCHAR})
</if>
<if test="lasjQssj!=null and lasjQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="lasjJssj!=null and lasjJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[<=]]> DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[<]]> DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
<if test="asjfsddDylbdm!=null and asjfsddDylbdm!=''">
AND ASJ.asjfsdd_dylbdm = #{asjfsddDylbdm,jdbcType=VARCHAR}
......@@ -72,10 +72,10 @@
</if>)
</if>
<if test="lasjQssj!=null and lasjQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="lasjJssj!=null and lasjJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[<=]]> DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[<]]> DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
<if test="asjfsddDylbdm!=null and asjfsddDylbdm!=''">
AND ASJ.asjfsdd_dylbdm = #{asjfsddDylbdm,jdbcType=VARCHAR}
......@@ -102,10 +102,10 @@
or CODE_LEV5 =#{unitcode, jdbcType=VARCHAR})
</if>
<if test="lasjQssj!=null and lasjQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="lasjJssj!=null and lasjJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[<=]]> DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[<]]> DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
<if test="asjfsddDylbdm!=null and asjfsddDylbdm!=''">
AND ASJ.asjfsdd_dylbdm = #{asjfsddDylbdm,jdbcType=VARCHAR}
......@@ -153,10 +153,10 @@
or CODE_LEV5 =#{unitcode, jdbcType=VARCHAR})
</if>
<if test="lasjQssj!=null and lasjQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="lasjJssj!=null and lasjJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[<=]]> DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[<]]> DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
<if test="asjfsddDylbdm!=null and asjfsddDylbdm!=''">
AND ASJ.asjfsdd_dylbdm = #{asjfsddDylbdm,jdbcType=VARCHAR}
......@@ -195,10 +195,10 @@
or CODE_LEV5 =#{unitcode, jdbcType=VARCHAR})
</if>
<if test="lasjQssj!=null and lasjQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="lasjJssj!=null and lasjJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[<=]]> DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[<]]> DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
<if test="asjfsddDylbdm!=null and asjfsddDylbdm!=''">
AND ASJ.asjfsdd_dylbdm = #{asjfsddDylbdm,jdbcType=VARCHAR}
......
......@@ -7,10 +7,10 @@
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1'
and asjcz.laywsjzt='02'
<if test="larqQssj!=null and larqQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{larqQssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(#{larqQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="larqJssj!=null and larqJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[<=]]> (DATE_FORMAT(#{larqJssj,jdbcType=VARCHAR},'%Y%m%d'))
AND ASJ.LARQ <![CDATA[<]]> DATE_ADD(#{larqJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
<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})
......@@ -29,7 +29,7 @@
AND DATE_FORMAT(ASJ.ZCZJ_ZXSJ01,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{larqQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="larqJssj!=null and larqJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.ZCZJ_ZXSJ01,'%Y%m%d') <![CDATA[<=]]> (DATE_FORMAT(#{larqJssj,jdbcType=VARCHAR},'%Y%m%d'))
AND ASJ.ZCZJ_ZXSJ01 <![CDATA[<]]> DATE_ADD(#{larqJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
</sql>
......@@ -328,8 +328,8 @@
where asj.xxsc_pdbz='0' and rybh.xxsc_pdbz='0' and rybh.RSSHCDDM='1'
<if test="larqQssj!=null and larqQssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[>=]]>
(str_to_date(#{larqQssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[<=]]>
(str_to_date(#{larqJssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and asj.larq <![CDATA[<]]>
DATE_ADD(#{larqJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)</if>
group by rybh.asjbh having count(*) >=3) zdsw on asj.asjbh=zdsw.asjbh
</if>
<include refid="common-condition"/>
......@@ -349,7 +349,7 @@
(select asj.asjbh from tb_st_asj asj inner join tb_xw_rybh rybh on asj.asjbh=rybh.asjbh
where asj.xxsc_pdbz='0' and rybh.xxsc_pdbz='0' and rybh.RSSHCDDM='1'
<if test="larqQssj!=null and larqQssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[>=]]>(str_to_date(#{larqQssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[<=]]>(str_to_date(#{larqJssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and asj.larq <![CDATA[<]]>DATE_ADD(#{larqJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)</if>
group by rybh.asjbh having count(*) >=3) zdsw on asj.asjbh=zdsw.asjbh
</if>
<include refid="pa-condition"/>
......@@ -370,7 +370,7 @@
(select asj.asjbh from tb_st_asj asj inner join tb_xw_rybh rybh on asj.asjbh=rybh.asjbh
where asj.xxsc_pdbz='0' and rybh.xxsc_pdbz='0' and rybh.RSSHCDDM='1'
<if test="larqQssj!=null and larqQssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[>=]]>(str_to_date(#{larqQssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[<=]]>(str_to_date(#{larqJssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[<=]]>DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)</if>
group by rybh.asjbh having count(*) >=3) zdsw on asj.asjbh=zdsw.asjbh
</if>
<include refid="pa-condition"/>
......@@ -403,10 +403,10 @@
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1'
and asjcz.laywsjzt='02' AND xyr.xxsc_pdbz = '0'
<if test="lasjQssj!=null and lasjQssj!=''">&lt;!&ndash;时间不为空 根据立案日期选择查询&ndash;&gt;
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="lasjJssj!=null and lasjJssj!=''">&lt;!&ndash;时间不为空 根据立案日期选择查询&ndash;&gt;
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[<=]]> (DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d'))
AND ASJ.LARQ <![CDATA[<=]]> (DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d'))
</if>
<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})
......@@ -428,10 +428,10 @@
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1'
and asjcz.laywsjzt='02' AND xyr.xxsc_pdbz = '0'
<if test="lasjQssj!=null and lasjQssj!=''">&lt;!&ndash;时间不为空 根据立案日期选择查询&ndash;&gt;
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="lasjJssj!=null and lasjJssj!=''">&lt;!&ndash;时间不为空 根据立案日期选择查询&ndash;&gt;
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[<=]]> (DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d'))
AND ASJ.LARQ <![CDATA[<=]]> (DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d'))
</if>
<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})
......@@ -455,10 +455,10 @@
where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1'
and asjcz.laywsjzt='02'
<if test="lasjQssj!=null and lasjQssj!=''">&lt;!&ndash;时间不为空 根据立案日期选择查询&ndash;&gt;
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="lasjJssj!=null and lasjJssj!=''">&lt;!&ndash;时间不为空 根据立案日期选择查询&ndash;&gt;
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[<=]]> (DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d'))
AND ASJ.LARQ <![CDATA[<=]]> (DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d'))
</if>
<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})
......@@ -524,8 +524,8 @@
where asj.xxsc_pdbz='0' and rybh.xxsc_pdbz='0' and rybh.RSSHCDDM='1'
<if test="larqQssj!=null and larqQssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[>=]]>
(str_to_date(#{larqQssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[<=]]>
(str_to_date(#{larqJssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and asj.larq <![CDATA[<]]>
DATE_ADD(#{larqJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)</if>
group by rybh.asjbh having count(*) >=3) zdsw on asj.asjbh=zdsw.asjbh
</if>
<!--破案-->
......@@ -556,7 +556,7 @@
and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[>=]]>(str_to_date(#{larqQssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))
</if>
<if test="larqJssj!=null and larqJssj!=''">
and DATE_FORMAT(asj.larq,'%Y-%m-%d %H:%i:%S') <![CDATA[<=]]>(str_to_date(#{larqJssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))
and asj.larq <![CDATA[<]]>DATE_ADD(#{larqJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
and rybh.xxsc_pdbz='0' and rybh.RSSHCDDM='1'
group by rybh.asjbh having count(*) >=3
......@@ -989,10 +989,10 @@
or CODE_LEV5 =#{unitcode, jdbcType=VARCHAR})
</if>
<if test="larqQssj!=null and larqQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{larqQssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(#{larqQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="larqJssj!=null and larqJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[<=]]> (DATE_FORMAT(#{larqJssj,jdbcType=VARCHAR},'%Y%m%d'))
AND ASJ.LARQ <![CDATA[<]]> DATE_ADD(#{larqJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
) a where a.bhrCount <![CDATA[>]]> 2
) b
......
......@@ -47,11 +47,11 @@ public class MaAsjglServiceImpl implements IMaAsjglService {
private MaAsjglMapper tbStAsjMapper;
@Override
public Map<String, Object> queryAllMaAsjxx(TbStAsj tbStAsj) {
if("toZczj".equals(tbStAsj.getTypeFlag())||"zczjSp".equals(tbStAsj.getTypeFlag())){
/*if("toZczj".equals(tbStAsj.getTypeFlag())||"zczjSp".equals(tbStAsj.getTypeFlag())){
tbStAsj.setZczjywsjzt(tbStAsj.getAjywztdm());
}else {
tbStAsj.setLaywsjzt(tbStAsj.getAjywztdm());
}
}*/
XzxtUser xzxtUser = SecureUtil.getUserXzxt();
String grade = xzxtUser.getGrade();
......
......@@ -25,7 +25,7 @@
<!--积案破案数-->
<select id="getMaJapaCount" resultType="java.lang.Integer" parameterType="java.util.Map">
select count(*) from tb_st_asj asj inner join tb_xw_asjcz asjcz on asj.asjbh=asjcz.asjbh where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1'
and DATE_FORMAT(asj.ZCZJ_ZXSJ01,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d') and DATE_FORMAT(asj.ZCZJ_ZXSJ01,'%Y%m%d') <![CDATA[<=]]> DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d')
and DATE_FORMAT(asj.ZCZJ_ZXSJ01,'%Y%m%d') <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d') and DATE_FORMAT(asj.ZCZJ_ZXSJ01,'%Y%m%d') <![CDATA[<]]> DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
and YEAR(asj.larq) <![CDATA[<]]> #{year, jdbcType=VARCHAR}
and asjcz.laywsjzt='02' and asjcz.zczjywsjzt='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>
......@@ -34,7 +34,7 @@
<!--积案未破案数-->
<select id="getMaJawpaCount" resultType="java.lang.Integer" parameterType="java.util.Map">
select count(*) from tb_st_asj asj inner join tb_xw_asjcz asjcz on asj.asjbh=asjcz.asjbh where asj.xxsc_pdbz='0' and asj.sfma_pdbz = '1'
and (asj.ZCZJ_ZXSJ01 is null or asj.ZCZJ_ZXSJ01 = '' or DATE_FORMAT(asj.ZCZJ_ZXSJ01,'%Y%m%d') <![CDATA[>]]> DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d'))
and (asj.ZCZJ_ZXSJ01 is null or asj.ZCZJ_ZXSJ01 = '' or asj.ZCZJ_ZXSJ01 <![CDATA[>]]> DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
and YEAR(asj.larq) <![CDATA[<]]> #{year, jdbcType=VARCHAR} and
( asjcz.zczjywsjzt <![CDATA[<>]]>'02' or asjcz.zczjywsjzt is null or asjcz.zczjywsjzt = '')
<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>
......
......@@ -405,7 +405,7 @@
)
</if>
<if test="larqQssj!=null and larqQssj!=''">and asj.larq <![CDATA[>=]]>(str_to_date(#{larqQssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and asj.larq <![CDATA[<]]>(str_to_date(#{larqJssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S')+1)</if>
<if test="larqJssj!=null and larqJssj!=''">and asj.larq <![CDATA[<]]>DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)</if>
<if test="xxdjdwGajgjgdm!=null and xxdjdwGajgjgdm!=''">
and asj.xxdjdw_Gajgjgdm
in(
......@@ -488,7 +488,7 @@
)
</if>
<if test="larqQssj!=null and larqQssj!=''">and asj.larq <![CDATA[>=]]>(str_to_date(#{larqQssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S'))</if>
<if test="larqJssj!=null and larqJssj!=''">and asj.larq <![CDATA[<]]>(str_to_date(#{larqJssj, jdbcType=VARCHAR},'%Y-%m-%d %H:%i:%S')+1)</if>
<if test="larqJssj!=null and larqJssj!=''">and asj.larq <![CDATA[<]]>DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)</if>
<if test="xxdjdwGajgjgdm!=null and xxdjdwGajgjgdm!=''">
and asj.xxdjdw_Gajgjgdm
in(
......
......@@ -32,7 +32,7 @@
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="lasjJssj!=null and lasjJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ <![CDATA[<]]> DATE_FORMAT(#{lasjJssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[<]]> DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
<if test="(lasjQssj==null or lasjQssj=='') and (lasjJssj==null or lasjJssj=='')"><!--时间为空默认查询本年发案-->
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(now(), '%Y')
......@@ -69,7 +69,7 @@
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT('${lasjQssj}','%Y%m%d')
</if>
<if test="lasjJssj!=null and lasjJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ <![CDATA[<]]> (DATE_FORMAT('${lasjJssj}','%Y%m%d')+1)
AND ASJ.LARQ <![CDATA[<]]> DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
<if test="(lasjQssj==null or lasjQssj=='') and (lasjJssj==null or lasjJssj=='')"><!--时间为空默认查询本年发案-->
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(now(), '%Y')
......@@ -98,7 +98,7 @@
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT('${lasjQssj}','%Y%m%d')
</if>
<if test="lasjJssj!=null and lasjJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ <![CDATA[<]]> (DATE_FORMAT('${lasjJssj}','%Y%m%d')+1)
AND ASJ.LARQ <![CDATA[<]]> DATE_ADD(#{lasjJssj,jdbcType=VARCHAR},INTERVAL 1 DAY)
</if>
<if test="(lasjQssj==null or lasjQssj=='') and (lasjJssj==null or lasjJssj=='')"><!--时间为空默认查询本年发案-->
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(now(), '%Y')
......
......@@ -845,7 +845,7 @@
AND ASJ.LARQ <![CDATA[>=]]> DATE_FORMAT(#{lasjQssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<if test="larqJssj!=null and larqJssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND DATE_FORMAT(ASJ.LARQ,'%Y%m%d') <![CDATA[<=]]> DATE_FORMAT(#{larqJssj,jdbcType=VARCHAR},'%Y%m%d')
AND ASJ.LARQ <![CDATA[<=]]> DATE_FORMAT(#{larqJssj,jdbcType=VARCHAR},'%Y%m%d')
</if>
<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})
......
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