Commit e25715ae by ice

修改盘点审核

parent 53c272ac
......@@ -76,7 +76,7 @@ public class CheckController {
JSONObject jsonObject = getJson(invCountHeaderPage,invCountLine);
List<InvTransaction> invTransactionList = transactionServer.selectInvTrasactionByItemId(invCountLine.getInvId(), invCountLine.getSubinvId(), invCountLine.getLocatorId(), invCountLine.getItemId());
Integer sumItemIdQuantity = invTransactionList.stream().collect(Collectors.summingInt(InvTransaction::getTxQuantity));
if(sumItemIdQuantity != invCountLine.getAccountQuantity()){
if(sumItemIdQuantity.compareTo(invCountLine.getAccountQuantity())!=0){
return new Result(false,StatusCode.ERROR,"盘点单号为:"+invCountHeaderPage.getCountNumber()+"的账存数量与现有库存量不一致");
}
transactionController.invItemInOut(accessToken, jsonObject);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment