Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
95a8067b
Commit
95a8067b
authored
Jul 16, 2025
by
hcing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:统计服务,大屏综合统计查询接口--人员统计
parent
f65026ad
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
10 deletions
+55
-10
PersonTypeEnum.java
...amos/boot/module/statistics/api/enums/PersonTypeEnum.java
+26
-0
ComprehensiveStatisticalAnalysisController.java
...ontroller/ComprehensiveStatisticalAnalysisController.java
+29
-10
ComprehensiveStatisticalAnalysisServiceImpl.java
...ice/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
+0
-0
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/java/com/yeejoin/amos/boot/module/statistics/api/enums/PersonTypeEnum.java
0 → 100644
View file @
95a8067b
package
com
.
yeejoin
.
amos
.
boot
.
module
.
statistics
.
api
.
enums
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
@AllArgsConstructor
@Getter
public
enum
PersonTypeEnum
{
/**
* *人员类型
*/
jyry
(
"检验人员"
),
jcry
(
"检测人员"
),
aqy
(
"安全员"
),
agwfzr
(
"安改维负责人"
),
zyfzr
(
"主要负责人"
),
aqzj
(
"安全总监"
),
zlaqy
(
"质量安全员"
),
zlaqzj
(
"质量安全总监"
);
private
final
String
name
;
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/controller/ComprehensiveStatisticalAnalysisController.java
View file @
95a8067b
...
@@ -16,6 +16,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
...
@@ -16,6 +16,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Optional
;
/**
/**
* 综合统计分析API
* 综合统计分析API
...
@@ -177,7 +178,35 @@ public class ComprehensiveStatisticalAnalysisController extends BaseController {
...
@@ -177,7 +178,35 @@ public class ComprehensiveStatisticalAnalysisController extends BaseController {
@PostMapping
(
value
=
"/page"
)
@PostMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"综合统计分析接口分页查询"
,
notes
=
"综合统计分析接口分页查询"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"综合统计分析接口分页查询"
,
notes
=
"综合统计分析接口分页查询"
)
public
ResponseModel
<
JSONObject
>
queryForPage
(
@RequestBody
Map
<
String
,
Object
>
map
)
{
public
ResponseModel
<
JSONObject
>
queryForPage
(
@RequestBody
Map
<
String
,
Object
>
map
)
{
return
ResponseHelper
.
buildResponse
(
statisticalAnalysisService
.
queryForPage
(
new
JSONObject
(
map
)));
}
/**
* 综合统计分析接口分页查询-大屏中人员列表
* 区别在于【资质状态】 无资质 certNo_0
* @param map
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/person/page"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"综合统计分析接口分页查询-大屏中人员列表"
,
notes
=
"综合统计分析接口分页查询-大屏中人员列表"
)
public
ResponseModel
<
JSONObject
>
queryPersonForPage
(
@RequestBody
Map
<
String
,
Object
>
map
)
{
JSONObject
jsonObject
=
new
JSONObject
(
map
);
JSONObject
jsonObject
=
new
JSONObject
(
map
);
String
targetValue
=
"certNo_0"
;
boolean
containsTarget
=
Optional
.
of
(
jsonObject
)
.
map
(
obj
->
obj
.
getJSONObject
(
"filterParams"
))
.
map
(
filterParams
->
filterParams
.
getJSONArray
(
"expiryDate"
))
.
map
(
expiryDateArray
->
expiryDateArray
.
contains
(
targetValue
))
.
orElse
(
false
);
if
(
containsTarget
)
{
JSONObject
filterParams
=
jsonObject
.
getJSONObject
(
"filterParams"
);
JSONArray
expiryDate
=
filterParams
.
getJSONArray
(
"expiryDate"
);
expiryDate
.
remove
(
targetValue
);
JSONArray
certNo
=
filterParams
.
getJSONArray
(
"certNo"
);
certNo
.
add
(
"0"
);
filterParams
.
fluentPut
(
"expiryDate"
,
expiryDate
).
fluentPut
(
"certNo"
,
certNo
);
jsonObject
.
put
(
"filterParams"
,
filterParams
);
}
return
ResponseHelper
.
buildResponse
(
statisticalAnalysisService
.
queryForPage
(
jsonObject
));
return
ResponseHelper
.
buildResponse
(
statisticalAnalysisService
.
queryForPage
(
jsonObject
));
}
}
...
@@ -197,16 +226,6 @@ public class ComprehensiveStatisticalAnalysisController extends BaseController {
...
@@ -197,16 +226,6 @@ public class ComprehensiveStatisticalAnalysisController extends BaseController {
}
}
/**
/**
* 大屏综合统计--人员统计
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/dp/statistics/person"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏综合统计查询接口--人员统计"
,
notes
=
"大屏综合统计查询接口--人员统计"
)
public
ResponseModel
<
JSONObject
>
queryDpStatisticsForPerson
(
@RequestBody
Map
<
String
,
Object
>
map
)
{
return
ResponseHelper
.
buildResponse
(
statisticalAnalysisService
.
queryDpStatisticsForPerson
(
new
JSONObject
(
map
)));
}
/**
* 综合统计分析接口-导出
* 综合统计分析接口-导出
*
*
* @param map 入参
* @param map 入参
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
View file @
95a8067b
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