增加游客权限

wushunjie
杜函宇 5 months ago
parent fa26e862d8
commit 9d1c0c75cc

@ -46,7 +46,7 @@ public class BmsEnterpriseBasicInfoController extends BaseController {
/** /**
* *
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,sightseer')")
@ApiOperation(value = "查询企业基础信息列表", response = BmsEnterpriseBasicInfo.class) @ApiOperation(value = "查询企业基础信息列表", response = BmsEnterpriseBasicInfo.class)
@GetMapping("/list") @GetMapping("/list")
public AjaxResult list(Page<BmsEnterpriseBasicInfo> page, BmsEnterpriseBasicInfo bmsEnterpriseBasicInfo) { public AjaxResult list(Page<BmsEnterpriseBasicInfo> page, BmsEnterpriseBasicInfo bmsEnterpriseBasicInfo) {
@ -66,7 +66,7 @@ public class BmsEnterpriseBasicInfoController extends BaseController {
/** /**
* *
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @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")

@ -64,8 +64,8 @@ public class SingleLoginServiceImpl implements SingleLoginService {
roles[0] = 101L; roles[0] = 101L;
} else if ("02".equals(userType)) { } else if ("02".equals(userType)) {
//在这里可以判断具体要给什么权限 要给dept部门id //在这里可以判断具体要给什么权限 要给dept部门id
roles[0] = 102L; roles[0] = 103L;
user.setDeptId(100L); user.setDeptId(null);
user.setZwuser(userName); user.setZwuser(userName);
} }
user.setRoleIds(roles); user.setRoleIds(roles);

@ -38,7 +38,7 @@ public class JDataScreenController extends BaseController {
* *
* @return * @return
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,sightseer')")
@ApiOperation(value = "荣誉情况") @ApiOperation(value = "荣誉情况")
@GetMapping("/honor") @GetMapping("/honor")
public AjaxResult getHonor(HonorResponse a) { public AjaxResult getHonor(HonorResponse a) {
@ -50,7 +50,7 @@ public class JDataScreenController extends BaseController {
* *
* @return * @return
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,sightseer')")
@ApiOperation(value = "项目追踪情况") @ApiOperation(value = "项目追踪情况")
@GetMapping("/projectTracking") @GetMapping("/projectTracking")
public AjaxResult getProjectTracking() { public AjaxResult getProjectTracking() {
@ -62,7 +62,7 @@ public class JDataScreenController extends BaseController {
* *
* @return * @return
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,sightseer')")
@ApiOperation(value = "服务业发展总览") @ApiOperation(value = "服务业发展总览")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "type", value = "年份1 季度2", required = true), @ApiImplicitParam(name = "type", value = "年份1 季度2", required = true),
@ -79,7 +79,7 @@ public class JDataScreenController extends BaseController {
* *
* @return * @return
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,sightseer')")
@ApiOperation(value = "行业纵深情况") @ApiOperation(value = "行业纵深情况")
@GetMapping("/getIndustryDepth") @GetMapping("/getIndustryDepth")
public AjaxResult getIndustryDepth() { public AjaxResult getIndustryDepth() {
@ -91,7 +91,7 @@ public class JDataScreenController extends BaseController {
* *
* @return * @return
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,sightseer')")
@ApiOperation(value = "所有分行业汇总") @ApiOperation(value = "所有分行业汇总")
@GetMapping("/getAllIndustry") @GetMapping("/getAllIndustry")
public AjaxResult getAllIndustry() { public AjaxResult getAllIndustry() {

@ -74,7 +74,7 @@ public class JProjectController extends BaseController {
* @param jProject * @param jProject
* @return * @return
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent,sightseer')")
@ApiOperation(value = "分页查询项目", response = JProject.class) @ApiOperation(value = "分页查询项目", response = JProject.class)
@GetMapping @GetMapping
public AjaxResult selectPage(Page<JProject> page, JProject jProject) { public AjaxResult selectPage(Page<JProject> page, JProject jProject) {
@ -98,7 +98,7 @@ public class JProjectController extends BaseController {
/** /**
* *
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent,sightseer')")
@ApiOperation(value = "导出项目") @ApiOperation(value = "导出项目")
@PostMapping("/exportProject") @PostMapping("/exportProject")
public void exportProject(HttpServletResponse response, JProject jProject) { public void exportProject(HttpServletResponse response, JProject jProject) {

@ -37,7 +37,7 @@ public class JServicesListController extends BaseController {
* @param js * @param js
* @return * @return
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,sightseer')")
@ApiOperation(value = "分页查询服务业企业名单", response = JServicesList.class) @ApiOperation(value = "分页查询服务业企业名单", response = JServicesList.class)
@GetMapping @GetMapping
public AjaxResult selectAll(Page<JServicesList> page, JServicesListRequest js) { public AjaxResult selectAll(Page<JServicesList> page, JServicesListRequest js) {
@ -48,7 +48,7 @@ public class JServicesListController extends BaseController {
/** /**
* *
*/ */
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')") @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,sightseer')")
@ApiOperation(value = "首页服务业数据统计", response = JServicesListCountResponse.class) @ApiOperation(value = "首页服务业数据统计", response = JServicesListCountResponse.class)
@GetMapping("/selectCount") @GetMapping("/selectCount")
public AjaxResult selectAllServicesCount() { public AjaxResult selectAllServicesCount() {

@ -73,7 +73,7 @@ public class JChiefWorkImpl implements JChiefWorkService {
List<JMemorandum> memorandum = jChiefWorkMapper.memorandum(); List<JMemorandum> memorandum = jChiefWorkMapper.memorandum();
memorandum.forEach(x->{ memorandum.forEach(x->{
if(x.getContent().length()>10){ if(x.getContent().length()>10){
x.setContent(x.getContent().substring(0, 10)+"***"); x.setContent(x.getContent().substring(0, 10)+"...");
} }
}); });
return memorandum; return memorandum;

Loading…
Cancel
Save