|
|
|
@ -799,7 +799,7 @@ public class DepositoryRecordController { |
|
|
|
} |
|
|
|
} |
|
|
|
if(set_version3.size()>1){//
|
|
|
|
return new RestResponse("", 666, new StatusInfo("提交失败,不能一起出库,当出库其它部门备品备件库中的物料时,各部门备品备件库中的物料都需单独走流程申请", "当出库其它部门备品备件库中的物料时,各部门备品备件库中的物料都需单独走流程申请")); |
|
|
|
return new RestResponse("", 666, new StatusInfo("提交失败,不能一起出库,当出库其它部门备品备件库中的物料时,各部门备品备件库中的物料都需单独走流程申请", "当出库其它部门备品备件库中的物料时,各部门备品备件库中的物料都需单独走流程申请")); |
|
|
|
}else{ |
|
|
|
if(set_version3.size()==1 && materialCount_version3>1){//有一个非当前用户所属部门的备品备件库中的物料,且当前要出库的物料数量>1
|
|
|
|
int count= 0;//list和set中不同的仓库id的个数
|
|
|
|
@ -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("提交失败,不能一起出库,出库其它部门备品备件库中的物料时需单独走流程申请", "当出库其它部门备品备件库中的物料时,各部门备品备件库中的物料都需单独走流程申请")); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|