库存日志

This commit is contained in:
sxu 2024-08-06 18:31:16 +08:00
parent 7602bce361
commit 2cc87a2807
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ public class BackApplyInfo {
/**
* 退料id
*/
private Integer id;
private Long id;
/**
* 退料人
*/

View File

@ -54,7 +54,7 @@ public class BackReceiveServiceImpl implements BackReceiveService {
typeIds.removeIf(item -> item == null);
for (TmTask typeId : typeIds) {
MachinePart machinePart = tmTaskMapper.getMachineParts(typeId);
machinePart.setParentId(record.getId());
machinePart.setParentId(record.getId().intValue());
int countMachineByPidAndTid = tmTaskMapper.getCountMachineByPidAndTid(machinePart);
Double machinePartNum = typeId.getPartNum() * Double.parseDouble(backApplyInfo.getPreNum());
count1 += machinePartNum;