|
|
|
|
@ -398,7 +398,8 @@ public class StockService {
|
|
|
|
|
//Assert.isTrue( StockStatus.PENDING.getStatus().equals(oldStatus) || StockStatus.ERROR.getStatus().equals(oldStatus), "无需核对");
|
|
|
|
|
|
|
|
|
|
log.info("check stock correct, street_id:{},direction:{},side:{},row:{},column:{}", stockCheck.getStreetId(),stockCheck.getDirection(),stockCheck.getSide(), stockCheck.getRow(), stockCheck.getColumn());
|
|
|
|
|
if(stockCheck.getCountTop()+stock.getCount() == stock.getWmsCount() && stockCheck.getCategory().equals( stock.getWmsCategory())){
|
|
|
|
|
int count =(stock.getCount() != null) ? stock.getCount() : 0;
|
|
|
|
|
if(stockCheck.getCountTop()+ count == stock.getWmsCount() && stock.getWmsCategory().equals(stockCheck.getCategory())){
|
|
|
|
|
|
|
|
|
|
stock.setStatus(StockStatus.MANUAL.getStatus());
|
|
|
|
|
}else {
|
|
|
|
|
|