库存日志
This commit is contained in:
parent
7602bce361
commit
2cc87a2807
|
|
@ -15,7 +15,7 @@ public class BackApplyInfo {
|
||||||
/**
|
/**
|
||||||
* 退料id
|
* 退料id
|
||||||
*/
|
*/
|
||||||
private Integer id;
|
private Long id;
|
||||||
/**
|
/**
|
||||||
* 退料人
|
* 退料人
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ public class BackReceiveServiceImpl implements BackReceiveService {
|
||||||
typeIds.removeIf(item -> item == null);
|
typeIds.removeIf(item -> item == null);
|
||||||
for (TmTask typeId : typeIds) {
|
for (TmTask typeId : typeIds) {
|
||||||
MachinePart machinePart = tmTaskMapper.getMachineParts(typeId);
|
MachinePart machinePart = tmTaskMapper.getMachineParts(typeId);
|
||||||
machinePart.setParentId(record.getId());
|
machinePart.setParentId(record.getId().intValue());
|
||||||
int countMachineByPidAndTid = tmTaskMapper.getCountMachineByPidAndTid(machinePart);
|
int countMachineByPidAndTid = tmTaskMapper.getCountMachineByPidAndTid(machinePart);
|
||||||
Double machinePartNum = typeId.getPartNum() * Double.parseDouble(backApplyInfo.getPreNum());
|
Double machinePartNum = typeId.getPartNum() * Double.parseDouble(backApplyInfo.getPreNum());
|
||||||
count1 += machinePartNum;
|
count1 += machinePartNum;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue