新增申购单点击产品录入时显示系统繁忙

dev2.0
黄泽腾 2 years ago
parent e91a030744
commit ce3ceeeff7

@ -287,7 +287,7 @@ public class PurOrderReceiveController extends BaseController {
return ResultVOUtils.error(999, "库存不足!");
}
}
if (listInv != null && listInv.size() > 0) {
if (listInv != null && listInv.size() > 0 && updateReceiveDetailRequest.getCount() != null) {
if (listInv.get(0).getReCount() < updateReceiveDetailRequest.getCount()) {
return ResultVOUtils.error(999, "库存不足!");
}
@ -296,7 +296,7 @@ public class PurOrderReceiveController extends BaseController {
boolean falg = receivedetailService.updateReceiveDetail(updateReceiveDetailRequest);
if (falg) {
return ResultVOUtils.success();
return ResultVOUtils.success("成功");
} else {
return ResultVOUtils.error(555, "更新失败!");
}

Loading…
Cancel
Save