提交代码

dev-discount
胡锐 2 years ago
parent ab26b50f31
commit 3d22f1883c
  1. 8
      hai-bweb/src/main/java/com/bweb/controller/HighGasOilPriceController.java

@ -44,6 +44,9 @@ public class HighGasOilPriceController {
@Resource @Resource
private HighGasOilPriceOfficialService gasOilPriceOfficialService; private HighGasOilPriceOfficialService gasOilPriceOfficialService;
@Resource
private HighGasOilGunNoService gasOilGunNoService;
@Resource @Resource
private HighGasDiscountOilPriceService gasDiscountOilPriceService; private HighGasDiscountOilPriceService gasDiscountOilPriceService;
@ -129,6 +132,11 @@ public class HighGasOilPriceController {
price.setStatus(0); price.setStatus(0);
gasOilPriceService.editGasOilPrice(price); gasOilPriceService.editGasOilPrice(price);
List<HighGasOilGunNo> oilGunNoList = gasOilGunNoService.getGunNoListByOilPrice(price.getId());
for (HighGasOilGunNo gunNo : oilGunNoList) {
gunNo.setStatus(0);
gasOilGunNoService.editGunNo(gunNo);
}
return ResponseMsgUtil.success("操作成功"); return ResponseMsgUtil.success("操作成功");
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save