style(os-ems): 修正权限控制注解

- 将 @PreAuthorize 注解中的权限字符串从 'ems.base:baseEnergyType:*' 修改为 'ems/base:baseEnergyType:*'
- 统一权限字符串的格式,使用斜杠 '/' 替代点号 '.' 分隔权限级别
master
zch 15 hours ago
parent 720f92f67c
commit 15a4e082bd

@ -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