无关风月
2025-02-07 8a038cf6f0792cfe260a94e86d954b50f068e758
ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TChargingPileNotificationController.java
@@ -6,6 +6,11 @@
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.BasePage;
import com.ruoyi.common.core.web.page.PageInfo;
import com.ruoyi.common.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.log.enums.OperatorType;
import com.ruoyi.common.security.annotation.Logical;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
@@ -29,6 +34,7 @@
   
   
   
   @RequiresPermissions(value = {"/systemNotification"}, logical = Logical.OR)
   @ResponseBody
   @GetMapping("/chargingPileNotificationPageList")
   @ApiOperation(value = "获取系统通知列表数据", tags = {"管理后台-系统通知"})
@@ -38,13 +44,14 @@
   }
   
   
   @RequiresPermissions(value = {"/systemNotification/del"}, logical = Logical.OR)
   @ResponseBody
   @DeleteMapping("/delChargingPileNotification/{id}")
   @DeleteMapping("/delChargingPileNotification")
   @ApiOperation(value = "删除系统通知", tags = {"管理后台-系统通知"})
   public AjaxResult delChargingPileNotification(@PathVariable Long id){
   @Log(title = "【系统通知】删除系统通知", businessType = BusinessType.DELETE,operatorType = OperatorType.MANAGE)
   public AjaxResult delChargingPileNotification(@RequestParam("id") Long id){
      TChargingPileNotification chargingPileNotification = chargingPileNotificationService.getById(id);
      chargingPileNotification.setDelFlag(1);
      chargingPileNotificationService.updateById(chargingPileNotification);
      chargingPileNotificationService.removeById(chargingPileNotification);
      return AjaxResult.success();
   }