|  |  |  | 
|---|
|  |  |  | 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.*; | 
|---|
|  |  |  | 
|---|
|  |  |  | @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); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|