Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
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
常超
map-parent
Commits
d2cbd235
Commit
d2cbd235
authored
Apr 11, 2023
by
宋珺琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据统计(五色)
parent
d3b5c3ee
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
180 additions
and
4 deletions
+180
-4
common/common_utils/src/main/java/com/founder/commonutils/model/newPublicEntity/WarningEntity/DataStatisticsParams.java
+41
-0
service/publicapi/src/main/java/com/founder/publicapi/controller/SkWarningService/DataStatisticsController.java
+38
-0
service/publicapi/src/main/java/com/founder/publicapi/controller/SkWarningService/WarningController.java
+4
-4
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/DataStatisticsMapperCqxz.java
+20
-0
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/xml/DataStatisticsMapperCqxz.xml
+66
-0
service/publicapi/src/main/java/com/founder/publicapi/service/DataStatisticsService.java
+11
-0
service/publicapi/src/main/java/com/founder/publicapi/service/serviceimpl/DataStatisticsServiceImpl.java
+0
-0
No files found.
common/common_utils/src/main/java/com/founder/commonutils/model/newPublicEntity/WarningEntity/DataStatisticsParams.java
0 → 100644
View file @
d2cbd235
package
com
.
founder
.
commonutils
.
model
.
newPublicEntity
.
WarningEntity
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
DataStatisticsParams
{
private
String
startTime
;
private
String
endTime
;
private
String
year
;
private
String
month
;
private
String
groupid
;
private
String
zcjddm
;
private
String
xzqhdm
;
private
String
xzqhmc
;
private
String
ajlbdm
;
private
String
xzlb
;
private
String
ajlb
;
// private String ajlbType;
private
String
selectType
;
private
String
orderType
;
private
String
xaStartTime
;
private
String
xaEndTime
;
private
String
objectType
;
private
String
objectValue
;
private
String
modelType
;
private
List
<
String
>
xzqhdmList
;
private
List
<
String
>
asjbhList
;
private
String
qsjd
;
private
String
jsjd
;
private
String
qswd
;
private
String
jswd
;
private
List
<
String
>
ajlbmc
;
// 案件类别名称
private
List
<
String
>
zatzJyqk
;
// 小案类别名称
//模型编号
private
String
mxbh
;
//案件状态
private
String
ajztdm
;
}
service/publicapi/src/main/java/com/founder/publicapi/controller/SkWarningService/DataStatisticsController.java
0 → 100644
View file @
d2cbd235
package
com
.
founder
.
publicapi
.
controller
.
SkWarningService
;
import
com.alibaba.fastjson.JSONObject
;
import
com.founder.commonutils.model.newPublicEntity.MapRestResult
;
import
com.founder.commonutils.model.newPublicEntity.WarningEntity.DataStatisticsParams
;
import
com.founder.publicapi.service.DataStatisticsService
;
import
com.founder.servicebase.logs.OperLog
;
import
com.founder.servicebase.logs.OperationType
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
@Api
(
"数据统计"
)
@CrossOrigin
@RequestMapping
(
"/dataStatistics"
)
@RestController
public
class
DataStatisticsController
{
@Autowired
private
DataStatisticsService
dataStatisticsService
;
/**
* 入参为模型id 和开始时间和结束时间 mxbh startTime; endTime;
* @param params
* @return
* @throws Exception
*/
@ApiOperation
(
"一体化门户数据统计新地图20230207新发案"
)
@PostMapping
(
"/getIntegratedTwoMapNew"
)
@OperLog
(
message
=
"一体化门户数据统计"
,
operation
=
OperationType
.
QUERY
)
public
MapRestResult
getIntegratedTwoMapNew
(
@RequestBody
DataStatisticsParams
params
)
throws
Exception
{
JSONObject
resultObj
=
dataStatisticsService
.
getIntegratedTwoMapNew
(
params
);
return
new
MapRestResult
(
resultObj
);
}
}
service/publicapi/src/main/java/com/founder/publicapi/controller/SkWarningService/WarningController.java
View file @
d2cbd235
...
...
@@ -265,7 +265,7 @@ public class WarningController {
zcjdmcList
.
add
(
name
);
}
if
(
zcjdmcList
.
size
()>
0
){
skWarning
.
setZcjdmc
(
zcjdmcList
.
toString
(
));
skWarning
.
setZcjdmc
(
String
.
join
(
","
,
zcjdmcList
));
}
}
//案件类别代码
...
...
@@ -280,7 +280,7 @@ public class WarningController {
ajlbmcList
.
add
(
name
);
}
if
(
ajlbmcList
.
size
()
>
0
)
{
skWarning
.
setAjlbmc
(
ajlbmcList
.
toString
(
));
skWarning
.
setAjlbmc
(
String
.
join
(
","
,
ajlbmcList
));
}
}
//小案类别代码
...
...
@@ -295,7 +295,7 @@ public class WarningController {
xlabmcList
.
add
(
name
);
}
if
(
xlabmcList
.
size
()
>
0
)
{
skWarning
.
setXlabmc
(
xlabmcList
.
toString
(
));
skWarning
.
setXlabmc
(
String
.
join
(
","
,
xlabmcList
));
}
}
//细案类别代码
...
...
@@ -310,7 +310,7 @@ public class WarningController {
xalbmcList
.
add
(
name
);
}
if
(
xalbmcList
.
size
()
>
0
)
{
skWarning
.
setXalbmc
(
xalbmcList
.
toString
(
));
skWarning
.
setXalbmc
(
String
.
join
(
","
,
xalbmcList
));
}
}
int
insert
=
warningMapper
.
insert
(
skWarning
);
...
...
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/DataStatisticsMapperCqxz.java
0 → 100644
View file @
d2cbd235
package
com
.
founder
.
publicapi
.
mapper
.
mysqlMapper
;
import
com.founder.commonutils.model.newPublicEntity.SysDictitem
;
import
com.founder.commonutils.model.newPublicEntity.WarningEntity.DataStatisticsParams
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.List
;
import
java.util.Map
;
@Mapper
public
interface
DataStatisticsMapperCqxz
{
Map
getYearMonthLaDount
(
DataStatisticsParams
params
);
List
<
Map
<
String
,
Object
>>
getXzqhLaCount
(
DataStatisticsParams
params
);
List
<
SysDictitem
>
selectXzqhdmBycq
();
}
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/xml/DataStatisticsMapperCqxz.xml
0 → 100644
View file @
d2cbd235
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.founder.publicapi.mapper.mysqlMapper.DataStatisticsMapperCqxz"
>
<!--每年十二月立案数统计·-->
<select
id=
"getYearMonthLaDount"
resultType=
"Map"
parameterType=
"com.founder.commonutils.model.newPublicEntity.WarningEntity.DataStatisticsParams"
>
select
IFNULL(SUM(CASE WHEN MONTH(a.larq) = 1 THEN 1 ELSE 0 END), 0) AS `1`,
IFNULL(SUM(CASE WHEN MONTH(a.larq) = 2 THEN 1 ELSE 0 END), 0) AS `2`,
IFNULL(SUM(CASE WHEN MONTH(a.larq) = 3 THEN 1 ELSE 0 END), 0) AS `3`,
IFNULL(SUM(CASE WHEN MONTH(a.larq) = 4 THEN 1 ELSE 0 END), 0) AS `4`,
IFNULL(SUM(CASE WHEN MONTH(a.larq) = 5 THEN 1 ELSE 0 END), 0) AS `5`,
IFNULL(SUM(CASE WHEN MONTH(a.larq) = 6 THEN 1 ELSE 0 END), 0) AS `6`,
IFNULL(SUM(CASE WHEN MONTH(a.larq) = 7 THEN 1 ELSE 0 END), 0) AS `7`,
IFNULL(SUM(CASE WHEN MONTH(a.larq) = 8 THEN 1 ELSE 0 END), 0) AS `8`,
IFNULL(SUM(CASE WHEN MONTH(a.larq) = 9 THEN 1 ELSE 0 END), 0) AS `9`,
IFNULL(SUM(CASE WHEN MONTH(a.larq) = 10 THEN 1 ELSE 0 END), 0) AS `10`,
IFNULL(SUM(CASE WHEN MONTH(a.larq) = 11 THEN 1 ELSE 0 END), 0) AS `11`,
IFNULL(SUM(CASE WHEN MONTH(a.larq) = 12 THEN 1 ELSE 0 END), 0) AS `12`
from tb_st_asj a
where XXSC_PDBZ ='0'
and ASJFSSJ_ASJFSKSSJ
<![CDATA[>=]]>
str_to_date(#{xaStartTime},'%Y-%m-%d %H:%i:%s')
and ASJFSSJ_ASJFSKSSJ
<![CDATA[<=]]>
str_to_date(#{xaEndTime},'%Y-%m-%d %H:%i:%s')
and larq
<![CDATA[>=]]>
str_to_date(#{startTime},'%Y-%m-%d %H:%i:%s')
and larq
<![CDATA[<=]]>
str_to_date(#{endTime},'%Y-%m-%d %H:%i:%s')
<if
test=
"xzlb!=null and xzlb!=''"
>
and ZATZ_JYQK in (${xzlb})
</if>
<if
test=
"ajlbdm!=null and ajlbdm!=''"
>
and AJLBDM in (${ajlbdm})
</if>
</select>
<select
id=
"getXzqhLaCount"
resultType=
"java.util.Map"
parameterType=
"com.founder.commonutils.model.newPublicEntity.WarningEntity.DataStatisticsParams"
>
SELECT COUNT(*) AS "num",xzqhdm as "xzqhdm",(select name from sys_dictitem where groupID='CODE_XZQH' AND
CODE=xzqhdm and scbz = '0') as "xzqhMc"
FROM (
select a.ASJBH,LEFT(a.LADW_GAJGJGDM,6) as xzqhdm
from tb_st_asj a where xxsc_pdbz='0'
and ASJFSSJ_ASJFSKSSJ
<![CDATA[>=]]>
str_to_date(#{xaStartTime},'%Y-%m-%d %H:%i:%s')
and ASJFSSJ_ASJFSKSSJ
<![CDATA[<=]]>
str_to_date(#{xaEndTime},'%Y-%m-%d %H:%i:%s')
and larq
<![CDATA[>=]]>
str_to_date(#{startTime},'%Y-%m-%d %H:%i:%s')
and larq
<![CDATA[<=]]>
str_to_date(#{endTime},'%Y-%m-%d %H:%i:%s')
<if
test=
"xzqhdm!=null and xzqhdm!=''"
>
and LADW_GAJGJGDM LIKE #{xzqhdm} || '%'
</if>
<if
test=
"xzlb!=null and xzlb!=''"
>
and ZATZ_JYQK in (${xzlb})
</if>
<if
test=
"ajlbdm!=null and ajlbdm!=''"
>
and AJLBDM in (${ajlbdm})
</if>
) s
group by xzqhdm
</select>
<select
id=
"selectXzqhdmBycq"
resultType=
"com.founder.commonutils.model.newPublicEntity.SysDictitem"
>
select * from sys_dictitem where GROUPID='CODE_XZQH' AND CODE LIKE '50%'
</select>
</mapper>
\ No newline at end of file
service/publicapi/src/main/java/com/founder/publicapi/service/DataStatisticsService.java
0 → 100644
View file @
d2cbd235
package
com
.
founder
.
publicapi
.
service
;
import
com.alibaba.fastjson.JSONObject
;
import
com.founder.commonutils.model.newPublicEntity.WarningEntity.DataStatisticsParams
;
public
interface
DataStatisticsService
{
JSONObject
getIntegratedTwoMapNew
(
DataStatisticsParams
params
);
}
service/publicapi/src/main/java/com/founder/publicapi/service/serviceimpl/DataStatisticsServiceImpl.java
0 → 100644
View file @
d2cbd235
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