领料审核库存
This commit is contained in:
parent
f6e8dd0c5c
commit
29f45e6103
|
|
@ -163,6 +163,8 @@ public class LeaseOutDetails implements Serializable {
|
|||
@ApiModelProperty(value = "数量出库 -> 操作前库存量")
|
||||
private Integer num;
|
||||
|
||||
/** 操作前库存 */
|
||||
private int preStoreNum;
|
||||
/** 操作后库存 */
|
||||
private int postStoreNum;
|
||||
}
|
||||
|
|
@ -291,7 +291,7 @@ public class LogAspect
|
|||
bmStorageLog.setTaskId(String.valueOf(lod.getTaskId()));
|
||||
bmStorageLog.setTypeId(lod.getTypeId());
|
||||
bmStorageLog.setTypeName(lod.getMaCode());
|
||||
bmStorageLog.setPreStoreNum(Objects.isNull(lod.getNum()) ? 0 : lod.getNum().intValue());
|
||||
bmStorageLog.setPreStoreNum(lod.getPreStoreNum());
|
||||
bmStorageLog.setOutNum(Objects.isNull(lod.getInputNum()) ? 0 : lod.getInputNum().intValue());
|
||||
bmStorageLog.setPostStoreNum(lod.getPostStoreNum());
|
||||
bmStorageLogList.add(bmStorageLog);
|
||||
|
|
@ -303,7 +303,7 @@ public class LogAspect
|
|||
bmStorageLog.setTaskId(String.valueOf(lod.getTaskId()));
|
||||
bmStorageLog.setTypeId(lod.getTypeId());
|
||||
bmStorageLog.setTypeName(lod.getMaCode());
|
||||
bmStorageLog.setPreStoreNum(lod.getNum());
|
||||
bmStorageLog.setPreStoreNum(lod.getPreStoreNum());
|
||||
bmStorageLog.setOutNum(Objects.isNull(lod.getInputNum()) ? 0 : lod.getInputNum().intValue());
|
||||
bmStorageLog.setPostStoreNum(lod.getPostStoreNum());
|
||||
bmStorageLogList.add(bmStorageLog);
|
||||
|
|
|
|||
|
|
@ -149,6 +149,7 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService {
|
|||
try {
|
||||
// 1、判断是否重复提交
|
||||
res = checkRepeatSubmit(record);
|
||||
record.setPreStoreNum(getStorageNum(record));
|
||||
if (res > 0) {
|
||||
if ((record.getManageType() == 1 || record.getManageType() == 2) && record.getInputNum() != null) {
|
||||
record.setOutNum(record.getInputNum().doubleValue());
|
||||
|
|
|
|||
Loading…
Reference in New Issue