Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-qyxzpt-report
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘良浪
xzxt-qyxzpt-report
Commits
d7d2638c
Commit
d7d2638c
authored
Jan 10, 2023
by
liulianglang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
往年时间计算
parent
8bc1a42b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
src/main/java/org/springblade/founder/tjfx/mapper/AjtjMapper.xml
+9
-8
src/main/java/org/springblade/founder/tjfx/mapper/TjfxMapper.xml
+7
-6
No files found.
src/main/java/org/springblade/founder/tjfx/mapper/AjtjMapper.xml
View file @
d7d2638c
...
...
@@ -132,11 +132,11 @@
) then 1 else 0 end) ]]>
as dqcount,
<![CDATA[ sum( case when asj.ajlbdm in (
'05000300'
) and asj.zatz_jyqk
='0500030001
00' then 1 else 0 end)]]>
as btzpcount,
) and asj.zatz_jyqk
!='0500030002
00' then 1 else 0 end)]]>
as btzpcount,
<![CDATA[ sum(case when asj.ajlbdm in (
'05000300'
) and asj.zatz_jyqk
!='0500030001
00' then 1 else 0 end) ]]>
as dxzpcount,
) and asj.zatz_jyqk
='0500030002
00' 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
='0500030001
00' then 1 else 0 end)]]>
as btzpcount,
) and asj.zatz_jyqk
!='0500030002
00' then 1 else 0 end)]]>
as btzpcount,
<![CDATA[ sum(case when asj.ajlbdm in (
'05000300'
) and asj.zatz_jyqk
!='0500030001
00' then 1 else 0 end) ]]>
as dxzpcount,
) and asj.zatz_jyqk
='0500030002
00' 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
='0500030001
00'
) and asj.zatz_jyqk
!='0500030002
00'
</if>
<if
test=
"type!=null and type!='' and type == 'dxzp'.toString()"
>
<!--电信诈骗-->
and asj.ajlbdm in (
'05000300'
) and asj.zatz_jyqk
!='0500030001
00'
) and asj.zatz_jyqk
='0500030002
00'
</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}
...
...
src/main/java/org/springblade/founder/tjfx/mapper/TjfxMapper.xml
View file @
d7d2638c
...
...
@@ -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','06040
401','06040402','06040
500','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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment