wushunjie
杜函宇 5 months ago
parent 9d1c0c75cc
commit 82fdd34ddd

@ -109,7 +109,7 @@ public class BmsEnterpriseBasicInfoController extends BaseController {
* id * id
*/ */
@ApiOperation(value = "根据信用代码获取该企业id", response = BmsEnterpriseBasicInfo.class) @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") @GetMapping(value = "/getCreditCode")
public AjaxResult getCreditCode(@RequestParam String getCreditCode) { public AjaxResult getCreditCode(@RequestParam String getCreditCode) {
// 获取当前登录用户是否是企业端 // 获取当前登录用户是否是企业端
@ -132,7 +132,7 @@ public class BmsEnterpriseBasicInfoController extends BaseController {
* *
*/ */
@ApiOperation(value = "获取企业基础信息详细信息", response = BmsEnterpriseBasicInfo.class) @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}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) { public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(bmsEnterpriseBasicInfoService.getById(id)); return success(bmsEnterpriseBasicInfoService.getById(id));

@ -14,6 +14,7 @@ import com.ruoyi.jjh.ent.entity.request.JMemorandumRequest;
import com.ruoyi.jjh.ent.service.JMemorandumService; import com.ruoyi.jjh.ent.service.JMemorandumService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; 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.GetMapping;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -52,12 +53,13 @@ public class JMemorandumController extends BaseController {
* @param jMemorandumRequest * @param jMemorandumRequest
* @return * @return
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent,sightseer')")
@ApiOperation(value = "分页查询所有数据", response = JMemorandum.class) @ApiOperation(value = "分页查询所有数据", response = JMemorandum.class)
@GetMapping @GetMapping
public AjaxResult selectAll(Page<JMemorandum> page, JMemorandumRequest jMemorandumRequest) { public AjaxResult selectAll(Page<JMemorandum> page, JMemorandumRequest jMemorandumRequest) {
return success(jMemorandumService.page(page, jMemorandumRequest)); return success(jMemorandumService.page(page, jMemorandumRequest));
} }
@PreAuthorize("@ss.hasAnyRoles('admin')")
@ApiOperation(value = "定时更新法人库-法人基本信息(统一社会信用代码)") @ApiOperation(value = "定时更新法人库-法人基本信息(统一社会信用代码)")
@GetMapping("/getEnterpriseInfo") @GetMapping("/getEnterpriseInfo")
public AjaxResult selectAll2() { public AjaxResult selectAll2() {
@ -65,6 +67,7 @@ public class JMemorandumController extends BaseController {
return success(); return success();
} }
@PreAuthorize("@ss.hasAnyRoles('admin')")
@ApiOperation(value = "定时更新法人库-企业联络人员(统一社会信用代码)") @ApiOperation(value = "定时更新法人库-企业联络人员(统一社会信用代码)")
@GetMapping("/getChangeContacts") @GetMapping("/getChangeContacts")
public AjaxResult selectAll1() { public AjaxResult selectAll1() {
@ -79,6 +82,7 @@ public class JMemorandumController extends BaseController {
* @param jMemorandumRequest * @param jMemorandumRequest
* @return * @return
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,sightseer')")
@ApiOperation(value = "根据关联项目库ID查询该ID下的备忘录", response = JMemorandum.class) @ApiOperation(value = "根据关联项目库ID查询该ID下的备忘录", response = JMemorandum.class)
@GetMapping("/getIdToList") @GetMapping("/getIdToList")
public AjaxResult selectIdToAll(JMemorandumRequest jMemorandumRequest) { public AjaxResult selectIdToAll(JMemorandumRequest jMemorandumRequest) {
@ -109,6 +113,7 @@ public class JMemorandumController extends BaseController {
* @param jMemorandum * @param jMemorandum
* @return * @return
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@ApiOperation(value = "新增数据") @ApiOperation(value = "新增数据")
@PostMapping @PostMapping
public AjaxResult insert(@RequestBody JMemorandum jMemorandum) { 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 = "导出备忘录表") @ApiOperation(value = "导出备忘录表")
@Log(title = "导出备忘录表", businessType = BusinessType.EXPORT) @Log(title = "导出备忘录表", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
@ -133,6 +139,7 @@ public class JMemorandumController extends BaseController {
* @param jMemorandum * @param jMemorandum
* @return * @return
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@ApiOperation(value = "修改数据") @ApiOperation(value = "修改数据")
@PostMapping("/edit") @PostMapping("/edit")
public AjaxResult update(@RequestBody JMemorandum jMemorandum) { public AjaxResult update(@RequestBody JMemorandum jMemorandum) {
@ -145,6 +152,7 @@ public class JMemorandumController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@ApiOperation(value = "删除数据") @ApiOperation(value = "删除数据")
@PostMapping("/{id}") @PostMapping("/{id}")
public AjaxResult delete(@PathVariable Long id) { public AjaxResult delete(@PathVariable Long id) {

Loading…
Cancel
Save