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
e6adfdf8
Commit
e6adfdf8
authored
Aug 07, 2023
by
liulianglang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
立案统计需求修改
parent
b02342fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
src/main/java/org/springblade/founder/tjfx/mapper/AjtjMapper.xml
+13
-13
src/main/java/org/springblade/founder/tjfx/mapper/TjfxMapper.xml
+4
-4
No files found.
src/main/java/org/springblade/founder/tjfx/mapper/AjtjMapper.xml
View file @
e6adfdf8
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
select asj.larq as monthName,count(*) faNum from (
select asj.larq as monthName,count(*) faNum from (
SELECT to_char(asj.larq,'yyyy-mm') as larq
SELECT to_char(asj.larq,'yyyy-mm') as larq
FROM tb_st_asj asj
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!=''"
>
<!--时间不为空 根据立案日期选择查询-->
<if
test=
"larqQssj!=null and larqQssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
</if>
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
select asj.larq as monthName,count(*) faNum from (
select asj.larq as monthName,count(*) faNum from (
SELECT to_char(asj.larq,'yyyy-mm') as larq
SELECT to_char(asj.larq,'yyyy-mm') as larq
FROM tb_st_asj asj
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!=''"
>
<if
test=
"ajlbsql !=null and ajlbsql!=''"
>
${ajlbsql}
${ajlbsql}
</if>
</if>
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
<select
id=
"getqnrqFaCount"
resultType=
"java.lang.Integer"
>
<select
id=
"getqnrqFaCount"
resultType=
"java.lang.Integer"
>
SELECT count(1)
SELECT count(1)
FROM tb_st_asj asj
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!=''"
>
<if
test=
"ajlbsql !=null and ajlbsql!=''"
>
${ajlbsql}
${ajlbsql}
</if>
</if>
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
SELECT count(1)
SELECT count(1)
FROM tb_st_asj asj
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!=''"
>
<!--时间不为空 根据立案日期选择查询-->
<if
test=
"larqQssj!=null and larqQssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
</if>
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
SELECT count(1)
SELECT count(1)
FROM tb_st_asj asj
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!=''"
>
<if
test=
"ajlbsql !=null and ajlbsql!=''"
>
${ajlbsql}
${ajlbsql}
</if>
</if>
...
@@ -150,7 +150,7 @@
...
@@ -150,7 +150,7 @@
,'02002202'
,'02002202'
) then 1 else 0 end) ]]>
as blyzblcount,
) then 1 else 0 end) ]]>
as blyzblcount,
<![CDATA[ sum(case when asj.ajlbdm like '0607%' then 1 else 0 end) ]]>
as dpfzajcount
<![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!=''"
>
<!--时间不为空 根据立案日期选择查询-->
<if
test=
"larqQssj!=null and larqQssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
</if>
...
@@ -197,7 +197,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
...
@@ -197,7 +197,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
) then 1 else 0 end) ]]>
as blyzblcount,
) then 1 else 0 end) ]]>
as blyzblcount,
<![CDATA[ sum(case when asj.ajlbdm like '0607%' then 1 else 0 end) ]]>
as dpfzajcount
<![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')
and to_char(ASJ.LARQ,'yyyy-MM')= to_char(to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd'),'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"
>
<if
test=
"unitcodeList != null and unitcodeList.size() > 0"
>
and
and
...
@@ -463,10 +463,10 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
...
@@ -463,10 +463,10 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
FROM tb_st_asj asj
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0600','0700','0800') and asj.ZCZJ_ZXSJ01 is not null
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!=''"
>
<!--时间不为空 根据立案日期选择查询-->
<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>
<if
test=
"larqJssj!=null and larqJssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
<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>
<if
test=
"jabz!=null and jabz!='' and jabz == '1'.toString()"
>
<!--破现案查询-->
<if
test=
"jabz!=null and jabz!='' and jabz == '1'.toString()"
>
<!--破现案查询-->
and to_char(ASJ.LARQ,'yyyy')=to_char(ASJ.ZCZJ_ZXSJ01,'yyyy')
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'
...
@@ -612,7 +612,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
select
select
<include
refid=
"aj-common-column"
/>
<include
refid=
"aj-common-column"
/>
from tb_st_asj asj
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!=''"
>
<!--时间不为空 根据立案日期选择查询-->
<if
test=
"larqQssj!=null and larqQssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
</if>
...
@@ -640,7 +640,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
...
@@ -640,7 +640,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
select
select
count(1)
count(1)
from tb_st_asj asj
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!=''"
>
<!--时间不为空 根据立案日期选择查询-->
<if
test=
"larqQssj!=null and larqQssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
</if>
...
@@ -666,7 +666,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
...
@@ -666,7 +666,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
select
select
<include
refid=
"aj-common-column"
/>
<include
refid=
"aj-common-column"
/>
from tb_st_asj asj
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=
"aj-condition"
/>
<include
refid=
"common-condition"
/>
<include
refid=
"common-condition"
/>
order by asj.larq desc
order by asj.larq desc
...
@@ -678,7 +678,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
...
@@ -678,7 +678,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
select
select
count(1)
count(1)
from tb_st_asj asj
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=
"aj-condition"
/>
<include
refid=
"common-condition"
/>
<include
refid=
"common-condition"
/>
...
...
src/main/java/org/springblade/founder/tjfx/mapper/TjfxMapper.xml
View file @
e6adfdf8
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
select asj.larq as monthName,count(*) faNum from (
select asj.larq as monthName,count(*) faNum from (
SELECT to_char(asj.larq,'yyyy-mm') as larq
SELECT to_char(asj.larq,'yyyy-mm') as larq
FROM tb_st_asj asj
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=
"aj-condition"
/>
<include
refid=
"common-condition"
/>
<include
refid=
"common-condition"
/>
) asj
) asj
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
SELECT count(1)
SELECT count(1)
FROM tb_st_asj asj
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=
"aj-condition"
/>
<include
refid=
"common-condition"
/>
<include
refid=
"common-condition"
/>
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
<!--案件透视-->
<!--案件透视-->
<select
id=
"getAjTsCount"
resultType=
"java.lang.Integer"
>
<select
id=
"getAjTsCount"
resultType=
"java.lang.Integer"
>
select count(1) from tb_st_asj asj
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=
"aj-condition"
/>
<include
refid=
"common-condition"
/>
<include
refid=
"common-condition"
/>
</select>
</select>
...
@@ -174,7 +174,7 @@
...
@@ -174,7 +174,7 @@
select
select
<include
refid=
"aj-common-column"
/>
<include
refid=
"aj-common-column"
/>
from TB_ST_ASJ asj
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=
"aj-condition"
/>
<include
refid=
"common-condition"
/>
<include
refid=
"common-condition"
/>
order by asj.larq desc
order by asj.larq desc
...
...
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