盘点流程测试
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();
|
||||
|
||||
Reference in New Issue
Block a user