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
6f4ec3e8
Commit
6f4ec3e8
authored
Sep 20, 2024
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大瓶隐患折线图添加orgCode筛选
parent
68c6fed4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
SafetyProblemTracingMapper.java
...boot/module/jg/api/mapper/SafetyProblemTracingMapper.java
+2
-2
SafetyProblemTracingMapper.xml
.../src/main/resources/mapper/SafetyProblemTracingMapper.xml
+6
-0
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+8
-3
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/mapper/SafetyProblemTracingMapper.java
View file @
6f4ec3e8
...
@@ -25,7 +25,7 @@ public interface SafetyProblemTracingMapper extends BaseMapper<SafetyProblemTrac
...
@@ -25,7 +25,7 @@ public interface SafetyProblemTracingMapper extends BaseMapper<SafetyProblemTrac
List
<
Map
<
String
,
Object
>>
queryOutOfMaintenanceRecord
();
List
<
Map
<
String
,
Object
>>
queryOutOfMaintenanceRecord
();
List
<
String
>
getBusinessType
(
@Param
(
"sourceTypeCode"
)
String
sourceTypeCode
);
List
<
String
>
getBusinessType
(
@Param
(
"sourceTypeCode"
)
String
sourceTypeCode
,
@Param
(
"orgCode"
)
String
orgCode
);
List
<
Map
<
String
,
Object
>>
getBusinessCount
(
@Param
(
"sourceTypeCode"
)
String
sourceTypeCode
);
List
<
Map
<
String
,
Object
>>
getBusinessCount
(
@Param
(
"sourceTypeCode"
)
String
sourceTypeCode
,
@Param
(
"orgCode"
)
String
orgCode
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/SafetyProblemTracingMapper.xml
View file @
6f4ec3e8
...
@@ -144,6 +144,9 @@
...
@@ -144,6 +144,9 @@
tzs_safety_problem_tracing
tzs_safety_problem_tracing
where
where
is_delete = '0'
is_delete = '0'
<if
test=
"orgCode != null and orgCode != ''"
>
and governing_body_org_code like CONCAT(#{orgCode}, '%')
</if>
<if
test=
"sourceTypeCode != null and sourceTypeCode != ''"
>
<if
test=
"sourceTypeCode != null and sourceTypeCode != ''"
>
and source_type_code = #{sourceTypeCode}
and source_type_code = #{sourceTypeCode}
</if>
</if>
...
@@ -159,6 +162,9 @@
...
@@ -159,6 +162,9 @@
tzs_safety_problem_tracing
tzs_safety_problem_tracing
WHERE
WHERE
is_delete = '0'
is_delete = '0'
<if
test=
"orgCode != null and orgCode != ''"
>
and governing_body_org_code like CONCAT(#{orgCode}, '%')
</if>
<if
test=
"sourceTypeCode != null and sourceTypeCode != ''"
>
<if
test=
"sourceTypeCode != null and sourceTypeCode != ''"
>
and source_type_code = #{sourceTypeCode}
and source_type_code = #{sourceTypeCode}
</if>
</if>
...
...
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/JGDPStatisticsServiceImpl.java
View file @
6f4ec3e8
...
@@ -68,6 +68,7 @@ import org.springframework.util.ObjectUtils;
...
@@ -68,6 +68,7 @@ import org.springframework.util.ObjectUtils;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.lang.reflect.Field
;
import
java.lang.reflect.Field
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
...
@@ -79,10 +80,10 @@ import java.time.LocalDateTime;
...
@@ -79,10 +80,10 @@ import java.time.LocalDateTime;
import
java.time.format.DateTimeFormatter
;
import
java.time.format.DateTimeFormatter
;
import
java.time.temporal.TemporalAdjusters
;
import
java.time.temporal.TemporalAdjusters
;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.concurrent.ThreadLocalRandom
;
import
java.util.concurrent.ThreadLocalRandom
;
import
java.util.function.Function
;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
static
com
.
alibaba
.
fastjson
.
JSON
.
parseArray
;
import
static
com
.
alibaba
.
fastjson
.
JSON
.
parseArray
;
/**
/**
...
@@ -3251,13 +3252,17 @@ public class JGDPStatisticsServiceImpl {
...
@@ -3251,13 +3252,17 @@ public class JGDPStatisticsServiceImpl {
}
}
public
Map
<
String
,
Object
>
getProblemChart
(
SafetyProblemTracingDto
problemModel
)
{
public
Map
<
String
,
Object
>
getProblemChart
(
SafetyProblemTracingDto
problemModel
)
{
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
problemModel
.
getCityCode
());
if
(
ObjectUtils
.
isEmpty
(
orgCode
)){
return
new
HashMap
<>();
}
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
String
sourceTypeCode
=
problemModel
.
getSourceTypeCode
();
String
sourceTypeCode
=
problemModel
.
getSourceTypeCode
();
List
<
String
>
xdata
=
safetyProblemTracingMapper
.
getBusinessType
(
sourceTypeCode
);
List
<
String
>
xdata
=
safetyProblemTracingMapper
.
getBusinessType
(
sourceTypeCode
,
orgCode
);
if
(
ObjectUtils
.
isEmpty
(
xdata
)){
if
(
ObjectUtils
.
isEmpty
(
xdata
)){
return
resultMap
;
return
resultMap
;
}
}
List
<
Map
<
String
,
Object
>>
countMap
=
safetyProblemTracingMapper
.
getBusinessCount
(
sourceTypeCode
);
List
<
Map
<
String
,
Object
>>
countMap
=
safetyProblemTracingMapper
.
getBusinessCount
(
sourceTypeCode
,
orgCode
);
List
<
String
>
redCount
=
new
ArrayList
<>();
List
<
String
>
redCount
=
new
ArrayList
<>();
List
<
String
>
yellowCount
=
new
ArrayList
<>();
List
<
String
>
yellowCount
=
new
ArrayList
<>();
List
<
String
>
greenCount
=
new
ArrayList
<>();
List
<
String
>
greenCount
=
new
ArrayList
<>();
...
...
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