Browse Source

客户退货数量校验问题

master
chenfang 2 years ago
parent
commit
7ecf4e7246
  1. 4
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/customerreturnRequest/CustomerreturnRequestMainServiceImpl.java

4
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/customerreturnRequest/CustomerreturnRequestMainServiceImpl.java

@ -786,10 +786,10 @@ public class CustomerreturnRequestMainServiceImpl implements CustomerreturnReque
} }
private String isqty(BigDecimal qty1, BigDecimal qty2) { private String isqty(BigDecimal qty1, BigDecimal qty2) {
if (qty1.compareTo(qty2) < 0) { if (qty1.compareTo(qty2) != 1) {
return "ture"; return "ture";
} else { } else {
throw new UtilException("上架数量" + qty2 + "不能大于库存数量" + qty1); throw new UtilException("退货数量" + qty1 + "不能大于库存数量" + qty2);
} }
} }

Loading…
Cancel
Save