修复入职流程bug以及低权限无法查看公告问题

This commit is contained in:
2025-04-02 17:38:19 +08:00
parent d43f063f6f
commit f77cf3655c
2 changed files with 0 additions and 19 deletions

View File

@@ -33,7 +33,6 @@ public class SysNoticeController extends BaseController {
* @param notice * @param notice
* @return * @return
*/ */
@SaCheckPermission("system:notice:list")
@GetMapping("/listLimit") @GetMapping("/listLimit")
public List<SysNotice> selectNoticelLimit(SysNotice notice){ public List<SysNotice> selectNoticelLimit(SysNotice notice){
return noticeService.selectNoticelLimit(notice); return noticeService.selectNoticelLimit(notice);
@@ -42,7 +41,6 @@ public class SysNoticeController extends BaseController {
/** /**
* 获取通知公告列表 * 获取通知公告列表
*/ */
@SaCheckPermission("system:notice:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo<SysNotice> list(SysNotice notice, PageQuery pageQuery) { public TableDataInfo<SysNotice> list(SysNotice notice, PageQuery pageQuery) {
return noticeService.selectPageNoticeList(notice, pageQuery); return noticeService.selectPageNoticeList(notice, pageQuery);
@@ -53,7 +51,6 @@ public class SysNoticeController extends BaseController {
* *
* @param noticeId 公告ID * @param noticeId 公告ID
*/ */
@SaCheckPermission("system:notice:query")
@GetMapping(value = "/{noticeId}") @GetMapping(value = "/{noticeId}")
public R<SysNotice> getInfo(@PathVariable Long noticeId) { public R<SysNotice> getInfo(@PathVariable Long noticeId) {
return R.ok(noticeService.selectNoticeById(noticeId)); return R.ok(noticeService.selectNoticeById(noticeId));

View File

@@ -46,7 +46,6 @@ public class WfProcessController extends BaseController {
* @param pageQuery 分页参数 * @param pageQuery 分页参数
*/ */
@GetMapping(value = "/list") @GetMapping(value = "/list")
@SaCheckPermission("workflow:process:startList")
public TableDataInfo<WfDefinitionVo> startProcessList(ProcessQuery processQuery, PageQuery pageQuery) { public TableDataInfo<WfDefinitionVo> startProcessList(ProcessQuery processQuery, PageQuery pageQuery) {
return processService.selectPageStartProcessList(processQuery, pageQuery); return processService.selectPageStartProcessList(processQuery, pageQuery);
} }
@@ -54,7 +53,6 @@ public class WfProcessController extends BaseController {
/** /**
* 我拥有的流程 * 我拥有的流程
*/ */
@SaCheckPermission("workflow:process:ownList")
@GetMapping(value = "/ownList") @GetMapping(value = "/ownList")
public TableDataInfo<WfTaskVo> ownProcessList(ProcessQuery processQuery, PageQuery pageQuery) { public TableDataInfo<WfTaskVo> ownProcessList(ProcessQuery processQuery, PageQuery pageQuery) {
return processService.selectPageOwnProcessList(processQuery, pageQuery); return processService.selectPageOwnProcessList(processQuery, pageQuery);
@@ -71,7 +69,6 @@ public class WfProcessController extends BaseController {
/** /**
* 获取待办列表 * 获取待办列表
*/ */
@SaCheckPermission("workflow:process:todoList")
@GetMapping(value = "/todoList") @GetMapping(value = "/todoList")
public TableDataInfo<WfTaskVo> todoProcessList(ProcessQuery processQuery, PageQuery pageQuery) { public TableDataInfo<WfTaskVo> todoProcessList(ProcessQuery processQuery, PageQuery pageQuery) {
return processService.selectPageTodoProcessList(processQuery, pageQuery); return processService.selectPageTodoProcessList(processQuery, pageQuery);
@@ -83,7 +80,6 @@ public class WfProcessController extends BaseController {
* @param processQuery 流程业务对象 * @param processQuery 流程业务对象
* @param pageQuery 分页参数 * @param pageQuery 分页参数
*/ */
@SaCheckPermission("workflow:process:claimList")
@GetMapping(value = "/claimList") @GetMapping(value = "/claimList")
public TableDataInfo<WfTaskVo> claimProcessList(ProcessQuery processQuery, PageQuery pageQuery) { public TableDataInfo<WfTaskVo> claimProcessList(ProcessQuery processQuery, PageQuery pageQuery) {
return processService.selectPageClaimProcessList(processQuery, pageQuery); return processService.selectPageClaimProcessList(processQuery, pageQuery);
@@ -94,7 +90,6 @@ public class WfProcessController extends BaseController {
* *
* @param pageQuery 分页参数 * @param pageQuery 分页参数
*/ */
@SaCheckPermission("workflow:process:finishedList")
@GetMapping(value = "/finishedList") @GetMapping(value = "/finishedList")
public TableDataInfo<WfTaskVo> finishedProcessList(ProcessQuery processQuery, PageQuery pageQuery) { public TableDataInfo<WfTaskVo> finishedProcessList(ProcessQuery processQuery, PageQuery pageQuery) {
return processService.selectPageFinishedProcessList(processQuery, pageQuery); return processService.selectPageFinishedProcessList(processQuery, pageQuery);
@@ -106,7 +101,6 @@ public class WfProcessController extends BaseController {
* @param copyBo 流程抄送对象 * @param copyBo 流程抄送对象
* @param pageQuery 分页参数 * @param pageQuery 分页参数
*/ */
@SaCheckPermission("workflow:process:copyList")
@GetMapping(value = "/copyList") @GetMapping(value = "/copyList")
public TableDataInfo<WfCopyVo> copyProcessList(WfCopyBo copyBo, PageQuery pageQuery) { public TableDataInfo<WfCopyVo> copyProcessList(WfCopyBo copyBo, PageQuery pageQuery) {
copyBo.setUserId(getUserId()); copyBo.setUserId(getUserId());
@@ -116,7 +110,6 @@ public class WfProcessController extends BaseController {
/** /**
* 导出可发起流程列表 * 导出可发起流程列表
*/ */
@SaCheckPermission("workflow:process:startExport")
@Log(title = "可发起流程", businessType = BusinessType.EXPORT) @Log(title = "可发起流程", businessType = BusinessType.EXPORT)
@PostMapping("/startExport") @PostMapping("/startExport")
public void startExport(@Validated ProcessQuery processQuery, HttpServletResponse response) { public void startExport(@Validated ProcessQuery processQuery, HttpServletResponse response) {
@@ -127,7 +120,6 @@ public class WfProcessController extends BaseController {
/** /**
* 导出我拥有流程列表 * 导出我拥有流程列表
*/ */
@SaCheckPermission("workflow:process:ownExport")
@Log(title = "我拥有流程", businessType = BusinessType.EXPORT) @Log(title = "我拥有流程", businessType = BusinessType.EXPORT)
@PostMapping("/ownExport") @PostMapping("/ownExport")
public void ownExport(@Validated ProcessQuery processQuery, HttpServletResponse response) { public void ownExport(@Validated ProcessQuery processQuery, HttpServletResponse response) {
@@ -142,7 +134,6 @@ public class WfProcessController extends BaseController {
/** /**
* 导出待办流程列表 * 导出待办流程列表
*/ */
@SaCheckPermission("workflow:process:todoExport")
@Log(title = "待办流程", businessType = BusinessType.EXPORT) @Log(title = "待办流程", businessType = BusinessType.EXPORT)
@PostMapping("/todoExport") @PostMapping("/todoExport")
public void todoExport(@Validated ProcessQuery processQuery, HttpServletResponse response) { public void todoExport(@Validated ProcessQuery processQuery, HttpServletResponse response) {
@@ -154,7 +145,6 @@ public class WfProcessController extends BaseController {
/** /**
* 导出待签流程列表 * 导出待签流程列表
*/ */
@SaCheckPermission("workflow:process:claimExport")
@Log(title = "待签流程", businessType = BusinessType.EXPORT) @Log(title = "待签流程", businessType = BusinessType.EXPORT)
@PostMapping("/claimExport") @PostMapping("/claimExport")
public void claimExport(@Validated ProcessQuery processQuery, HttpServletResponse response) { public void claimExport(@Validated ProcessQuery processQuery, HttpServletResponse response) {
@@ -166,7 +156,6 @@ public class WfProcessController extends BaseController {
/** /**
* 导出已办流程列表 * 导出已办流程列表
*/ */
@SaCheckPermission("workflow:process:finishedExport")
@Log(title = "已办流程", businessType = BusinessType.EXPORT) @Log(title = "已办流程", businessType = BusinessType.EXPORT)
@PostMapping("/finishedExport") @PostMapping("/finishedExport")
public void finishedExport(@Validated ProcessQuery processQuery, HttpServletResponse response) { public void finishedExport(@Validated ProcessQuery processQuery, HttpServletResponse response) {
@@ -178,7 +167,6 @@ public class WfProcessController extends BaseController {
/** /**
* 导出抄送流程列表 * 导出抄送流程列表
*/ */
@SaCheckPermission("workflow:process:copyExport")
@Log(title = "抄送流程", businessType = BusinessType.EXPORT) @Log(title = "抄送流程", businessType = BusinessType.EXPORT)
@PostMapping("/copyExport") @PostMapping("/copyExport")
public void copyExport(WfCopyBo copyBo, HttpServletResponse response) { public void copyExport(WfCopyBo copyBo, HttpServletResponse response) {
@@ -194,7 +182,6 @@ public class WfProcessController extends BaseController {
* @param deployId 流程部署id * @param deployId 流程部署id
*/ */
@GetMapping("/getProcessForm") @GetMapping("/getProcessForm")
@SaCheckPermission("workflow:process:start")
public R<?> getForm(@RequestParam(value = "definitionId") String definitionId, public R<?> getForm(@RequestParam(value = "definitionId") String definitionId,
@RequestParam(value = "deployId") String deployId, @RequestParam(value = "deployId") String deployId,
@RequestParam(value = "procInsId", required = false) String procInsId) { @RequestParam(value = "procInsId", required = false) String procInsId) {
@@ -207,7 +194,6 @@ public class WfProcessController extends BaseController {
* @param processDefId 流程定义id * @param processDefId 流程定义id
* @param variables 变量集合,json对象 * @param variables 变量集合,json对象
*/ */
@SaCheckPermission("workflow:process:start")
@PostMapping("/start/{processDefId}") @PostMapping("/start/{processDefId}")
public R<Void> start(@PathVariable(value = "processDefId") String processDefId, @RequestBody Map<String, Object> variables) { public R<Void> start(@PathVariable(value = "processDefId") String processDefId, @RequestBody Map<String, Object> variables) {
processService.startProcessByDefId(processDefId, variables); processService.startProcessByDefId(processDefId, variables);
@@ -219,7 +205,6 @@ public class WfProcessController extends BaseController {
* 根据流程定义id启动流程实例 * 根据流程定义id启动流程实例
* *
*/ */
@SaCheckPermission("workflow:process:start")
@PostMapping("/startClaim") @PostMapping("/startClaim")
public R<String> startClaim() { public R<String> startClaim() {
Map<String, Object> variables = new HashMap<String, Object>(); Map<String, Object> variables = new HashMap<String, Object>();
@@ -231,7 +216,6 @@ public class WfProcessController extends BaseController {
* 根据流程定义id启动流程实例 * 根据流程定义id启动流程实例
* *
*/ */
@SaCheckPermission("workflow:process:start")
@PostMapping("/startMoney") @PostMapping("/startMoney")
public R<String> startMoney() { public R<String> startMoney() {
Map<String, Object> variables = new HashMap<String, Object>(); Map<String, Object> variables = new HashMap<String, Object>();