Commit 94d8b68304c89c1394b65f97f44abf5df1a4c5bc
1 parent
0b442002
出库-提前过账 调整
Showing
1 changed file
with
4 additions
and
0 deletions
src/main/java/com/huaheng/pc/shipment/shipmentHeader/controller/ShipmentHeaderController.java
... | ... | @@ -261,6 +261,10 @@ public class ShipmentHeaderController extends BaseController { |
261 | 261 | if(!success) { |
262 | 262 | return AjaxResult.error("更新出库单状态失败"); |
263 | 263 | } |
264 | + List<ShipmentDetail> list = shipmentDetailService.list(new LambdaQueryWrapper<ShipmentDetail>() | |
265 | + .eq(ShipmentDetail::getShipmentId, shipmentHeader.getId())); | |
266 | + list.forEach(e -> e.setStatus(QuantityConstant.SHIPMENT_HEADER_COMPLETED)); | |
267 | + shipmentDetailService.updateBatchById(list); | |
264 | 268 | if (!"MOM".equals(shipmentHeader.getCreatedBy())) { |
265 | 269 | return AjaxResult.success("提前过账成功"); |
266 | 270 | } |
... | ... |