Browse Source

feat: [工作台] 权限控制

master
memorylkf 3 months ago
parent
commit
f4fd7102a0
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/HomeController.java
  2. +2
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/NoticeServiceImpl.java

+ 1
- 1
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/HomeController.java View File

@ -45,7 +45,7 @@ public class HomeController extends BaseController
* 查询试验列表 * 查询试验列表
*/ */
@GetMapping("/noticeList") @GetMapping("/noticeList")
@RequiresPermissions("business:study:list")
@RequiresPermissions("business:user:work")
public TableDataInfo noticeService() public TableDataInfo noticeService()
{ {
startPage(); startPage();

+ 2
- 1
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/NoticeServiceImpl.java View File

@ -88,10 +88,11 @@ public class NoticeServiceImpl extends ServiceImpl impleme
} }
} }
String title = "您参与的【"+study.getName()+"("+study.getSn()+")】【"+(study.getType().equals(StudyTypeEnum.sy.getValue())?studySubject.getDeptName():study.getDeptName())+"】有新试验方法,请进入试验的对应学科进行阅读"; String title = "您参与的【"+study.getName()+"("+study.getSn()+")】【"+(study.getType().equals(StudyTypeEnum.sy.getValue())?studySubject.getDeptName():study.getDeptName())+"】有新试验方法,请进入试验的对应学科进行阅读";
String url = study.getType().equals(StudyTypeEnum.sy.getValue())?("/study/enter/"+studyId+"?tab=syxx"):study.getType().equals(StudyTypeEnum.fsy.getValue())?("/nonTrial/enter/"+studyId+"?tab=syxx"):"";
//试验学科内部的人+非试验部门内的人+麻精药不用判断只需要判断有审核按钮 //试验学科内部的人+非试验部门内的人+麻精药不用判断只需要判断有审核按钮
List<Long> userIdList = userMapper.selectStudyMethodUserIdExcludeCreate(studyId, study.getType().equals(StudyTypeEnum.sy.getValue())?studySubjectId:null,study.getType().equals(StudyTypeEnum.fsy.getValue())?study.getDeptId():null,createUserId); List<Long> userIdList = userMapper.selectStudyMethodUserIdExcludeCreate(studyId, study.getType().equals(StudyTypeEnum.sy.getValue())?studySubjectId:null,study.getType().equals(StudyTypeEnum.fsy.getValue())?study.getDeptId():null,createUserId);
if(userIdList.size()>0){ if(userIdList.size()>0){
saveBatch(title,userIdList,null);
saveBatch(title,userIdList,url);
} }
} }
} }

Loading…
Cancel
Save