bug-15746 修复修改消防点位检查报错问题
parent
dd534649e5
commit
7f97d2b82e
|
@ -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);
|
||||
|
|
|
@ -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: 根据checkid,pointid,recordid 删除点位
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue