盘点流程测试
This commit is contained in:
@@ -120,16 +120,6 @@ public class CheckStockinServiceImpl implements ICheckStockinService
|
||||
if (!"3".equals(old.getStatus())){
|
||||
throw new RuntimeException("单据状态非正执行状态!");
|
||||
}
|
||||
//对比扫码数量 与实际入库数量是否一致
|
||||
CheckStockinDetail checkStockinParam = new CheckStockinDetail();
|
||||
checkStockinParam.setStockCheckGuid(checkStockin.getStockGuid());
|
||||
List<CheckStockinDetail> list = checkStockinDetailService.selectCheckStockinDetailList(checkStockinParam);
|
||||
if (CollUtil.isNotEmpty(list)){
|
||||
boolean b = list.stream().allMatch(x -> x.getAssignNum().equals(x.getScanNum()));
|
||||
if (!b){
|
||||
throw new RuntimeException("扫码数量与实际入库数量不一致!");
|
||||
}
|
||||
}
|
||||
insertCheckStockinHistory(checkStockin);
|
||||
}
|
||||
return AjaxResult.success();
|
||||
|
||||
@@ -195,6 +195,7 @@ public class MydoJobServiceImpl implements IMydoJobService {
|
||||
//修改货位
|
||||
BasCargoSpace basCargoSpace = new BasCargoSpace();
|
||||
basCargoSpace.setStatus("2");
|
||||
basCargoSpace.setTrayCode(job.getTrayCode());
|
||||
basCargoSpace.setCargoSpaceId(job.getCargoSpaceId());
|
||||
basCargoSpaceService.updateBasCargoSpace(basCargoSpace);
|
||||
//插入历史表
|
||||
|
||||
@@ -259,6 +259,7 @@ public class PdaServiceImp implements PdaService{
|
||||
checkCommitRecord.setQuantity(mydoJobDetail.getInQuantity());
|
||||
checkCommitRecord.setTrayCode(trayCodeMakeSure.getTrayCode());
|
||||
checkCommitRecord.setStockId(mydoJobDetail.getStockId());
|
||||
checkCommitRecord.setSpare1(mydoJobDetail.getInOrOutDId());
|
||||
checkCommitRecordService.insertCheckCommitRecord(checkCommitRecord);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user