Browse Source

no message

master
xia 3 years ago
parent
commit
3fa94adf61
  1. 4
      archives/src/main/java/com/storeroom/modules/archives/controller/CaseController.java

4
archives/src/main/java/com/storeroom/modules/archives/controller/CaseController.java

@ -166,12 +166,14 @@ public class CaseController {
//盒已入库/已装盒 不可删 //盒已入库/已装盒 不可删
for(String id : caseId){ for(String id : caseId){
ArchivesCase archivesCase = caseService.findById(id); ArchivesCase archivesCase = caseService.findById(id);
if(null != archivesCase && StringUtils.isEmpty(archivesCase.getFolderLocation()) && archivesCase.getDepositNum() == 0){
if(null != archivesCase){
if(StringUtils.isEmpty(archivesCase.getFolderLocation()) && archivesCase.getDepositNum() == 0){
doDel.add(archivesCase); doDel.add(archivesCase);
}else{ }else{
noDel.add(archivesCase); noDel.add(archivesCase);
} }
} }
}
if(doDel.size()!=0){ if(doDel.size()!=0){
caseService.batchDelCase(doDel); caseService.batchDelCase(doDel);
} }

Loading…
Cancel
Save