lyhzzz 1 hete
szülő
commit
d4e9ac5912

+ 2 - 0
src/main/java/com/fdkankan/manage_jp/service/ITmColdStorageService.java

@@ -29,4 +29,6 @@ public interface ITmColdStorageService extends IService<TmColdStorage> {
     List<String> getNumListColdLog(String sceneNum);
     List<String> getNumListColdLog(String sceneNum);
 
 
     HashMap<String, Boolean> getByNumList(List<String> numList);
     HashMap<String, Boolean> getByNumList(List<String> numList);
+
+    void delByNum(String num);
 }
 }

+ 1 - 1
src/main/java/com/fdkankan/manage_jp/service/impl/SceneProServiceImpl.java

@@ -325,7 +325,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
         }
         }
         tmContractorNumService.deleteByNum(num);
         tmContractorNumService.deleteByNum(num);
         tmContractorService.checkDel();
         tmContractorService.checkDel();
-
+        tmColdStorageService.delByNum(num);
     }
     }
 
 
 
 

+ 9 - 1
src/main/java/com/fdkankan/manage_jp/service/impl/TmColdStorageServiceImpl.java

@@ -129,7 +129,8 @@ public class TmColdStorageServiceImpl extends ServiceImpl<ITmColdStorageMapper,
         for (String num :param.getNumList()) {
         for (String num :param.getNumList()) {
             List<TmColdStorage> tmColdStorages = this.getByNum(num);
             List<TmColdStorage> tmColdStorages = this.getByNum(num);
             if(!tmColdStorages.isEmpty()){
             if(!tmColdStorages.isEmpty()){
-                throw new BusinessException(ResultCode.SCENE_COLD_STORAGE);
+                //throw new BusinessException(ResultCode.SCENE_COLD_STORAGE);
+                continue;
             }
             }
             ScenePlus scenePlus = scenePlusService.getByNum(num);
             ScenePlus scenePlus = scenePlusService.getByNum(num);
             ScenePro scenePro = sceneProService.getByNum(num);
             ScenePro scenePro = sceneProService.getByNum(num);
@@ -263,4 +264,11 @@ public class TmColdStorageServiceImpl extends ServiceImpl<ITmColdStorageMapper,
         }
         }
         return map;
         return map;
     }
     }
+
+    @Override
+    public void delByNum(String num) {
+        LambdaQueryWrapper<TmColdStorage> wrapper = new LambdaQueryWrapper<>();
+        wrapper.eq(TmColdStorage::getSceneNum,num);
+        this.remove(wrapper);
+    }
 }
 }