|
|
|
@ -853,7 +853,11 @@ public class DepositoryRecordController { |
|
|
|
// 获取对应主订单
|
|
|
|
List<ApplicationOutRecordP> list = new ArrayList<>(); |
|
|
|
Integer countBy = 0; |
|
|
|
if (Integer.compare(userByPort.getMaindeparment(), 361) == 0) { |
|
|
|
Integer role = userByPort.getIsadmin(); |
|
|
|
if (role == null) { |
|
|
|
role = 1; |
|
|
|
} |
|
|
|
if ((Integer.compare(userByPort.getMaindeparment(), 361) == 0) || role == 4) { |
|
|
|
list = depositoryRecordService.findApplicationOutRecordPByCondition(map, userByPort); |
|
|
|
countBy = depositoryRecordService.findApplicationOutRecordPCountByCondition(map); |
|
|
|
} else { |
|
|
|
@ -1592,8 +1596,7 @@ public class DepositoryRecordController { |
|
|
|
typeList.add((String) inRecord.get("inType")); |
|
|
|
depositoryIdList.add(ObjectFormatUtil.toInteger(inRecord.get("depositoryId"))); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
} else { |
|
|
|
success += depositoryRecordService.applicationInPlace(inRecord, false); |
|
|
|
recordIds.add(ObjectFormatUtil.toInteger(inRecord.get("applicationInId"))); |
|
|
|
mtIdList.add(ObjectFormatUtil.toLong(inRecord.get("mtId"))); |
|
|
|
@ -1708,8 +1711,7 @@ public class DepositoryRecordController { |
|
|
|
} |
|
|
|
} |
|
|
|
}).start(); |
|
|
|
} |
|
|
|
else if ("out".equals(type)) { |
|
|
|
} else if ("out".equals(type)) { |
|
|
|
Map<String, Object> mainRecord = new HashMap<>(); |
|
|
|
Integer sumQuantity = 0; |
|
|
|
for (Object o : quantitys) { |
|
|
|
|