|
|
@ -1702,6 +1702,9 @@ public class DepositoryRecordController { |
|
|
departmentHeadId = new StringBuilder("78").append(","); |
|
|
departmentHeadId = new StringBuilder("78").append(","); |
|
|
departMentHeadQyWxName = new StringBuilder("PangFuZhen").append(","); |
|
|
departMentHeadQyWxName = new StringBuilder("PangFuZhen").append(","); |
|
|
map.put("departmenthead", departmentHeadId.toString()); |
|
|
map.put("departmenthead", departmentHeadId.toString()); |
|
|
|
|
|
map.put("adminorgId", userToken.getMaindeparment()); |
|
|
|
|
|
map.put("createUid", userToken.getId()); |
|
|
|
|
|
map.put("flagForAgency", 2); |
|
|
// 待出库物料id
|
|
|
// 待出库物料id
|
|
|
Integer mid = ObjectFormatUtil.toInteger(map.get("iid")); |
|
|
Integer mid = ObjectFormatUtil.toInteger(map.get("iid")); |
|
|
// 获取库存信息
|
|
|
// 获取库存信息
|
|
|
@ -1966,7 +1969,8 @@ public class DepositoryRecordController { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} else if ("out".equals(type)) { |
|
|
} |
|
|
|
|
|
else if ("out".equals(type)) { |
|
|
Map<String, Object> mainRecord = new HashMap<>(); |
|
|
Map<String, Object> mainRecord = new HashMap<>(); |
|
|
Integer sumQuantity = 0; |
|
|
Integer sumQuantity = 0; |
|
|
for (Object o : quantitys) { |
|
|
for (Object o : quantitys) { |
|
|
@ -1991,6 +1995,9 @@ public class DepositoryRecordController { |
|
|
mainRecord.put("applyRemark", ""); |
|
|
mainRecord.put("applyRemark", ""); |
|
|
mainRecord.put("quantity", sumQuantity.toString()); |
|
|
mainRecord.put("quantity", sumQuantity.toString()); |
|
|
mainRecord.put("departmenthead", departmentHeadId.toString()); |
|
|
mainRecord.put("departmenthead", departmentHeadId.toString()); |
|
|
|
|
|
mainRecord.put("adminorgId", userToken.getMaindeparment()); |
|
|
|
|
|
mainRecord.put("createUid", userToken.getId()); |
|
|
|
|
|
mainRecord.put("flagForAgency", 2); |
|
|
// 插入主表
|
|
|
// 插入主表
|
|
|
depositoryRecordService.insertApplicationOutRecord(mainRecord, userToken, userkey, usertoken); |
|
|
depositoryRecordService.insertApplicationOutRecord(mainRecord, userToken, userkey, usertoken); |
|
|
id = ObjectFormatUtil.toInteger(mainRecord.get("id")); |
|
|
id = ObjectFormatUtil.toInteger(mainRecord.get("id")); |
|
|
|