style(ems): 修正能源类型权限标识

- 将权限标识中的冒号 ":" 替换为斜线 "/"
- 修改了多个方法的 @PreAuthorize 注解中的权限标识
IOT
zch 3 months ago
parent 8fbf4465c1
commit e71ef0b04a

@ -37,7 +37,7 @@ public class EmsBaseEnergyTypeController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('ems.base:baseEnergyType:list')") @PreAuthorize("@ss.hasPermi('ems/base:baseEnergyType:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(EmsBaseEnergyType emsBaseEnergyType) public TableDataInfo list(EmsBaseEnergyType emsBaseEnergyType)
{ {
@ -70,7 +70,7 @@ public class EmsBaseEnergyTypeController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('ems.base:baseEnergyType:export')") @PreAuthorize("@ss.hasPermi('ems/base:baseEnergyType:export')")
@Log(title = "能源类型信息", businessType = BusinessType.EXPORT) @Log(title = "能源类型信息", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, EmsBaseEnergyType emsBaseEnergyType) public void export(HttpServletResponse response, EmsBaseEnergyType emsBaseEnergyType)
@ -83,7 +83,7 @@ public class EmsBaseEnergyTypeController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('ems.base:baseEnergyType:query')") @PreAuthorize("@ss.hasPermi('ems/base:baseEnergyType:query')")
@GetMapping(value = "/{objId}") @GetMapping(value = "/{objId}")
public AjaxResult getInfo(@PathVariable("objId") Long objId) public AjaxResult getInfo(@PathVariable("objId") Long objId)
{ {
@ -93,7 +93,7 @@ public class EmsBaseEnergyTypeController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('ems.base:baseEnergyType:add')") @PreAuthorize("@ss.hasPermi('ems/base:baseEnergyType:add')")
@Log(title = "能源类型信息", businessType = BusinessType.INSERT) @Log(title = "能源类型信息", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody EmsBaseEnergyType emsBaseEnergyType) public AjaxResult add(@RequestBody EmsBaseEnergyType emsBaseEnergyType)
@ -104,7 +104,7 @@ public class EmsBaseEnergyTypeController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('ems.base:baseEnergyType:edit')") @PreAuthorize("@ss.hasPermi('ems/base:baseEnergyType:edit')")
@Log(title = "能源类型信息", businessType = BusinessType.UPDATE) @Log(title = "能源类型信息", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody EmsBaseEnergyType emsBaseEnergyType) public AjaxResult edit(@RequestBody EmsBaseEnergyType emsBaseEnergyType)
@ -115,7 +115,7 @@ public class EmsBaseEnergyTypeController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('ems.base:baseEnergyType:remove')") @PreAuthorize("@ss.hasPermi('ems/base:baseEnergyType:remove')")
@Log(title = "能源类型信息", businessType = BusinessType.DELETE) @Log(title = "能源类型信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{objIds}") @DeleteMapping("/{objIds}")
public AjaxResult remove(@PathVariable Long[] objIds) public AjaxResult remove(@PathVariable Long[] objIds)

Loading…
Cancel
Save