|
|
@ -1859,7 +1859,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
Map<String, Object> paramForUpdateSplitInventory = new HashMap<>(); |
|
|
Map<String, Object> paramForUpdateSplitInventory = new HashMap<>(); |
|
|
paramForUpdateSplitInventory.put("placeId", outRecordMin.getPlaceId()); |
|
|
paramForUpdateSplitInventory.put("placeId", outRecordMin.getPlaceId()); |
|
|
paramForUpdateSplitInventory.put("depositoryId", outRecordMin.getDepositoryId()); |
|
|
paramForUpdateSplitInventory.put("depositoryId", outRecordMin.getDepositoryId()); |
|
|
paramForUpdateSplitInventory.put("quantity", returnQuantity); |
|
|
paramForUpdateSplitInventory.put("quantity", String.valueOf(returnQuantity)); |
|
|
paramForUpdateSplitInventory.put("mid", inventoryById.getMid()); |
|
|
paramForUpdateSplitInventory.put("mid", inventoryById.getMid()); |
|
|
paramForUpdateSplitInventory.put("unit", unit); |
|
|
paramForUpdateSplitInventory.put("unit", unit); |
|
|
paramForUpdateSplitInventory.put("code", inventoryById.getCode()); |
|
|
paramForUpdateSplitInventory.put("code", inventoryById.getCode()); |
|
|
@ -1900,7 +1900,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
Map<String, Object> paramForUpdateSplitInventory = new HashMap<>(); |
|
|
Map<String, Object> paramForUpdateSplitInventory = new HashMap<>(); |
|
|
paramForUpdateSplitInventory.put("placeId", outRecordMin.getPlaceId()); |
|
|
paramForUpdateSplitInventory.put("placeId", outRecordMin.getPlaceId()); |
|
|
paramForUpdateSplitInventory.put("depositoryId", outRecordMin.getDepositoryId()); |
|
|
paramForUpdateSplitInventory.put("depositoryId", outRecordMin.getDepositoryId()); |
|
|
paramForUpdateSplitInventory.put("quantity", returnQuantity); |
|
|
paramForUpdateSplitInventory.put("quantity", String.valueOf(returnQuantity)); |
|
|
paramForUpdateSplitInventory.put("mid", inventoryById.getMid()); |
|
|
paramForUpdateSplitInventory.put("mid", inventoryById.getMid()); |
|
|
paramForUpdateSplitInventory.put("unit", unit); |
|
|
paramForUpdateSplitInventory.put("unit", unit); |
|
|
paramForUpdateSplitInventory.put("code", inventoryById.getCode()); |
|
|
paramForUpdateSplitInventory.put("code", inventoryById.getCode()); |
|
|
@ -1928,7 +1928,12 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
materialMapper.updateInventory(inventoryById); |
|
|
materialMapper.updateInventory(inventoryById); |
|
|
|
|
|
|
|
|
// 强行完成出库
|
|
|
// 强行完成出库
|
|
|
updateApplicationMinOutInfo(id, outRecordMin, outRecord, (double) (quantity / 100), userToken, placeById.getId(), userAgent); |
|
|
|
|
|
|
|
|
// 获取当前出库人员
|
|
|
|
|
|
UserByPort userByPort = LinkInterfaceUtil.FindUserById(outRecordMin.getCheckId(), userToken); |
|
|
|
|
|
|
|
|
|
|
|
outRecord.setPass(1); |
|
|
|
|
|
updateApplicationMinOutInfo(id, outRecordMin, outRecord, (double) (quantity / 100), userByPort, placeById.getId(), userAgent); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -1978,7 +1983,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
result = depositoryRecordMapper.updateApplicationOutRecordMin(outRecordMin); |
|
|
result = depositoryRecordMapper.updateApplicationOutRecordMin(outRecordMin); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} else { |
|
|
} |
|
|
|
|
|
else { |
|
|
// 如果未开始出库的
|
|
|
// 如果未开始出库的
|
|
|
|
|
|
|
|
|
// 设置新数量
|
|
|
// 设置新数量
|
|
|
@ -2004,7 +2010,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
outRecord.setPrice(outRecord.getPrice() - inventoryById.getPrice() * (outQuantity / 100) + inventoryById.getPrice() * quantity); |
|
|
outRecord.setPrice(outRecord.getPrice() - inventoryById.getPrice() * (outQuantity / 100) + inventoryById.getPrice() * quantity); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} else { |
|
|
} |
|
|
|
|
|
else { |
|
|
// 如果是拆单单位
|
|
|
// 如果是拆单单位
|
|
|
|
|
|
|
|
|
if (inventoryById.getPrice() != null) { |
|
|
if (inventoryById.getPrice() != null) { |
|
|
@ -2027,6 +2034,15 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
outRecord.setEditUser(userToken.getId().toString()); |
|
|
|
|
|
Map<String,Object> updateOutRecord = new HashMap<>(); |
|
|
|
|
|
updateOutRecord.put("id",outRecord.getId()); |
|
|
|
|
|
updateOutRecord.put("price",outRecord.getPrice()); |
|
|
|
|
|
updateOutRecord.put("editUser",outRecord.getEditUser()); |
|
|
|
|
|
updateOutRecord.put("pass",outRecord.getPass()); |
|
|
|
|
|
depositoryRecordMapper.updateApplicationOutRecord(updateOutRecord); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|