bug-15746 修复修改消防点位检查报错问题

626相关方人员数据对接
water_xu 2024-05-31 17:01:50 +08:00
parent dd534649e5
commit 7f97d2b82e
4 changed files with 54 additions and 52 deletions

View File

@ -91,7 +91,7 @@ public interface FireRecordMapper {
List<PageData> datalistPage(Page page);
PageData getCheckingByCid(String fireCheckId);
List<PageData> getCheckingByCid(String fireCheckId);
PageData getCheckingNoFinByCid(String fireCheckId);
void removeRecordPointByCidRidPids(PageData pd);

View File

@ -89,7 +89,7 @@ public interface FireRecordService {
* @Param: [java.lang.String] [fireCheckId]
* @Return: com.zcloud.entity.PageData
*/
PageData getCheckingByCid(String fireCheckId);
List<PageData> getCheckingByCid(String fireCheckId);
/**
* @Description: checkidpointidrecordid

View File

@ -1,5 +1,6 @@
package com.zcloud.service.firemanager.impl;
import cn.hutool.core.collection.CollUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
@ -574,9 +575,10 @@ public class FireCheckListServiceImpl implements FireCheckListService {
* 2.
* 3.
* */
PageData checkingData = fireRecordService.getCheckingByCid(FIRE_CHECK_ID);
List<PageData> checkingByCid = fireRecordService.getCheckingByCid(FIRE_CHECK_ID);
// 无检查记录 什么也不干
if (checkingData != null) {
if (CollUtil.isNotEmpty(checkingByCid)) {
checkingByCid.stream().forEach(checkingData -> {
String FIRE_RECORD_ID = checkingData.getString("FIRE_RECORD_ID");
// 有删除的点位那么 删除记录中的点位
@ -626,6 +628,7 @@ public class FireCheckListServiceImpl implements FireCheckListService {
checkedPageData.put("list",preChangesPid);
fireRecordService.updCheckedByRidPid(checkedPageData);
}
});
}
}

View File

@ -1,7 +1,6 @@
package com.zcloud.service.firemanager.impl;
import java.util.*;
import java.util.stream.Collectors;
import javax.annotation.Resource;
@ -730,7 +729,7 @@ public class FireRecordServiceImpl implements FireRecordService {
}
@Override
public PageData getCheckingByCid(String fireCheckId) {
public List<PageData> getCheckingByCid(String fireCheckId) {
return fireRecordMapper.getCheckingByCid(fireCheckId);
}