修复入职流程bug以及低权限无法查看公告问题
This commit is contained in:
@@ -33,7 +33,6 @@ public class SysNoticeController extends BaseController {
|
||||
* @param notice
|
||||
* @return
|
||||
*/
|
||||
@SaCheckPermission("system:notice:list")
|
||||
@GetMapping("/listLimit")
|
||||
public List<SysNotice> selectNoticelLimit(SysNotice notice){
|
||||
return noticeService.selectNoticelLimit(notice);
|
||||
@@ -42,7 +41,6 @@ public class SysNoticeController extends BaseController {
|
||||
/**
|
||||
* 获取通知公告列表
|
||||
*/
|
||||
@SaCheckPermission("system:notice:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<SysNotice> list(SysNotice notice, PageQuery pageQuery) {
|
||||
return noticeService.selectPageNoticeList(notice, pageQuery);
|
||||
@@ -53,7 +51,6 @@ public class SysNoticeController extends BaseController {
|
||||
*
|
||||
* @param noticeId 公告ID
|
||||
*/
|
||||
@SaCheckPermission("system:notice:query")
|
||||
@GetMapping(value = "/{noticeId}")
|
||||
public R<SysNotice> getInfo(@PathVariable Long noticeId) {
|
||||
return R.ok(noticeService.selectNoticeById(noticeId));
|
||||
|
||||
@@ -46,7 +46,6 @@ public class WfProcessController extends BaseController {
|
||||
* @param pageQuery 分页参数
|
||||
*/
|
||||
@GetMapping(value = "/list")
|
||||
@SaCheckPermission("workflow:process:startList")
|
||||
public TableDataInfo<WfDefinitionVo> startProcessList(ProcessQuery processQuery, PageQuery pageQuery) {
|
||||
return processService.selectPageStartProcessList(processQuery, pageQuery);
|
||||
}
|
||||
@@ -54,7 +53,6 @@ public class WfProcessController extends BaseController {
|
||||
/**
|
||||
* 我拥有的流程
|
||||
*/
|
||||
@SaCheckPermission("workflow:process:ownList")
|
||||
@GetMapping(value = "/ownList")
|
||||
public TableDataInfo<WfTaskVo> ownProcessList(ProcessQuery processQuery, PageQuery pageQuery) {
|
||||
return processService.selectPageOwnProcessList(processQuery, pageQuery);
|
||||
@@ -71,7 +69,6 @@ public class WfProcessController extends BaseController {
|
||||
/**
|
||||
* 获取待办列表
|
||||
*/
|
||||
@SaCheckPermission("workflow:process:todoList")
|
||||
@GetMapping(value = "/todoList")
|
||||
public TableDataInfo<WfTaskVo> todoProcessList(ProcessQuery processQuery, PageQuery pageQuery) {
|
||||
return processService.selectPageTodoProcessList(processQuery, pageQuery);
|
||||
@@ -83,7 +80,6 @@ public class WfProcessController extends BaseController {
|
||||
* @param processQuery 流程业务对象
|
||||
* @param pageQuery 分页参数
|
||||
*/
|
||||
@SaCheckPermission("workflow:process:claimList")
|
||||
@GetMapping(value = "/claimList")
|
||||
public TableDataInfo<WfTaskVo> claimProcessList(ProcessQuery processQuery, PageQuery pageQuery) {
|
||||
return processService.selectPageClaimProcessList(processQuery, pageQuery);
|
||||
@@ -94,7 +90,6 @@ public class WfProcessController extends BaseController {
|
||||
*
|
||||
* @param pageQuery 分页参数
|
||||
*/
|
||||
@SaCheckPermission("workflow:process:finishedList")
|
||||
@GetMapping(value = "/finishedList")
|
||||
public TableDataInfo<WfTaskVo> finishedProcessList(ProcessQuery processQuery, PageQuery pageQuery) {
|
||||
return processService.selectPageFinishedProcessList(processQuery, pageQuery);
|
||||
@@ -106,7 +101,6 @@ public class WfProcessController extends BaseController {
|
||||
* @param copyBo 流程抄送对象
|
||||
* @param pageQuery 分页参数
|
||||
*/
|
||||
@SaCheckPermission("workflow:process:copyList")
|
||||
@GetMapping(value = "/copyList")
|
||||
public TableDataInfo<WfCopyVo> copyProcessList(WfCopyBo copyBo, PageQuery pageQuery) {
|
||||
copyBo.setUserId(getUserId());
|
||||
@@ -116,7 +110,6 @@ public class WfProcessController extends BaseController {
|
||||
/**
|
||||
* 导出可发起流程列表
|
||||
*/
|
||||
@SaCheckPermission("workflow:process:startExport")
|
||||
@Log(title = "可发起流程", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/startExport")
|
||||
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)
|
||||
@PostMapping("/ownExport")
|
||||
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)
|
||||
@PostMapping("/todoExport")
|
||||
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)
|
||||
@PostMapping("/claimExport")
|
||||
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)
|
||||
@PostMapping("/finishedExport")
|
||||
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)
|
||||
@PostMapping("/copyExport")
|
||||
public void copyExport(WfCopyBo copyBo, HttpServletResponse response) {
|
||||
@@ -194,7 +182,6 @@ public class WfProcessController extends BaseController {
|
||||
* @param deployId 流程部署id
|
||||
*/
|
||||
@GetMapping("/getProcessForm")
|
||||
@SaCheckPermission("workflow:process:start")
|
||||
public R<?> getForm(@RequestParam(value = "definitionId") String definitionId,
|
||||
@RequestParam(value = "deployId") String deployId,
|
||||
@RequestParam(value = "procInsId", required = false) String procInsId) {
|
||||
@@ -207,7 +194,6 @@ public class WfProcessController extends BaseController {
|
||||
* @param processDefId 流程定义id
|
||||
* @param variables 变量集合,json对象
|
||||
*/
|
||||
@SaCheckPermission("workflow:process:start")
|
||||
@PostMapping("/start/{processDefId}")
|
||||
public R<Void> start(@PathVariable(value = "processDefId") String processDefId, @RequestBody Map<String, Object> variables) {
|
||||
processService.startProcessByDefId(processDefId, variables);
|
||||
@@ -219,7 +205,6 @@ public class WfProcessController extends BaseController {
|
||||
* 根据流程定义id启动流程实例
|
||||
*
|
||||
*/
|
||||
@SaCheckPermission("workflow:process:start")
|
||||
@PostMapping("/startClaim")
|
||||
public R<String> startClaim() {
|
||||
Map<String, Object> variables = new HashMap<String, Object>();
|
||||
@@ -231,7 +216,6 @@ public class WfProcessController extends BaseController {
|
||||
* 根据流程定义id启动流程实例
|
||||
*
|
||||
*/
|
||||
@SaCheckPermission("workflow:process:start")
|
||||
@PostMapping("/startMoney")
|
||||
public R<String> startMoney() {
|
||||
Map<String, Object> variables = new HashMap<String, Object>();
|
||||
|
||||
Reference in New Issue
Block a user