|
|
|
@ -815,6 +815,17 @@ public class DepositoryRecordController { |
|
|
|
if(count>0){ |
|
|
|
return new RestResponse("", 666, new StatusInfo("提交失败,不能一起出库,其它部门备品备件库中的物料需单独走流程申请", "其它部门备品备件库中的物料需单独走流程申请")); |
|
|
|
} |
|
|
|
HashSet<String> didSet_version3 = new HashSet<>(); |
|
|
|
for (Map.Entry<String, Object> entry : map.entrySet()) { |
|
|
|
//System.out.println("key = " + entry.getKey() + ", value = " + entry.getValue());
|
|
|
|
if(entry.getKey().contains("depositoryId")){ |
|
|
|
didSet_version3.add(entry.getValue().toString()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(didSet_version3.size()>1){//depositoryId超过1种
|
|
|
|
return new RestResponse("", 666, new StatusInfo("提交失败,不能一起出库,出库其它部门备品备件库中的物料时需单独走流程申请", "当出库其它部门备品备件库中的物料时,各部门备品备件库中的物料都需单独走流程申请")); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|