diff --git a/hai-bweb/src/main/java/com/bweb/controller/HighGasOilPriceController.java b/hai-bweb/src/main/java/com/bweb/controller/HighGasOilPriceController.java index 3b12b1be..984d86fe 100644 --- a/hai-bweb/src/main/java/com/bweb/controller/HighGasOilPriceController.java +++ b/hai-bweb/src/main/java/com/bweb/controller/HighGasOilPriceController.java @@ -44,6 +44,9 @@ public class HighGasOilPriceController { @Resource private HighGasOilPriceOfficialService gasOilPriceOfficialService; + @Resource + private HighGasOilGunNoService gasOilGunNoService; + @Resource private HighGasDiscountOilPriceService gasDiscountOilPriceService; @@ -129,6 +132,11 @@ public class HighGasOilPriceController { price.setStatus(0); gasOilPriceService.editGasOilPrice(price); + List oilGunNoList = gasOilGunNoService.getGunNoListByOilPrice(price.getId()); + for (HighGasOilGunNo gunNo : oilGunNoList) { + gunNo.setStatus(0); + gasOilGunNoService.editGunNo(gunNo); + } return ResponseMsgUtil.success("操作成功"); } catch (Exception e) {