|
|
|
@ -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, "更新失败!");
|
|
|
|
|
}
|
|
|
|
|