修改code review

This commit is contained in:
jason 2021-10-31 22:27:35 +08:00
parent 1b835e058f
commit cc56a66332

View File

@ -41,6 +41,7 @@ public class OALeaveController {
@PreAuthorize("@ss.hasPermission('oa:leave:create')") @PreAuthorize("@ss.hasPermission('oa:leave:create')")
public CommonResult<Long> createLeave(@Valid @RequestBody OALeaveCreateReqVO createReqVO) { public CommonResult<Long> createLeave(@Valid @RequestBody OALeaveCreateReqVO createReqVO) {
// TODO @芋艿processKey 自己去理解下不过得把 leave 变成枚举 // TODO @芋艿processKey 自己去理解下不过得把 leave 变成枚举
// TODO @芋艿 该方法没有用到 是前一个版本的 可以删掉
createReqVO.setProcessKey("leave"); createReqVO.setProcessKey("leave");
return success(leaveService.createLeave(createReqVO)); return success(leaveService.createLeave(createReqVO));
} }
@ -49,6 +50,7 @@ public class OALeaveController {
@ApiOperation("创建外置请假申请") @ApiOperation("创建外置请假申请")
public CommonResult<Long> createFormKeyLeave(@Valid @RequestBody OALeaveCreateReqVO createReqVO) { public CommonResult<Long> createFormKeyLeave(@Valid @RequestBody OALeaveCreateReqVO createReqVO) {
// TODO @芋艿processKey 自己去理解下不过得把 formkey 变成枚举 // TODO @芋艿processKey 自己去理解下不过得把 formkey 变成枚举
// TODO @芋艿 : processKey bpmn <process> 中定义的id, 提交业务表单时候 需要启动流程 或许从前台传更合适
createReqVO.setProcessKey("leave-formkey"); createReqVO.setProcessKey("leave-formkey");
return success(leaveService.createLeave(createReqVO)); return success(leaveService.createLeave(createReqVO));
} }