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
b16ca9db
Commit
b16ca9db
authored
Aug 16, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.安全追溯详情接口开发
parent
1b5db157
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
AQZSDPStatisticsMapper.xml
...-api/src/main/resources/mapper/AQZSDPStatisticsMapper.xml
+2
-2
AQZSDPStatisticsController.java
.../statistcs/biz/controller/AQZSDPStatisticsController.java
+9
-0
AQZSDPStatisticsServiceImpl.java
...atistcs/biz/service/impl/AQZSDPStatisticsServiceImpl.java
+13
-1
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/AQZSDPStatisticsMapper.xml
View file @
b16ca9db
...
@@ -386,10 +386,10 @@
...
@@ -386,10 +386,10 @@
<if
test=
"problemModel.problemTypeCode != null and problemModel.problemTypeCode != ''"
>
<if
test=
"problemModel.problemTypeCode != null and problemModel.problemTypeCode != ''"
>
and spt.problem_type_code = #{problemModel.problemTypeCode}
and spt.problem_type_code = #{problemModel.problemTypeCode}
</if>
</if>
<if
test=
"problemModel.problemTimeStart != null "
>
<if
test=
"problemModel.problemTimeStart != null
and problemModel.problemTimeStart != ''
"
>
and cast(spt.problem_time AS DATE) >= #{problemModel.problemTimeStart}
and cast(spt.problem_time AS DATE) >= #{problemModel.problemTimeStart}
</if>
</if>
<if
test=
"problemModel.problemTimeEnd != null"
>
<if
test=
"problemModel.problemTimeEnd != null
and problemModel.problemTimeEnd != ''
"
>
and cast(spt.problem_time AS DATE)
<![CDATA[<=]]>
#{problemModel.problemTimeEnd}
and cast(spt.problem_time AS DATE)
<![CDATA[<=]]>
#{problemModel.problemTimeEnd}
</if>
</if>
<if
test=
"problemModel.problemDesc != null and problemModel.problemDesc != ''"
>
<if
test=
"problemModel.problemDesc != null and problemModel.problemDesc != ''"
>
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/controller/AQZSDPStatisticsController.java
View file @
b16ca9db
...
@@ -317,4 +317,13 @@ public class AQZSDPStatisticsController {
...
@@ -317,4 +317,13 @@ public class AQZSDPStatisticsController {
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getProblemRecords
(
page
,
problemModel
));
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getProblemRecords
(
page
,
problemModel
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"安全追溯-详情-隐患类型"
,
notes
=
"安全追溯-详情-隐患类型"
)
@PostMapping
(
value
=
"/dict/yh/type"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getYhType
()
{
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getYhType
());
}
}
}
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/AQZSDPStatisticsServiceImpl.java
View file @
b16ca9db
package
com
.
yeejoin
.
amos
.
boot
.
module
.
statistcs
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
statistcs
.
biz
.
service
.
impl
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.date.DateUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.dao.mapper.DataDictionaryMapper
;
import
com.yeejoin.amos.boot.biz.common.dao.mapper.DataDictionaryMapper
;
...
@@ -1107,7 +1108,7 @@ public class AQZSDPStatisticsServiceImpl {
...
@@ -1107,7 +1108,7 @@ public class AQZSDPStatisticsServiceImpl {
}
}
public
Page
<
SafetyProblemTracingDto
>
getProblemRecords
(
Page
<
SafetyProblemTracingDto
>
page
,
SafetyProblemTracingDto
problemModel
)
{
public
Page
<
SafetyProblemTracingDto
>
getProblemRecords
(
Page
<
SafetyProblemTracingDto
>
page
,
SafetyProblemTracingDto
problemModel
)
{
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
problemModel
.
get
Region
Code
());
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
problemModel
.
get
City
Code
());
if
(
orgCode
==
null
){
if
(
orgCode
==
null
){
return
new
Page
<>();
return
new
Page
<>();
}
}
...
@@ -1129,4 +1130,14 @@ public class AQZSDPStatisticsServiceImpl {
...
@@ -1129,4 +1130,14 @@ public class AQZSDPStatisticsServiceImpl {
}
}
return
statisticsMapper
.
queryForSafetyProblemTracingPage
(
page
,
problemModel
);
return
statisticsMapper
.
queryForSafetyProblemTracingPage
(
page
,
problemModel
);
}
}
public
List
<
Map
<
String
,
Object
>>
getYhType
()
{
List
<
DataDictionary
>
dictionaries
=
dataDictionaryMapper
.
selectList
(
new
LambdaQueryWrapper
<
DataDictionary
>().
eq
(
DataDictionary:
:
getType
,
"ISSUE_TYPE"
));
return
dictionaries
.
stream
().
map
(
d
->{
Map
<
String
,
Object
>
item
=
new
HashMap
<>();
item
.
put
(
"value"
,
d
.
getCode
());
item
.
put
(
"label"
,
d
.
getName
());
return
item
;
}).
collect
(
Collectors
.
toList
());
}
}
}
\ 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