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
4051b155
Commit
4051b155
authored
Jan 05, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
修改bug
parents
0971f5ef
3dbe85a2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
+13
-5
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+2
-0
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+9
-3
CheckInputMapper.xml
...-patrol/src/main/resources/db/mapper/CheckInputMapper.xml
+1
-1
dbTemplate_check.xml
...-patrol/src/main/resources/db/mapper/dbTemplate_check.xml
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
4051b155
...
@@ -3343,6 +3343,8 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -3343,6 +3343,8 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
peopleBasicInfoDto
.
setBizOrgName
(
firefighters
.
getBizOrgName
());
peopleBasicInfoDto
.
setBizOrgName
(
firefighters
.
getBizOrgName
());
peopleBasicInfoDto
.
setFireTeamId
(
firefighters
.
getFireTeamId
());
peopleBasicInfoDto
.
setFireTeamId
(
firefighters
.
getFireTeamId
());
peopleBasicInfoDto
.
setFireTeamName
(
firefighters
.
getFireTeamName
());
peopleBasicInfoDto
.
setFireTeamName
(
firefighters
.
getFireTeamName
());
//10445 BUG
peopleBasicInfoDto
.
setCertificatesType
(
firefighters
.
getCertificatesType
());
}
}
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
4051b155
...
@@ -1919,6 +1919,8 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -1919,6 +1919,8 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
List
<
String
>
indicatorList
=
Arrays
.
asList
(
split
);
List
<
String
>
indicatorList
=
Arrays
.
asList
(
split
);
List
<
Map
<
String
,
Object
>>
weekReportList
=
fireFightingSystemMapper
.
selectWeekReportList
(
String
.
valueOf
(
system
.
get
(
"id"
)),
startDate
,
endDate
);
List
<
Map
<
String
,
Object
>>
weekReportList
=
fireFightingSystemMapper
.
selectWeekReportList
(
String
.
valueOf
(
system
.
get
(
"id"
)),
startDate
,
endDate
);
ArrayList
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
ArrayList
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
ArrayList
<
Map
<
String
,
Object
>>
alarmMapList
=
new
ArrayList
<>();
if
(!
CollectionUtils
.
isEmpty
(
weekReportList
))
{
if
(!
CollectionUtils
.
isEmpty
(
weekReportList
))
{
for
(
Map
<
String
,
Object
>
weekItem
:
weekReportList
)
{
for
(
Map
<
String
,
Object
>
weekItem
:
weekReportList
)
{
HashMap
<
String
,
Object
>
listItem
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
listItem
=
new
HashMap
<>();
...
@@ -1945,6 +1947,10 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -1945,6 +1947,10 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
}
else
{
}
else
{
listItem
.
put
(
"trueNum"
,
String
.
valueOf
(
0
));
listItem
.
put
(
"trueNum"
,
String
.
valueOf
(
0
));
}
}
Map
<
String
,
Object
>
alarmMap
=
new
HashMap
<>();
alarmMap
.
put
(
"type"
,
listItem
.
get
(
"name"
));
alarmMap
.
put
(
"value"
,
listItem
.
get
(
"alarmEquipNum"
));
alarmMapList
.
add
(
alarmMap
);
list
.
add
(
listItem
);
list
.
add
(
listItem
);
}
}
}
else
{
}
else
{
...
@@ -1973,8 +1979,8 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -1973,8 +1979,8 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
"条,正常设备"
+(
ObjectUtils
.
isEmpty
(
summarize
.
get
(
"normalNum"
))?
0
:
summarize
.
get
(
"normalNum"
))+
"台,正常率"
+(
ObjectUtils
.
isEmpty
(
summarize
.
get
(
"normalRate"
))?
0
:
summarize
.
get
(
"normalRate"
))+
"%"
);
"条,正常设备"
+(
ObjectUtils
.
isEmpty
(
summarize
.
get
(
"normalNum"
))?
0
:
summarize
.
get
(
"normalNum"
))+
"台,正常率"
+(
ObjectUtils
.
isEmpty
(
summarize
.
get
(
"normalRate"
))?
0
:
summarize
.
get
(
"normalRate"
))+
"%"
);
// echarts 图表
// echarts 图表
List
<
Map
<
String
,
Object
>>
mapList
=
fireFightingSystemMapper
.
selectDayEquipEchart
(
valueOf
(
system
.
get
(
"code"
)),
startDate
,
endDate
);
//
List<Map<String, Object>> mapList = fireFightingSystemMapper.selectDayEquipEchart(valueOf(system.get("code")), startDate, endDate);
String
pieChart1
=
ChartsUtils
.
pieChart
(
m
apList
,
"故障设备类型占比"
);
String
pieChart1
=
ChartsUtils
.
pieChart
(
alarmM
apList
,
"故障设备类型占比"
);
// List<Map<String, Object>> dayEcharts = fireFightingSystemMapper.selectDayEchart(valueOf(system.get("id")), startDate, indicatorList);
// List<Map<String, Object>> dayEcharts = fireFightingSystemMapper.selectDayEchart(valueOf(system.get("id")), startDate, indicatorList);
ArrayList
<
Map
<
String
,
Object
>>
dayEchart
=
new
ArrayList
<>();
ArrayList
<
Map
<
String
,
Object
>>
dayEchart
=
new
ArrayList
<>();
...
@@ -1992,7 +1998,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -1992,7 +1998,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
}
}
dayEchart
.
add
(
dayEchartsDate1
);
dayEchart
.
add
(
dayEchartsDate1
);
String
pieChart2
=
ChartsUtils
.
pieChart
(
dayEchart
,
"告警
信息
占比"
);
String
pieChart2
=
ChartsUtils
.
pieChart
(
dayEchart
,
"告警
设备
占比"
);
systemData
.
put
(
"pictureRight"
,
pieChart1
);
systemData
.
put
(
"pictureRight"
,
pieChart1
);
systemData
.
put
(
"pictureLeft"
,
pieChart2
);
systemData
.
put
(
"pictureLeft"
,
pieChart2
);
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/CheckInputMapper.xml
View file @
4051b155
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
c.point_id,
c.point_id,
c.point_name,
c.point_name,
c.check_time,
c.check_time,
pt.end_time
AS `date`,
null
AS `date`,
c.plan_id,
c.plan_id,
c.plan_name,
c.plan_name,
c.route_id,
c.route_id,
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
4051b155
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
<if
test=
"pointName!=null"
>
and b.name like concat(concat("%",#{pointName}),"%")
</if>
<if
test=
"pointName!=null"
>
and b.name like concat(concat("%",#{pointName}),"%")
</if>
<if
test=
"pointNo!=null"
>
and b.point_no like concat('%',#{pointNo},'%')
</if>
<if
test=
"pointNo!=null"
>
and b.point_no like concat('%',#{pointNo},'%')
</if>
<if
test=
"isFixed!=null"
>
and b.is_fixed = #{isFixed}
</if>
<if
test=
"isFixed!=null"
>
and b.is_fixed = #{isFixed}
</if>
<if
test=
"isOK!=null"
>
and a.is_OK = #{isOK}
</if>
<if
test=
"isOK!=null
and isOk!=''
"
>
and a.is_OK = #{isOK}
</if>
<if
test=
"planId!=null"
>
and a.plan_Id = #{planId}
</if>
<if
test=
"planId!=null"
>
and a.plan_Id = #{planId}
</if>
<if
test=
"planTaskId!=null"
>
and a.plan_task_id = #{planTaskId}
</if>
<if
test=
"planTaskId!=null"
>
and a.plan_task_id = #{planTaskId}
</if>
<if
test=
"userId!=null"
>
and find_in_set(#{userId}, a.user_id) > 0
</if>
<if
test=
"userId!=null"
>
and find_in_set(#{userId}, a.user_id) > 0
</if>
...
...
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