liusheng
2024-03-19 ded03f0315e02c13f17b8bf7777c89a5cc73130e
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/BaseTravelcityController.java
@@ -12,6 +12,7 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.weaver.loadtime.Aj;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
@@ -77,11 +78,13 @@
    @ApiOperation("新增差旅城市和补贴标准")
    @PreAuthorize("@ss.hasPermi('project:travelcity:add')")
    @Log(title = "差旅城市和补贴标准", businessType = BusinessType.INSERT)
    @PostMapping
    @PostMapping("/add")
    @RepeatSubmit
    public AjaxResult add(@RequestBody BaseTravelcity baseTravelcity) {
        log.info("新增差旅城市和补贴标准{}:", baseTravelcity);
        return toAjax(baseTravelcityService.save(baseTravelcity));
        boolean save = baseTravelcityService.save(baseTravelcity);
        log.info("新增差旅城市和补贴标准baseTravelcity的id{}:", baseTravelcity.getId());
        return AjaxResult.success(baseTravelcity);
    }
    /**