From 3d22f1883c9caade4d92fc03a36a6bf2a97e6d66 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Thu, 21 Jul 2022 15:52:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bweb/controller/HighGasOilPriceController.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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) {