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
441b0584
Commit
441b0584
authored
Dec 28, 2022
by
liulianglang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统计报表
parent
be990e71
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
422 additions
and
14 deletions
+422
-14
src/main/java/org/springblade/founder/tjfx/controller/AjTjController.java
+172
-0
src/main/java/org/springblade/founder/tjfx/entity/Ajjgfbtj.java
+7
-7
src/main/java/org/springblade/founder/tjfx/entity/AjtjParam.java
+3
-0
src/main/java/org/springblade/founder/tjfx/entity/TbStAsj.java
+0
-0
src/main/java/org/springblade/founder/tjfx/entity/ZztTjResult.java
+14
-0
src/main/java/org/springblade/founder/tjfx/mapper/AjtjMapper.java
+23
-2
src/main/java/org/springblade/founder/tjfx/mapper/AjtjMapper.xml
+154
-4
src/main/java/org/springblade/founder/tjfx/service/AjtjService.java
+49
-1
src/main/java/org/springblade/founder/tjfx/service/impl/AjtjServiceImpl.java
+0
-0
No files found.
src/main/java/org/springblade/founder/tjfx/controller/AjTjController.java
View file @
441b0584
...
...
@@ -54,6 +54,178 @@ public class AjTjController {
}
}
@PostMapping
(
"/getGmrsqlzzt"
)
@ApiOperation
(
value
=
"侵犯公民人身权利柱状图"
,
notes
=
"侵犯公民人身权利柱状图"
)
public
R
getGmrsqlzzt
(
AjtjParam
ajtjParam
){
try
{
List
<
LianTj
>
result
=
ajtjService
.
getGmrsqlzzt
(
ajtjParam
);
return
R
.
ok
().
data
(
"result"
,
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/getGmrsqlFapafyuest"
)
@ApiOperation
(
value
=
"各月份侵犯公民人身权利立破案分月走势图"
,
notes
=
"各月份侵犯公民人身权利立破案分月走势图"
)
public
R
getGmrsqlFapafyuest
(
AjtjParam
ajtjParam
){
try
{
List
<
AjtjResult
>
result
=
ajtjService
.
getGmrsqlFapafyuest
(
ajtjParam
);
return
R
.
ok
().
data
(
"result"
,
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/getGmrsqlPayuest"
)
@ApiOperation
(
value
=
"各月份侵犯公民人身权利破案分月走势图"
,
notes
=
"各月份侵犯公民人身权利破案分月走势图"
)
public
R
getGmrsqlPayuest
(
AjtjParam
ajtjParam
){
try
{
List
<
AjtjResult
>
result
=
ajtjService
.
getGmrsqlPayuest
(
ajtjParam
);
return
R
.
ok
().
data
(
"result"
,
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/getBlyzblfzzzt"
)
@ApiOperation
(
value
=
"八类严重暴力犯罪柱状图"
,
notes
=
"八类严重暴力犯罪柱状图"
)
public
R
getBlyzblfzzzt
(
AjtjParam
ajtjParam
){
try
{
List
<
LianTj
>
result
=
ajtjService
.
getBlyzblfzzzt
(
ajtjParam
);
return
R
.
ok
().
data
(
"result"
,
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/getBlyzblfzFapafyuest"
)
@ApiOperation
(
value
=
"八类严重暴力犯罪立破案分月走势图"
,
notes
=
"八类严重暴力犯罪立破案分月走势图"
)
public
R
getBlyzblfzFapafyuest
(
AjtjParam
ajtjParam
){
try
{
List
<
AjtjResult
>
result
=
ajtjService
.
getBlyzblfzFapafyuest
(
ajtjParam
);
return
R
.
ok
().
data
(
"result"
,
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/getBlyzblfzPayuest"
)
@ApiOperation
(
value
=
"八类严重暴力犯罪破案分月走势图"
,
notes
=
"八类严重暴力犯罪破案分月走势图"
)
public
R
getBlyzblfzPayuest
(
AjtjParam
ajtjParam
){
try
{
List
<
AjtjResult
>
result
=
ajtjService
.
getBlyzblfzPayuest
(
ajtjParam
);
return
R
.
ok
().
data
(
"result"
,
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/getXxmazzt"
)
@ApiOperation
(
value
=
"现行命案柱状图"
,
notes
=
"现行命案柱状图"
)
public
R
getXxmazzt
(
AjtjParam
ajtjParam
){
try
{
List
<
LianTj
>
result
=
ajtjService
.
getXxmazzt
(
ajtjParam
);
return
R
.
ok
().
data
(
"result"
,
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/getXxmaFapafyuest"
)
@ApiOperation
(
value
=
"现行命案立破案分月走势图"
,
notes
=
"现行命案立破案分月走势图"
)
public
R
getXxmaFapafyuest
(
AjtjParam
ajtjParam
){
try
{
List
<
AjtjResult
>
result
=
ajtjService
.
getXxmaFapafyuest
(
ajtjParam
);
return
R
.
ok
().
data
(
"result"
,
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/getXxmaPayuest"
)
@ApiOperation
(
value
=
"现行命案破案分月走势图"
,
notes
=
"现行命案破案分月走势图"
)
public
R
getXxmaPayuest
(
AjtjParam
ajtjParam
){
try
{
List
<
AjtjResult
>
result
=
ajtjService
.
getXxmaPayuest
(
ajtjParam
);
return
R
.
ok
().
data
(
"result"
,
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/getSqajzzt"
)
@ApiOperation
(
value
=
"涉枪案件柱状图"
,
notes
=
"涉枪案件柱状图"
)
public
R
getSqajzzt
(
AjtjParam
ajtjParam
){
try
{
List
<
LianTj
>
result
=
ajtjService
.
getSqajzzt
(
ajtjParam
);
return
R
.
ok
().
data
(
"result"
,
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/getSqajFapafyuest"
)
@ApiOperation
(
value
=
"涉枪案件立破案分月走势图"
,
notes
=
"涉枪案件立破案分月走势图"
)
public
R
getSqajFapafyuest
(
AjtjParam
ajtjParam
){
try
{
List
<
AjtjResult
>
result
=
ajtjService
.
getSqajFapafyuest
(
ajtjParam
);
return
R
.
ok
().
data
(
"result"
,
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/getSqajPayuest"
)
@ApiOperation
(
value
=
"涉枪案件破案分月走势图"
,
notes
=
"涉枪案件破案分月走势图"
)
public
R
getSqajPayuest
(
AjtjParam
ajtjParam
){
try
{
List
<
AjtjResult
>
result
=
ajtjService
.
getSqajPayuest
(
ajtjParam
);
return
R
.
ok
().
data
(
"result"
,
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/getAjZarszzt"
)
@ApiOperation
(
value
=
"各月份作案人数柱状图"
,
notes
=
"各月份作案人数柱状图"
)
public
R
getAjZarszzt
(
AjtjParam
ajtjParam
){
try
{
ZztTjResult
result
=
ajtjService
.
getAjZarszzt
(
ajtjParam
);
return
R
.
ok
().
data
(
"result"
,
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/getAjZarsyuest"
)
@ApiOperation
(
value
=
"各月份作案人数分月走势图"
,
notes
=
"各月份立破案分月走势图"
)
public
R
getAjZarsyuest
(
AjtjParam
ajtjParam
){
try
{
List
<
AjtjResult
>
result
=
ajtjService
.
getAjZarsyuest
(
ajtjParam
);
return
R
.
ok
().
data
(
"result"
,
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/getAjPbrsyuest"
)
@ApiOperation
(
value
=
"各月份作案人数分月走势图"
,
notes
=
"各月份立破案分月走势图"
)
public
R
getAjPbrsyuest
(
AjtjParam
ajtjParam
){
try
{
List
<
AjtjResult
>
result
=
ajtjService
.
getAjPbrsyuest
(
ajtjParam
);
return
R
.
ok
().
data
(
"result"
,
result
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
R
.
error
(
e
.
getMessage
());
}
}
@PostMapping
(
"/getAjjgfbt"
)
@ApiOperation
(
value
=
"案件结构分布图"
,
notes
=
"案件结构分布图"
)
public
R
getAjjgfbt
(
AjtjParam
ajtjParam
){
...
...
src/main/java/org/springblade/founder/tjfx/entity/Ajjgfbtj.java
View file @
441b0584
...
...
@@ -6,12 +6,12 @@ import lombok.Data;
public
class
Ajjgfbtj
{
private
int
total
;
//总数
private
int
dqcount
;
private
int
btzpcount
;
private
int
dxzpcount
;
private
int
qdcount
;
private
int
jjfzcount
;
private
int
dpfzajcount
;
private
int
dqcount
;
//盗窃
private
int
btzpcount
;
//普通诈骗
private
int
dxzpcount
;
//电信诈骗
private
int
qdcount
;
//抢夺
private
int
jjfzcount
;
//经济犯罪
private
int
dpfzajcount
;
//毒品犯罪
private
int
blyzblcount
;
//八类严重暴力
}
src/main/java/org/springblade/founder/tjfx/entity/AjtjParam.java
View file @
441b0584
...
...
@@ -74,6 +74,9 @@ public class AjtjParam extends BaseModel {
//往年时间
private
String
wnsj
;
private
String
ajlbsql
;
@ApiModelProperty
(
value
=
"行政区划列表"
)
private
List
<
String
>
xzqhList
;
public
void
setUser
(
XzxtUser
user
){
...
...
src/main/java/org/springblade/founder/tjfx/entity/TbStAsj.java
0 → 100644
View file @
441b0584
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/main/java/org/springblade/founder/tjfx/entity/ZztTjResult.java
0 → 100644
View file @
441b0584
package
org
.
springblade
.
founder
.
tjfx
.
entity
;
import
lombok.Data
;
@Data
public
class
ZztTjResult
{
private
Integer
oneoneCount
;
private
Integer
onetwoCount
;
private
Integer
twooneCount
;
private
Integer
twotwoCount
;
private
String
onetbbfb
;
private
String
twotbbfb
;
private
String
type
;
}
src/main/java/org/springblade/founder/tjfx/mapper/AjtjMapper.java
View file @
441b0584
package
org
.
springblade
.
founder
.
tjfx
.
mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springblade.founder.tjfx.entity.Ajjgfbtj
;
import
org.springblade.founder.tjfx.entity.AjtjParam
;
import
org.springblade.founder.tjfx.entity.AjtjResult
;
...
...
@@ -15,19 +16,35 @@ public interface AjtjMapper {
//各月份发案数分析
List
<
AjtjResult
>
getFapafyuest
(
AjtjParam
ajtjParam
);
int
getqnrqFaCount
(
String
qnrq
);
int
getqnrqFaCount
(
@Param
(
"qnrq"
)
String
qnrq
,
@Param
(
"ajlbsql"
)
String
ajlbsql
);
//各月份破案数分析
List
<
AjtjResult
>
getPayuest
(
AjtjParam
ajtjParam
);
int
getqnrqPaCount
(
String
qnrq
);
//各月份发案数分析
List
<
AjtjResult
>
getGmrsqlFapafyuest
(
AjtjParam
ajtjParam
);
List
<
AjtjResult
>
getGmrsqlPayuest
(
AjtjParam
ajtjParam
);
//单个月份单独统计
int
getqnrqPaCount
(
@Param
(
"qnrq"
)
String
qnrq
,
@Param
(
"ajlbsql"
)
String
ajlbsql
);
int
getqnrqSwrsCount
(
String
qnrq
);
int
getqnrqZarsCount
(
String
qnrq
);
int
getqnrqPbrsCount
(
String
qnrq
);
int
getFaCount
(
AjtjParam
ajtjParam
);
int
getPaCount
(
AjtjParam
ajtjParam
);
int
getGmrsqlFaCount
(
AjtjParam
ajtjParam
);
int
getGmrsqlPaCount
(
AjtjParam
ajtjParam
);
//死亡人数
int
getAjSwrs
(
AjtjParam
ajtjParam
);
int
getAjYsdrCount
(
AjtjParam
ajtjParam
);
List
<
AjtjResult
>
getAjSwrsyuest
(
AjtjParam
ajtjParam
);
//作案人数
...
...
@@ -35,6 +52,10 @@ public interface AjtjMapper {
List
<
AjtjResult
>
getAjZarsyuest
(
AjtjParam
ajtjParam
);
//批捕人数
int
getAjPbrs
(
AjtjParam
ajtjParam
);
List
<
AjtjResult
>
getAjPbrsyuest
(
AjtjParam
ajtjParam
);
//案件结构分布
Ajjgfbtj
getFaAjlbCount
(
AjtjParam
ajtjParam
);
...
...
src/main/java/org/springblade/founder/tjfx/mapper/AjtjMapper.xml
View file @
441b0584
...
...
@@ -20,10 +20,32 @@
order by asj.larq
</select>
<select
id=
"getGmrsqlFapafyuest"
resultType=
"org.springblade.founder.tjfx.entity.AjtjResult"
>
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'
<if
test=
"ajlbsql !=null and ajlbsql!=''"
>
${ajlbsql}
</if>
<if
test=
"larqQssj!=null and larqQssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
<if
test=
"larqJssj!=null and larqJssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[<]]>
to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
) asj
group by asj.larq
order by asj.larq
</select>
<select
id=
"getqnrqFaCount"
resultType=
"java.lang.Integer"
>
SELECT count(1)
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and to_char(ASJ.LARQ,'yyyy-MM') =#{qnrq}
<if
test=
"ajlbsql !=null and ajlbsql!=''"
>
${ajlbsql}
</if>
</select>
<select
id=
"getFaCount"
resultType=
"java.lang.Integer"
>
...
...
@@ -38,6 +60,26 @@
</if>
</select>
<select
id=
"getGmrsqlFaCount"
resultType=
"java.lang.Integer"
>
SELECT count(1)
FROM tb_st_asj asj
where asj.xxsc_pdbz='0'
<if
test=
"ajlbsql !=null and ajlbsql!=''"
>
${ajlbsql}
</if>
<if
test=
"larqQssj!=null and larqQssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
<if
test=
"larqJssj!=null and larqJssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[<]]>
to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
</select>
<select
id=
"getFaAjlbCount"
resultType=
"org.springblade.founder.tjfx.entity.Ajjgfbtj"
>
select count(1) total,
...
...
@@ -47,11 +89,11 @@
) then 1 else 0 end) ]]>
as dqcount,
<![CDATA[ sum( case when asj.ajlbdm in (
'05000300'
)
&&
asj.zatz_jyqk ='050003000100' then 1 else 0 end)]]>
as btzpcount,
)
and
asj.zatz_jyqk ='050003000100' then 1 else 0 end)]]>
as btzpcount,
<![CDATA[ sum(case when asj.ajlbdm in (
'05000300'
)
&&
asj.zatz_jyqk !='050003000100' then 1 else 0 end) ]]>
as dxzpcount,
)
and
asj.zatz_jyqk !='050003000100' then 1 else 0 end) ]]>
as dxzpcount,
<![CDATA[ sum(case when asj.ajlbdm in (
'05000400'
...
...
@@ -60,8 +102,12 @@
'03010000','03011000','03020000','03030000','03040000','03050000','03060000','03070000','03080000'
) then 1 else 0 end) ]]>
as jjfzcount,
<![CDATA[ sum(case when asj.ajlbdm in (
'02000100','02000300','02002100','04000100','04000300','04000600','04001000','05000100','02002201'
,'02002202'
) 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
from tb_st_asj asj
where asj.xxsc_pdbz='0'
</select>
...
...
@@ -82,6 +128,27 @@ from tb_st_asj asj
order by asj.larq
</select>
<select
id=
"getGmrsqlPayuest"
resultType=
"org.springblade.founder.tjfx.entity.AjtjResult"
>
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'
<if
test=
"ajlbsql !=null and ajlbsql!=''"
>
${ajlbsql}
</if>
<if
test=
"larqQssj!=null and larqQssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
<if
test=
"larqJssj!=null and larqJssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[<]]>
to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
) asj
group by asj.larq
order by asj.larq
</select>
<select
id=
"getAjSwrsyuest"
resultType=
"org.springblade.founder.tjfx.entity.AjtjResult"
>
select asj.larq as monthName,sum(asj.rs) faNum from (
SELECT to_char(asj.larq,'yyyy-mm') as larq,asj.asjswry_rs as rs
...
...
@@ -113,12 +180,29 @@ from tb_st_asj asj
order by asj.larq
</select>
<select
id=
"getAjPbrsyuest"
resultType=
"org.springblade.founder.tjfx.entity.AjtjResult"
>
select asj.larq as monthName,count(1) faNum from (
SELECT to_char(asj.larq,'yyyy-mm') as larq
FROM tb_st_asj asj left join tb_xw_zbfzxyr xyr on xyr.asjbh=asj.asjbh
where asj.xxsc_pdbz='0'
<if
test=
"larqQssj!=null and larqQssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
<if
test=
"larqJssj!=null and larqJssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[<]]>
to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
) asj
group by asj.larq
order by asj.larq
</select>
<select
id=
"getqnrqPaCount"
resultType=
"java.lang.Integer"
>
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}
<if
test=
"ajlbsql !=null and ajlbsql!=''"
>
${ajlbsql}
</if>
</select>
<select
id=
"getqnrqSwrsCount"
resultType=
"java.lang.Integer"
>
...
...
@@ -128,6 +212,19 @@ from tb_st_asj asj
where asj.xxsc_pdbz='0' and to_char(ASJ.LARQ,'yyyy-MM') =#{qnrq}
</select>
<select
id=
"getqnrqZarsCount"
resultType=
"java.lang.Integer"
>
SELECT sum(zary_rs)
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and to_char(ASJ.LARQ,'yyyy-MM') =#{qnrq}
</select>
<select
id=
"getqnrqPbrsCount"
resultType=
"java.lang.Integer"
>
SELECT count(1)
FROM tb_st_asj asj left join tb_xw_zbfzxyr xyr on xyr.asjbh=asj.asjbh
where asj.xxsc_pdbz='0' and to_char(ASJ.LARQ,'yyyy-MM') =#{qnrq}
</select>
<select
id=
"getPaCount"
resultType=
"java.lang.Integer"
>
SELECT count(1)
...
...
@@ -145,6 +242,29 @@ from tb_st_asj asj
</select>
<select
id=
"getGmrsqlPaCount"
resultType=
"java.lang.Integer"
>
SELECT count(1)
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600'
<if
test=
"ajlbsql !=null and ajlbsql!=''"
>
${ajlbsql}
</if>
<if
test=
"larqQssj!=null and larqQssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
<if
test=
"larqJssj!=null and larqJssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[<]]>
to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
<if
test=
"jabz!=null and jabz!='' and jabz == '1'.toString()"
>
<!--破现案查询-->
and to_char(ASJ.LARQ,'yyyy-mm-dd')=to_char(ASJ.ZCZJ_ZXSJ01,'yyyy-mm-dd')
</if>
</select>
<select
id=
"getAjSwrs"
resultType=
"java.lang.Integer"
>
SELECT sum(asjswry_rs)
...
...
@@ -159,6 +279,22 @@ from tb_st_asj asj
</select>
<select
id=
"getAjYsdrCount"
resultType=
"java.lang.Integer"
>
select count(1) from (
select asj.asjbh from tb_st_asj asj left join tb_xw_rybh rybh on rybh.asjbh=asj.asjbh
where asj.xxsc_pdbz='0' and rybh.rsshcddm='1' and rybh.xxsc_pdbz='0'
<if
test=
"larqQssj!=null and larqQssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
<if
test=
"larqJssj!=null and larqJssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[<]]>
to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
group by asj.asjbh
) ss
</select>
<select
id=
"getAjZars"
resultType=
"java.lang.Integer"
>
SELECT sum(zary_rs)
...
...
@@ -174,4 +310,18 @@ from tb_st_asj asj
</select>
<select
id=
"getAjPbrs"
resultType=
"java.lang.Integer"
>
SELECT count(1)
FROM tb_st_asj asj left join tb_xw_zbfzxyr xyr on xyr.asjbh=asj.asjbh
where asj.xxsc_pdbz='0'
<if
test=
"larqQssj!=null and larqQssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[>=]]>
to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
<if
test=
"larqJssj!=null and larqJssj!=''"
>
<!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ
<![CDATA[<]]>
to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
</select>
</mapper>
src/main/java/org/springblade/founder/tjfx/service/AjtjService.java
View file @
441b0584
...
...
@@ -12,11 +12,59 @@ public interface AjtjService {
//各月份破案数分析
List
<
AjtjResult
>
getPayuest
(
AjtjParam
ajtjParam
);
//侵犯公民人身权利各月份发案数分析
List
<
AjtjResult
>
getGmrsqlFapafyuest
(
AjtjParam
ajtjParam
);
//侵犯公民人身权利各月份破案数分析
List
<
AjtjResult
>
getGmrsqlPayuest
(
AjtjParam
ajtjParam
);
//八类严重暴力犯罪各月份发案数分析
List
<
AjtjResult
>
getBlyzblfzFapafyuest
(
AjtjParam
ajtjParam
);
//八类严重暴力犯罪各月份破案数分析
List
<
AjtjResult
>
getBlyzblfzPayuest
(
AjtjParam
ajtjParam
);
//现行命案各月份发案数分析
List
<
AjtjResult
>
getXxmaFapafyuest
(
AjtjParam
ajtjParam
);
//现行命案各月份破案数分析
List
<
AjtjResult
>
getXxmaPayuest
(
AjtjParam
ajtjParam
);
//涉枪案件各月份发案数分析
List
<
AjtjResult
>
getSqajFapafyuest
(
AjtjParam
ajtjParam
);
//涉枪案件各月份破案数分析
List
<
AjtjResult
>
getSqajPayuest
(
AjtjParam
ajtjParam
);
//各月份作案人数
List
<
AjtjResult
>
getAjZarsyuest
(
AjtjParam
ajtjParam
);
//各月份逮捕人数
List
<
AjtjResult
>
getAjPbrsyuest
(
AjtjParam
ajtjParam
);
//立破案
List
<
LianTj
>
getlipoanzzt
(
AjtjParam
ajtjParam
);
//侵犯公民人身权利
List
<
LianTj
>
getGmrsqlzzt
(
AjtjParam
ajtjParam
);
//八类严重暴力犯罪
List
<
LianTj
>
getBlyzblfzzzt
(
AjtjParam
ajtjParam
);
//现行命案
List
<
LianTj
>
getXxmazzt
(
AjtjParam
ajtjParam
);
//涉枪案件
List
<
LianTj
>
getSqajzzt
(
AjtjParam
ajtjParam
);
//作案人数
ZztTjResult
getAjZarszzt
(
AjtjParam
ajtjParam
);
//案件结构分布图
Ajjgfbtj
getAjjgfbt
(
AjtjParam
ajtjParam
);
//死亡人数
TbJnQntj
getAjSwrstj
(
AjtjParam
ajtjParam
);
//各月份死亡人数
List
<
AjtjResult
>
getAjSwrsyuest
(
AjtjParam
ajtjParam
);
}
src/main/java/org/springblade/founder/tjfx/service/impl/AjtjServiceImpl.java
View file @
441b0584
This diff is collapsed.
Click to expand it.
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