Commit 5ba7b5e3 authored by xixinzhao's avatar xixinzhao

防火监督联调

parent c983317e
...@@ -280,6 +280,6 @@ public class HiddenDangerServiceImpl implements IHiddenDangerService { ...@@ -280,6 +280,6 @@ public class HiddenDangerServiceImpl implements IHiddenDangerService {
result.put("checkUserId", checkInput.getUserId()); result.put("checkUserId", checkInput.getUserId());
result.put("checkUserName", checkInput.getUserName()); result.put("checkUserName", checkInput.getUserName());
result.put("planExecuteTime", checkInput.getCreateDate()); result.put("planExecuteTime", checkInput.getCreateDate());
result.put("checkPhotoUrl", shotList.stream().map(CheckShot::getPhotoData).toString()); result.put("checkPhotoUrl", shotList.stream().map(CheckShot::getPhotoData).collect(Collectors.joining(",")));
} }
} }
...@@ -1221,13 +1221,17 @@ public class PointServiceImpl implements IPointService { ...@@ -1221,13 +1221,17 @@ public class PointServiceImpl implements IPointService {
if (map.containsKey("picJson") && !ObjectUtils.isEmpty(map.get("picJson"))) { if (map.containsKey("picJson") && !ObjectUtils.isEmpty(map.get("picJson"))) {
map.put("remark", fileUrl + map.get("remark")); map.put("remark", fileUrl + map.get("remark"));
} }
List<DangerDto> dangerDtoList = new ArrayList<>();
if (map.containsKey("inputId") && !ObjectUtils.isEmpty(map.get("inputId"))) { if (map.containsKey("inputId") && !ObjectUtils.isEmpty(map.get("inputId"))) {
String inputId = map.get("inputId").toString(); String inputId = map.get("inputId").toString();
if (!"0".equals(inputId) && !ObjectUtils.isEmpty(collect)) { if (!"0".equals(inputId) && !ObjectUtils.isEmpty(collect)) {
List<DangerDto> dangerDtoList = collect.get(Long.parseLong(inputId)); dangerDtoList = collect.get(Long.parseLong(inputId));
map.put("dangerList", dangerDtoList); if (ObjectUtils.isEmpty(dangerDtoList)) {
dangerDtoList = new ArrayList<>();
}
} }
} }
map.put("dangerList", dangerDtoList);
} }
} }
return list; return list;
......
...@@ -55,7 +55,7 @@ public class PersonIdentifyAspect { ...@@ -55,7 +55,7 @@ public class PersonIdentifyAspect {
Map person = (Map) map.get("PERSON"); Map person = (Map) map.get("PERSON");
if (!ObjectUtils.isEmpty(person)) { if (!ObjectUtils.isEmpty(person)) {
personIdentity.setPersonSeq((String) person.get("sequenceNbr")); personIdentity.setPersonSeq((String) person.get("sequenceNbr"));
personIdentity.setPersonName((String) person.get("recUserName")); personIdentity.setPersonName((String) person.get("bizOrgName"));
} }
if (!ObjectUtils.isEmpty(other)) { if (!ObjectUtils.isEmpty(other)) {
personIdentity.setCompanyId((String) other.get("sequenceNbr")); personIdentity.setCompanyId((String) other.get("sequenceNbr"));
......
...@@ -1150,7 +1150,11 @@ ...@@ -1150,7 +1150,11 @@
pii.data_json dataJson, pii.data_json dataJson,
pii.remark remark, pii.remark remark,
pii.picture_json picJson, pii.picture_json picJson,
pci.user_id userId,
pci.user_name userName,
pii.id itemId, pii.id itemId,
group_concat(pcs.photo_data) photoData,
COALESCE (pci.input_value, '') selectValue,
CASE pii.`input_type` CASE pii.`input_type`
WHEN 0 THEN WHEN 0 THEN
'手动录入' '手动录入'
...@@ -1162,10 +1166,11 @@ ...@@ -1162,10 +1166,11 @@
LEFT JOIN p_route_point_item ppi ON ppi.route_point_id = prp.id LEFT JOIN p_route_point_item ppi ON ppi.route_point_id = prp.id
LEFT JOIN p_input_item pii ON ppi.input_item_id = pii.id LEFT JOIN p_input_item pii ON ppi.input_item_id = pii.id
LEFT JOIN p_check_input pci ON pci.route_point_item_id = ppi.id LEFT JOIN p_check_input pci ON pci.route_point_item_id = ppi.id
LEFT JOIN p_check_shot pcs ON pci.id = pcs.check_input_id
WHERE WHERE
prp.route_id = #{routeId} AND pii.is_delete = 0 prp.route_id = #{routeId} AND pii.is_delete = 0
-- AND pci.route_point_item_id is NULL AND pci.input_value is NULL OR pci.input_value <![CDATA[<>]]> 'pass'
ORDER BY pii.order_no GROUP BY ppi.id
</select> </select>
<select id="getPlanExecuteTeams" resultType="map"> <select id="getPlanExecuteTeams" resultType="map">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment