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
8c41fd7d
Commit
8c41fd7d
authored
Jul 10, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.大屏地图图列统计架子
parent
44b5c24f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
0 deletions
+73
-0
DPMapStatisticsItemEnum.java
...mos/boot/module/jg/api/enums/DPMapStatisticsItemEnum.java
+37
-0
DPStatisticsController.java
...boot/module/jg/biz/controller/DPStatisticsController.java
+11
-0
DPStatisticsServiceImpl.java
...t/module/jg/biz/service/impl/DPStatisticsServiceImpl.java
+25
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/enums/DPMapStatisticsItemEnum.java
0 → 100644
View file @
8c41fd7d
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
enums
;
import
lombok.Getter
;
/**
* @author Administrator
*/
@Getter
public
enum
DPMapStatisticsItemEnum
{
/**
* 大屏统计项
*/
TOTAL
(
"特种设备总量 (台)"
,
"total"
),
GAS
(
"气瓶 (台)"
,
"gas"
),
ELEVATORS
(
"电梯 (台)"
,
"elevators"
),
PRESSURE_VESSELS
(
"压力容器 (台)"
,
"pressureVessels"
),
ON_SITE_MOTOR_VEHICLES
(
"场(厂)内机动车 (台)"
,
"onSiteMotorVehicles"
),
BOILERS
(
"锅炉 (台)"
,
"boilers"
),
LIFTING_MACHINERY
(
"起重机械 (台)"
,
"liftingMachinery"
),
LARGE_AMUSEMENT_FACILITIES
(
"大型游乐设施 (台)"
,
"largeAmusementFacilities"
),
PRESSURE_PIPELINES
(
"压力管道 (千米)"
,
"pressurePipelines"
),
PASSENGER_ROPEWAYS
(
"客运索道 (台)"
,
"passengerRopeways"
),
MANUFACTURING_UNITS
(
"制造单位 (家)"
,
"manufacturingUnits"
),
CONSTRUCTION_UNITS
(
"安改维单位 (家)"
,
"constructionUnits"
),
USERS_UNITS
(
"使用单位 (家)"
,
"usersUnits"
),
GAS_UNITS
(
"充装单位 (家)"
,
"gasUnits"
),
OPERATORS
(
"作业人员 (人)"
,
"operators"
);
private
String
label
;
private
String
code
;
DPMapStatisticsItemEnum
(
String
label
,
String
code
)
{
this
.
label
=
label
;
this
.
code
=
code
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/DPStatisticsController.java
View file @
8c41fd7d
...
@@ -48,4 +48,15 @@ public class DPStatisticsController {
...
@@ -48,4 +48,15 @@ public class DPStatisticsController {
}
}
return
ResponseHelper
.
buildResponse
(
statisticsService
.
useRegisterCountByEquList
(
dpFilterParamDto
));
return
ResponseHelper
.
buildResponse
(
statisticsService
.
useRegisterCountByEquList
(
dpFilterParamDto
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏总览中间-地图左右两侧8大类、单位、人员数量全局统计"
,
notes
=
"大屏总览中间-地图左右两侧8大类、单位、人员数量全局统计"
)
@PostMapping
(
value
=
"/zl/center-map/global/count"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
centerMapCountForGlobal
(
@Validated
@RequestBody
DPFilterParamDto
dpFilterParamDto
,
BindingResult
result
)
{
List
<
FieldError
>
fieldErrors
=
result
.
getFieldErrors
();
if
(!
fieldErrors
.
isEmpty
())
{
throw
new
BadRequest
(
fieldErrors
.
get
(
0
).
getDefaultMessage
());
}
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getCenterMapCountDataForGlobal
(
dpFilterParamDto
));
}
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/DPStatisticsServiceImpl.java
View file @
8c41fd7d
...
@@ -139,4 +139,29 @@ public class DPStatisticsServiceImpl {
...
@@ -139,4 +139,29 @@ public class DPStatisticsServiceImpl {
dpFilterParamDto
.
setEndDate
(
DateUtil
.
today
());
dpFilterParamDto
.
setEndDate
(
DateUtil
.
today
());
}
}
}
}
public
Map
<
String
,
Object
>
getCenterMapCountDataForGlobal
(
DPFilterParamDto
dpFilterParamDto
)
{
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
//1.8大类设备数量统计
this
.
staticsCenterMapCountDataForEquip
(
result
,
dpFilterParamDto
);
//2.压力管道长度统计
this
.
staticsCenterMapCountDataForPipeline
(
result
,
dpFilterParamDto
);
//3.单位数量统计
this
.
staticsCenterMapCountDataForCompany
(
result
,
dpFilterParamDto
);
//4.人员数量统计
this
.
staticsCenterMapCountDataForPerson
(
result
,
dpFilterParamDto
);
return
null
;
}
private
void
staticsCenterMapCountDataForPerson
(
Map
<
String
,
Object
>
result
,
DPFilterParamDto
dpFilterParamDto
)
{
}
private
void
staticsCenterMapCountDataForCompany
(
Map
<
String
,
Object
>
result
,
DPFilterParamDto
dpFilterParamDto
)
{
}
private
void
staticsCenterMapCountDataForPipeline
(
Map
<
String
,
Object
>
result
,
DPFilterParamDto
dpFilterParamDto
)
{
}
private
void
staticsCenterMapCountDataForEquip
(
Map
<
String
,
Object
>
result
,
DPFilterParamDto
dpFilterParamDto
)
{
}
}
}
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