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
cc0cfd8c
Commit
cc0cfd8c
authored
Aug 08, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl_bugfix_0723' into develop_dl_bugfix_0723
parents
de994bbd
a244158f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
26 deletions
+32
-26
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+27
-20
SignServiceImpl.java
...mos/boot/module/jcs/biz/service/impl/SignServiceImpl.java
+3
-4
EquipmentSpecificIndexMapper.xml
...rc/main/resources/mapper/EquipmentSpecificIndexMapper.xml
+1
-1
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
cc0cfd8c
...
@@ -2023,26 +2023,33 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -2023,26 +2023,33 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
List
<
Map
<
String
,
Object
>>
mapList
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
mapList
=
new
ArrayList
<>();
for
(
Map
<
String
,
Object
>
m
:
mapPatrol
for
(
Map
<
String
,
Object
>
m
:
mapPatrol
)
{
)
{
// 判断是否一次巡查都没有
if
(
m
.
get
(
"isFinishOnce"
).
toString
().
equals
(
"1"
))
{
if
(
m
.
get
(
"isFinishOnce"
).
toString
().
equals
(
"0"
))
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
if
(
m
.
get
(
"planNum"
).
toString
().
equals
(
"1"
))
{
map
.
put
(
"planName"
,
m
.
getOrDefault
(
"planName"
,
""
));
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"bizOrgCode"
,
m
.
get
(
"bizOrgCode"
));
map
.
put
(
"planName"
,
m
.
getOrDefault
(
"planName"
,
""
));
map
.
put
(
"bizOrgName"
,
m
.
get
(
"bizOrgName"
));
map
.
put
(
"bizOrgCode"
,
m
.
get
(
"bizOrgCode"
));
mapList
.
add
(
map
);
map
.
put
(
"bizOrgName"
,
m
.
get
(
"bizOrgName"
));
mapList
.
add
(
map
);
}
else
if
(
Integer
.
parseInt
(
m
.
get
(
"planNum"
).
toString
())
>
1
){
List
<
Map
<
String
,
Object
>>
mapPatrolTask
=
equipmentSpecificIndexMapper
.
patrolTaskQuery
(
m
.
get
(
"bizOrgCode"
).
toString
());
for
(
Map
<
String
,
Object
>
m1:
mapPatrolTask
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"planName"
,
m1
.
get
(
"planName"
).
toString
());
map
.
put
(
"bizOrgCode"
,
m1
.
get
(
"bizOrgCode"
).
toString
());
map
.
put
(
"bizOrgName"
,
m1
.
get
(
"bizOrgName"
).
toString
());
mapList
.
add
(
map
);
}
}
}
}
// 判断是否一次巡查都没有
// if(m.get("isFinishOnce").toString().equals("0")) {
// if(m.get("planNum").toString().equals("1")) {
// Map<String, Object> map = new HashMap<>();
// map.put("planName", m.getOrDefault("planName", ""));
// map.put("bizOrgCode", m.get("bizOrgCode"));
// map.put("bizOrgName", m.get("bizOrgName"));
// mapList.add(map);
// } else if(Integer.parseInt(m.get("planNum").toString()) > 1){
// List<Map<String, Object>> mapPatrolTask = equipmentSpecificIndexMapper.patrolTaskQuery(m.get("bizOrgCode").toString());
// for (Map<String, Object> m1:mapPatrolTask
// ) {
// Map<String, Object> map = new HashMap<>();
// map.put("planName", m1.get("planName").toString());
// map.put("bizOrgCode", m1.get("bizOrgCode").toString());
// map.put("bizOrgName", m1.get("bizOrgName").toString());
// mapList.add(map);
// }
// }
// }
}
}
if
(
mapList
.
size
()
>
0
)
{
if
(
mapList
.
size
()
>
0
)
{
try
{
try
{
...
@@ -2051,7 +2058,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -2051,7 +2058,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
log
.
info
(
String
.
format
(
"发送eqm转kafka消息失败:%s"
,
exp
.
getMessage
()));
log
.
info
(
String
.
format
(
"发送eqm转kafka消息失败:%s"
,
exp
.
getMessage
()));
}
}
}
}
if
(
map
Patrol
.
size
()
==
0
)
{
if
(
map
List
.
size
()
==
0
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"bizOrgCode"
,
""
);
map
.
put
(
"bizOrgCode"
,
""
);
mapList
.
add
(
map
);
mapList
.
add
(
map
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/SignServiceImpl.java
View file @
cc0cfd8c
...
@@ -192,10 +192,9 @@ public class SignServiceImpl extends BaseService<SignDto, Sign, SignMapper> impl
...
@@ -192,10 +192,9 @@ public class SignServiceImpl extends BaseService<SignDto, Sign, SignMapper> impl
log
.
info
(
"开始出勤统计========="
);
log
.
info
(
"开始出勤统计========="
);
List
<
Map
<
String
,
Object
>>
mapSign
=
this
.
baseMapper
.
querySignInfo
();
List
<
Map
<
String
,
Object
>>
mapSign
=
this
.
baseMapper
.
querySignInfo
();
List
<
Map
<
String
,
Object
>>
mapList
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
mapList
=
new
ArrayList
<>();
for
(
Map
<
String
,
Object
>
m
:
mapSign
for
(
Map
<
String
,
Object
>
m
:
mapSign
)
{
)
{
// 判断至少8人出勤
// 判断至少8人出勤
if
(
Integer
.
parseInt
(
m
.
get
(
"num"
).
toString
())
<
8
)
{
if
(
Integer
.
parseInt
(
m
.
get
(
"num"
).
toString
())
>=
8
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"bizOrgCode"
,
m
.
get
(
"bizOrgCode"
));
map
.
put
(
"bizOrgCode"
,
m
.
get
(
"bizOrgCode"
));
map
.
put
(
"bizOrgName"
,
m
.
get
(
"bizOrgName"
));
map
.
put
(
"bizOrgName"
,
m
.
get
(
"bizOrgName"
));
...
@@ -209,7 +208,7 @@ public class SignServiceImpl extends BaseService<SignDto, Sign, SignMapper> impl
...
@@ -209,7 +208,7 @@ public class SignServiceImpl extends BaseService<SignDto, Sign, SignMapper> impl
log
.
info
(
String
.
format
(
"发送eqm转kafka消息失败:%s"
,
exp
.
getMessage
()));
log
.
info
(
String
.
format
(
"发送eqm转kafka消息失败:%s"
,
exp
.
getMessage
()));
}
}
}
}
if
(
map
Sign
.
size
()
==
0
)
{
if
(
map
List
.
size
()
==
0
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"bizOrgCode"
,
""
);
map
.
put
(
"bizOrgCode"
,
""
);
mapList
.
add
(
map
);
mapList
.
add
(
map
);
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificIndexMapper.xml
View file @
cc0cfd8c
...
@@ -515,7 +515,7 @@
...
@@ -515,7 +515,7 @@
FROM
FROM
`p_plan_task` ppt
`p_plan_task` ppt
LEFT JOIN `p_plan` pp ON pp.id = ppt.plan_id
LEFT JOIN `p_plan` pp ON pp.id = ppt.plan_id
where ppt.check_date = DATE_FORMAT( now(), '%Y-%m-%d' ) and pp.biz_org_code is not null and ppt.plan_
name
is not null
where ppt.check_date = DATE_FORMAT( now(), '%Y-%m-%d' ) and pp.biz_org_code is not null and ppt.plan_
id
is not null
GROUP BY biz_org_code
GROUP BY biz_org_code
</select>
</select>
<select
id=
"getEquipIndexInIndex"
resultType=
"com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex"
>
<select
id=
"getEquipIndexInIndex"
resultType=
"com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex"
>
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
cc0cfd8c
...
@@ -6898,7 +6898,7 @@
...
@@ -6898,7 +6898,7 @@
SELECT
SELECT
`fs`.`id` AS `id`,
`fs`.`id` AS `id`,
`fs`.`name` AS `name`,
`fs`.`name` AS `name`,
( SELECT count( 1 ) FROM `wl_equipment_specific_alarm
_log` WHERE 0
<![CDATA[<>]]>
find_in_set( `fs`.`id`, `wl_equipment_specific_alarm_log`.`system_ids` )
) AS `value`
( SELECT count( 1 ) FROM `wl_equipment_specific_alarm
` WHERE 0
<![CDATA[<>]]>
find_in_set( `fs`.`id`, `wl_equipment_specific_alarm`.`system_ids` ) AND `wl_equipment_specific_alarm`.`status` = 1
) AS `value`
FROM
FROM
`f_fire_fighting_system` `fs`
`f_fire_fighting_system` `fs`
WHERE
WHERE
...
...
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