diff --git a/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/controller/BmsEnterpriseBasicInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/controller/BmsEnterpriseBasicInfoController.java index 3799ce1..b8d2dc1 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/controller/BmsEnterpriseBasicInfoController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/controller/BmsEnterpriseBasicInfoController.java @@ -109,7 +109,7 @@ public class BmsEnterpriseBasicInfoController extends BaseController { * 根据信用代码获取该企业id */ @ApiOperation(value = "根据信用代码获取该企业id", response = BmsEnterpriseBasicInfo.class) - @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent')") + @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent,sightseer')") @GetMapping(value = "/getCreditCode") public AjaxResult getCreditCode(@RequestParam String getCreditCode) { // 获取当前登录用户是否是企业端 @@ -132,7 +132,7 @@ public class BmsEnterpriseBasicInfoController extends BaseController { * 获取企业基础信息详细信息 */ @ApiOperation(value = "获取企业基础信息详细信息", response = BmsEnterpriseBasicInfo.class) - @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent')") + @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent,sightseer')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { return success(bmsEnterpriseBasicInfoService.getById(id)); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/controller/JMemorandumController.java b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/controller/JMemorandumController.java index 5931ac8..c10578d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/controller/JMemorandumController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/controller/JMemorandumController.java @@ -14,6 +14,7 @@ import com.ruoyi.jjh.ent.entity.request.JMemorandumRequest; import com.ruoyi.jjh.ent.service.JMemorandumService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; +import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; @@ -52,12 +53,13 @@ public class JMemorandumController extends BaseController { * @param jMemorandumRequest 查询实体 * @return 所有数据 */ + @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent,sightseer')") @ApiOperation(value = "分页查询所有数据", response = JMemorandum.class) @GetMapping public AjaxResult selectAll(Page page, JMemorandumRequest jMemorandumRequest) { return success(jMemorandumService.page(page, jMemorandumRequest)); } - + @PreAuthorize("@ss.hasAnyRoles('admin')") @ApiOperation(value = "定时更新法人库-法人基本信息(统一社会信用代码)") @GetMapping("/getEnterpriseInfo") public AjaxResult selectAll2() { @@ -65,6 +67,7 @@ public class JMemorandumController extends BaseController { return success(); } + @PreAuthorize("@ss.hasAnyRoles('admin')") @ApiOperation(value = "定时更新法人库-企业联络人员(统一社会信用代码)") @GetMapping("/getChangeContacts") public AjaxResult selectAll1() { @@ -79,6 +82,7 @@ public class JMemorandumController extends BaseController { * @param jMemorandumRequest 查询实体 * @return 所有数据 */ + @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,sightseer')") @ApiOperation(value = "根据关联项目库ID查询该ID下的备忘录", response = JMemorandum.class) @GetMapping("/getIdToList") public AjaxResult selectIdToAll(JMemorandumRequest jMemorandumRequest) { @@ -109,6 +113,7 @@ public class JMemorandumController extends BaseController { * @param jMemorandum 实体对象 * @return 新增结果 */ + @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @ApiOperation(value = "新增数据") @PostMapping public AjaxResult insert(@RequestBody JMemorandum jMemorandum) { @@ -118,6 +123,7 @@ public class JMemorandumController extends BaseController { /** * 导出备忘录表 */ + @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,sightseer')") @ApiOperation(value = "导出备忘录表") @Log(title = "导出备忘录表", businessType = BusinessType.EXPORT) @PostMapping("/export") @@ -133,6 +139,7 @@ public class JMemorandumController extends BaseController { * @param jMemorandum 实体对象 * @return 修改结果 */ + @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @ApiOperation(value = "修改数据") @PostMapping("/edit") public AjaxResult update(@RequestBody JMemorandum jMemorandum) { @@ -145,6 +152,7 @@ public class JMemorandumController extends BaseController { * @param id 主键结合 * @return 删除结果 */ + @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @ApiOperation(value = "删除数据") @PostMapping("/{id}") public AjaxResult delete(@PathVariable Long id) {