|
|
|
@ -2013,8 +2013,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
result = depositoryRecordMapper.updateApplicationOutRecordMin(outRecordMin); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
else { |
|
|
|
} else { |
|
|
|
// 如果未开始出库的
|
|
|
|
|
|
|
|
// 设置新数量
|
|
|
|
@ -2043,8 +2042,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
outRecord.setPrice(outRecord.getPrice() - inventoryById.getPrice() * (outQuantity / 100) + inventoryById.getPrice() * quantity); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
else { |
|
|
|
} else { |
|
|
|
// 如果是拆单单位
|
|
|
|
|
|
|
|
if (inventoryById.getPrice() != null) { |
|
|
|
@ -2076,7 +2074,6 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
depositoryRecordMapper.updateApplicationOutRecord(updateOutRecord); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
@ -4083,8 +4080,16 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
String applyTime = (String) map.get("applyTime"); |
|
|
|
map.put("applicantTime", DateUtil.DateTimeByDayToTimeStamp(applyTime)); |
|
|
|
} |
|
|
|
List<RoleAndDepository> depositoryAndRole = roleService.findDepositoryAndRole(userByPort.getId()); |
|
|
|
List<Integer> depositoryIdList = new ArrayList<>(); |
|
|
|
if(map.size() <= 2){ |
|
|
|
map.put("applicantId", userByPort.getId()); |
|
|
|
} |
|
|
|
if (map.containsKey("depositoryId")) { |
|
|
|
depositoryIdList.add(ObjectFormatUtil.toInteger(map.get("depositoryId"))); |
|
|
|
} |
|
|
|
else { |
|
|
|
List<RoleAndDepository> depositoryAndRole = roleService.findDepositoryAndRole(userByPort.getId()); |
|
|
|
|
|
|
|
for (RoleAndDepository depository : depositoryAndRole |
|
|
|
) { |
|
|
|
depositoryIdList.add(depository.getDepositoryId()); |
|
|
|
@ -4092,8 +4097,10 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
if (depositoryIdList.size() == 0) { |
|
|
|
depositoryIdList = null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
map.put("depositoryIdList", depositoryIdList); |
|
|
|
map.put("applicantId", userByPort.getId()); |
|
|
|
|
|
|
|
List<ApplicationOutRecord> list = depositoryRecordMapper.findApplicationOutRecordPByUser(map); |
|
|
|
List<ApplicationOutRecordP> result = new ArrayList<>(); |
|
|
|
for (ApplicationOutRecord record : list) { |
|
|
|
@ -4120,8 +4127,16 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
String applyTime = (String) map.get("applyTime"); |
|
|
|
map.put("applicantTime", DateUtil.DateTimeByDayToTimeStamp(applyTime)); |
|
|
|
} |
|
|
|
List<RoleAndDepository> depositoryAndRole = roleService.findDepositoryAndRole(userByPort.getId()); |
|
|
|
List<Integer> depositoryIdList = new ArrayList<>(); |
|
|
|
if(map.size() <= 2){ |
|
|
|
map.put("applicantId", userByPort.getId()); |
|
|
|
} |
|
|
|
if (map.containsKey("depositoryId")) { |
|
|
|
depositoryIdList.add(ObjectFormatUtil.toInteger(map.get("depositoryId"))); |
|
|
|
} |
|
|
|
else { |
|
|
|
List<RoleAndDepository> depositoryAndRole = roleService.findDepositoryAndRole(userByPort.getId()); |
|
|
|
|
|
|
|
for (RoleAndDepository depository : depositoryAndRole |
|
|
|
) { |
|
|
|
depositoryIdList.add(depository.getDepositoryId()); |
|
|
|
@ -4129,8 +4144,9 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
if (depositoryIdList.size() == 0) { |
|
|
|
depositoryIdList = null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
map.put("depositoryIdList", depositoryIdList); |
|
|
|
map.put("applicantId", userByPort.getId()); |
|
|
|
return depositoryRecordMapper.findApplicationOutRecordPCountByUser(map); |
|
|
|
} |
|
|
|
|
|
|
|
|