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
6a13d3df
Commit
6a13d3df
authored
Jul 10, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.大屏地图图列统计接口开发空指针处理
parent
ee6cead1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
106 additions
and
35 deletions
+106
-35
DPStatisticsController.java
...boot/module/jg/biz/controller/DPStatisticsController.java
+12
-1
ApplicationRunnerImpl.java
...n/amos/boot/module/jg/biz/init/ApplicationRunnerImpl.java
+15
-1
DPStatisticsServiceImpl.java
...t/module/jg/biz/service/impl/DPStatisticsServiceImpl.java
+74
-29
TzsUserInfoMapper.java
...in/amos/boot/module/ymt/api/mapper/TzsUserInfoMapper.java
+1
-1
EquipTechParamPipelineMapper.xml
...rc/main/resources/mapper/EquipTechParamPipelineMapper.xml
+2
-2
TzsUserInfoMapper.xml
...e-ymt-api/src/main/resources/mapper/TzsUserInfoMapper.xml
+2
-1
No files found.
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 @
6a13d3df
...
@@ -51,7 +51,7 @@ public class DPStatisticsController {
...
@@ -51,7 +51,7 @@ public class DPStatisticsController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏总览中间-地图左右两侧8大类、单位、人员数量全局统计"
,
notes
=
"大屏总览中间-地图左右两侧8大类、单位、人员数量全局统计"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏总览中间-地图左右两侧8大类、单位、人员数量全局统计"
,
notes
=
"大屏总览中间-地图左右两侧8大类、单位、人员数量全局统计"
)
@PostMapping
(
value
=
"/zl/center-map/
global/count
"
)
@PostMapping
(
value
=
"/zl/center-map/
legend
"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
centerMapCountForGlobal
(
@Validated
@RequestBody
DPFilterParamDto
dpFilterParamDto
,
BindingResult
result
)
{
public
ResponseModel
<
Map
<
String
,
Object
>>
centerMapCountForGlobal
(
@Validated
@RequestBody
DPFilterParamDto
dpFilterParamDto
,
BindingResult
result
)
{
List
<
FieldError
>
fieldErrors
=
result
.
getFieldErrors
();
List
<
FieldError
>
fieldErrors
=
result
.
getFieldErrors
();
if
(!
fieldErrors
.
isEmpty
())
{
if
(!
fieldErrors
.
isEmpty
())
{
...
@@ -61,6 +61,17 @@ public class DPStatisticsController {
...
@@ -61,6 +61,17 @@ public class DPStatisticsController {
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏总览中间-地图地市统计"
,
notes
=
"大屏总览中间-地图地市统计"
)
@PostMapping
(
value
=
"/zl/center-map/overview"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
centerMapCountForOverview
(
@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
.
getCenterMapCountDataForOverview
(
dpFilterParamDto
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏八大类左侧-使用登记统计"
,
notes
=
"大屏八大类左侧-使用登记统计"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏八大类左侧-使用登记统计"
,
notes
=
"大屏八大类左侧-使用登记统计"
)
@PostMapping
(
value
=
"/useRegisterCount"
)
@PostMapping
(
value
=
"/useRegisterCount"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
useRegisterCount
(
@Validated
@RequestBody
DPFilterParamDto
dpFilterParamDto
,
BindingResult
result
)
{
public
ResponseModel
<
Map
<
String
,
Object
>>
useRegisterCount
(
@Validated
@RequestBody
DPFilterParamDto
dpFilterParamDto
,
BindingResult
result
)
{
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/init/ApplicationRunnerImpl.java
View file @
6a13d3df
...
@@ -5,9 +5,11 @@ import com.yeejoin.amos.boot.module.jg.api.entity.*;
...
@@ -5,9 +5,11 @@ import com.yeejoin.amos.boot.module.jg.api.entity.*;
import
com.yeejoin.amos.boot.module.jg.api.service.IEquipUsedCheck
;
import
com.yeejoin.amos.boot.module.jg.api.service.IEquipUsedCheck
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.*
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.*
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum
;
import
com.yeejoin.amos.component.robot.AmosRequestContext
;
import
org.springframework.boot.ApplicationArguments
;
import
org.springframework.boot.ApplicationArguments
;
import
org.springframework.boot.ApplicationRunner
;
import
org.springframework.boot.ApplicationRunner
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
java.util.List
;
import
java.util.List
;
...
@@ -48,6 +50,10 @@ public class ApplicationRunnerImpl implements ApplicationRunner {
...
@@ -48,6 +50,10 @@ public class ApplicationRunnerImpl implements ApplicationRunner {
private
List
<
IEquipUsedCheck
>
equipUsedCheckList
;
private
List
<
IEquipUsedCheck
>
equipUsedCheckList
;
private
DPStatisticsServiceImpl
statisticsService
;
private
AmosRequestContext
amosRequestContext
;
public
ApplicationRunnerImpl
(
JgUseRegistrationServiceImpl
useRegistrationService
,
public
ApplicationRunnerImpl
(
JgUseRegistrationServiceImpl
useRegistrationService
,
CommonServiceImpl
commonService
,
CommonServiceImpl
commonService
,
JgInstallationNoticeServiceImpl
installationNoticeService
,
JgInstallationNoticeServiceImpl
installationNoticeService
,
...
@@ -63,7 +69,7 @@ public class ApplicationRunnerImpl implements ApplicationRunner {
...
@@ -63,7 +69,7 @@ public class ApplicationRunnerImpl implements ApplicationRunner {
JgScrapCancelServiceImpl
scrapCancelService
,
JgScrapCancelServiceImpl
scrapCancelService
,
JgChangeRegistrationNameServiceImpl
changeRegistrationNameService
,
JgChangeRegistrationNameServiceImpl
changeRegistrationNameService
,
ReportAnalysisServiceImpl
reportAnalysisService
,
ReportAnalysisServiceImpl
reportAnalysisService
,
List
<
IEquipUsedCheck
>
equipUsedCheckList
)
{
List
<
IEquipUsedCheck
>
equipUsedCheckList
,
DPStatisticsServiceImpl
statisticsService
,
AmosRequestContext
amosRequestContext
)
{
this
.
commonService
=
commonService
;
this
.
commonService
=
commonService
;
this
.
useRegistrationService
=
useRegistrationService
;
this
.
useRegistrationService
=
useRegistrationService
;
...
@@ -95,6 +101,8 @@ public class ApplicationRunnerImpl implements ApplicationRunner {
...
@@ -95,6 +101,8 @@ public class ApplicationRunnerImpl implements ApplicationRunner {
this
.
reportAnalysisService
=
reportAnalysisService
;
this
.
reportAnalysisService
=
reportAnalysisService
;
this
.
equipUsedCheckList
=
equipUsedCheckList
;
this
.
equipUsedCheckList
=
equipUsedCheckList
;
this
.
statisticsService
=
statisticsService
;
this
.
amosRequestContext
=
amosRequestContext
;
}
}
...
@@ -184,5 +192,11 @@ public class ApplicationRunnerImpl implements ApplicationRunner {
...
@@ -184,5 +192,11 @@ public class ApplicationRunnerImpl implements ApplicationRunner {
// 流程中的设备统计数据预热
// 流程中的设备统计数据预热
equipUsedCheckList
.
forEach
(
IEquipUsedCheck:
:
init
);
equipUsedCheckList
.
forEach
(
IEquipUsedCheck:
:
init
);
// 初始化数据到内存
RequestContext
.
setAppKey
(
amosRequestContext
.
getAppKey
());
RequestContext
.
setProduct
(
amosRequestContext
.
getProduct
());
RequestContext
.
setToken
(
amosRequestContext
.
getToken
());
statisticsService
.
init
();
}
}
}
}
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 @
6a13d3df
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/mapper/TzsUserInfoMapper.java
View file @
6a13d3df
...
@@ -12,5 +12,5 @@ import java.util.Set;
...
@@ -12,5 +12,5 @@ import java.util.Set;
public
interface
TzsUserInfoMapper
extends
BaseMapper
<
TzsUserInfo
>
{
public
interface
TzsUserInfoMapper
extends
BaseMapper
<
TzsUserInfo
>
{
Page
<
TzsUserInfoDto
>
selectPageMessage
(
@Param
(
"page"
)
Page
<
TzsUserInfoDto
>
page
,
@Param
(
"dto"
)
TzsUserInfoDto
dto
);
Page
<
TzsUserInfoDto
>
selectPageMessage
(
@Param
(
"page"
)
Page
<
TzsUserInfoDto
>
page
,
@Param
(
"dto"
)
TzsUserInfoDto
dto
);
Long
countUserByPostAndAreaCode
(
@Param
(
"
areaCode"
)
String
area
Code
,
@Param
(
"post"
)
String
post
);
Long
countUserByPostAndAreaCode
(
@Param
(
"
orgCode"
)
String
org
Code
,
@Param
(
"post"
)
String
post
);
}
}
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/EquipTechParamPipelineMapper.xml
View file @
6a13d3df
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</select>
</select>
<select
id=
"sumPipeLengthByArea"
resultType=
"java.lang.String"
>
<select
id=
"sumPipeLengthByArea"
resultType=
"java.lang.String"
>
select
select
round(sum(p."PIPE_LENGTH"), 2
) as PIPE_LENGTH
COALESCE(round(sum(p."PIPE_LENGTH"), 2),0
) as PIPE_LENGTH
from
from
idx_biz_jg_tech_params_pipeline p,
idx_biz_jg_tech_params_pipeline p,
(
(
...
@@ -45,6 +45,6 @@
...
@@ -45,6 +45,6 @@
and ui.IS_INTO_MANAGEMENT =true
and ui.IS_INTO_MANAGEMENT =true
) a
) a
where
where
p."RECORD" = a."RECORD" and
c
.areaCode like concat('%',#{cityCode}, '%')
p."RECORD" = a."RECORD" and
a
.areaCode like concat('%',#{cityCode}, '%')
</select>
</select>
</mapper>
</mapper>
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/TzsUserInfoMapper.xml
View file @
6a13d3df
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
WHERE
WHERE
tui.unit_code = bi.use_code
tui.unit_code = bi.use_code
and tui.post LIKE concat ( '%', #{post}, '%' )
and tui.post LIKE concat ( '%', #{post}, '%' )
and bi.supervise_org_code LIKE CONCAT ( #{
areaCode}
}, '%' )
and bi.supervise_org_code LIKE CONCAT ( #{
orgCode
}, '%' )
and tui.is_delete=false
and tui.is_delete=false
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
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