Browse Source

流程待办任务修改

wangliang 1 year ago
parent
commit
0002e67a0d

+ 1 - 1
sop-business/src/main/java/com/qmth/sop/business/activiti/service/ActivitiService.java

@@ -73,7 +73,7 @@ public interface ActivitiService {
      * @param flowTaskTypeEnum
      * @param flowTaskTypeEnum
      * @return
      * @return
      */
      */
-    public IPage<WorkTaskResult> getUnDoneFlowTaskList(IPage<Map> iPage, Long userId, FlowTaskTypeEnum flowTaskTypeEnum);
+    public IPage<WorkTaskResult> getFlowTaskList(IPage<Map> iPage, Long userId, FlowTaskTypeEnum flowTaskTypeEnum);
 
 
     /**
     /**
      * 流程节点转他人审批
      * 流程节点转他人审批

+ 2 - 2
sop-business/src/main/java/com/qmth/sop/business/activiti/service/impl/ActivitiServiceImpl.java

@@ -425,9 +425,9 @@ public class ActivitiServiceImpl implements ActivitiService {
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public IPage<WorkTaskResult> getUnDoneFlowTaskList(IPage<Map> iPage, Long userId, FlowTaskTypeEnum flowTaskTypeEnum) {
+    public IPage<WorkTaskResult> getFlowTaskList(IPage<Map> iPage, Long userId, FlowTaskTypeEnum flowTaskTypeEnum) {
         Map<String, Object> map = new HashMap<>();
         Map<String, Object> map = new HashMap<>();
-        IPage<WorkTaskResult> workTaskResultIPage = sysUserService.getUnDoneFlowTaskList(iPage, userId, flowTaskTypeEnum);
+        IPage<WorkTaskResult> workTaskResultIPage = sysUserService.getFlowTaskList(iPage, userId, flowTaskTypeEnum);
         if (Objects.nonNull(workTaskResultIPage) && !CollectionUtils.isEmpty(workTaskResultIPage.getRecords())) {
         if (Objects.nonNull(workTaskResultIPage) && !CollectionUtils.isEmpty(workTaskResultIPage.getRecords())) {
             for (WorkTaskResult w : workTaskResultIPage.getRecords()) {
             for (WorkTaskResult w : workTaskResultIPage.getRecords()) {
                 List<Task> taskList = taskService.createTaskQuery().taskId(String.valueOf(w.getTaskId())).list();
                 List<Task> taskList = taskService.createTaskQuery().taskId(String.valueOf(w.getTaskId())).list();

+ 1 - 1
sop-business/src/main/java/com/qmth/sop/business/mapper/SysUserMapper.java

@@ -40,7 +40,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
      * @param flowTaskTypeEnum
      * @param flowTaskTypeEnum
      * @return
      * @return
      */
      */
-    IPage<WorkTaskResult> getUnDoneFlowTaskList(IPage<Map> iPage, @Param("userId") Long userId, @Param("flowTaskTypeEnum") String flowTaskTypeEnum);
+    IPage<WorkTaskResult> getFlowTaskList(IPage<Map> iPage, @Param("userId") Long userId, @Param("flowTaskTypeEnum") String flowTaskTypeEnum);
 
 
     /**
     /**
      * 根据机构id查询用户
      * 根据机构id查询用户

+ 1 - 1
sop-business/src/main/java/com/qmth/sop/business/service/SysUserService.java

@@ -133,7 +133,7 @@ public interface SysUserService extends IService<SysUser> {
      * @param flowTaskTypeEnum
      * @param flowTaskTypeEnum
      * @return
      * @return
      */
      */
-    IPage<WorkTaskResult> getUnDoneFlowTaskList(IPage<Map> iPage, Long userId, FlowTaskTypeEnum flowTaskTypeEnum);
+    IPage<WorkTaskResult> getFlowTaskList(IPage<Map> iPage, Long userId, FlowTaskTypeEnum flowTaskTypeEnum);
 
 
     /**
     /**
      * 根据角色类型查询用户
      * 根据角色类型查询用户

+ 2 - 2
sop-business/src/main/java/com/qmth/sop/business/service/impl/SysUserServiceImpl.java

@@ -450,8 +450,8 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public IPage<WorkTaskResult> getUnDoneFlowTaskList(IPage<Map> iPage, Long userId, FlowTaskTypeEnum flowTaskTypeEnum) {
-        return this.baseMapper.getUnDoneFlowTaskList(iPage, userId, Objects.nonNull(flowTaskTypeEnum) ? flowTaskTypeEnum.name() : null);
+    public IPage<WorkTaskResult> getFlowTaskList(IPage<Map> iPage, Long userId, FlowTaskTypeEnum flowTaskTypeEnum) {
+        return this.baseMapper.getFlowTaskList(iPage, userId, Objects.nonNull(flowTaskTypeEnum) ? flowTaskTypeEnum.name() : null);
     }
     }
 
 
     @Override
     @Override

+ 8 - 0
sop-business/src/main/resources/db/log/wangliang_update_log.sql

@@ -522,3 +522,11 @@ UPDATE sys_privilege
 SET name='获取流程待办', url='/api/admin/flow/task/list', `type`='URL', parent_id=64, `sequence`=19, property='SYS', related=NULL, enable=1, default_auth=1, front_display=0
 SET name='获取流程待办', url='/api/admin/flow/task/list', `type`='URL', parent_id=64, `sequence`=19, property='SYS', related=NULL, enable=1, default_auth=1, front_display=0
 WHERE id=3006;
 WHERE id=3006;
 
 
+INSERT INTO t_b_product
+(id, name, code, enable, create_id, create_time)
+VALUES(1, '教务处', 'OFFICE', 1, 1, NULL);
+INSERT INTO t_b_product
+(id, name, code, enable, create_id, create_time)
+VALUES(2, '云阅卷', 'CLOUD_MARK', 1, 1, NULL);
+
+

+ 1 - 1
sop-business/src/main/resources/mapper/SysUserMapper.xml

@@ -6,7 +6,7 @@
         select ARP.ID_ from ACT_RE_PROCDEF ARP where ARP.DEPLOYMENT_ID_ = #{deploymentId}
         select ARP.ID_ from ACT_RE_PROCDEF ARP where ARP.DEPLOYMENT_ID_ = #{deploymentId}
     </select>
     </select>
 
 
-    <select id="getUnDoneFlowTaskList" resultType="com.qmth.sop.business.bean.result.WorkTaskResult">
+    <select id="getFlowTaskList" resultType="com.qmth.sop.business.bean.result.WorkTaskResult">
         select
         select
             t.*
             t.*
         from
         from

+ 2 - 2
sop-server/src/main/java/com/qmth/sop/server/api/TFCustomFlowController.java

@@ -93,11 +93,11 @@ public class TFCustomFlowController {
     @ApiOperation(value = "获取流程待办接口")
     @ApiOperation(value = "获取流程待办接口")
     @RequestMapping(value = "/task/list", method = RequestMethod.POST)
     @RequestMapping(value = "/task/list", method = RequestMethod.POST)
     @ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = WorkTaskResult.class)})
     @ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = WorkTaskResult.class)})
-    public Result getUnDoneFlowTaskList(@ApiParam(value = "用户id", required = true) @RequestParam Long userId,
+    public Result getFlowTaskList(@ApiParam(value = "用户id", required = true) @RequestParam Long userId,
                                         @ApiParam(value = "待办任务类型", required = true) @RequestParam FlowTaskTypeEnum flowTaskTypeEnum,
                                         @ApiParam(value = "待办任务类型", required = true) @RequestParam FlowTaskTypeEnum flowTaskTypeEnum,
                                         @ApiParam(value = "页码", required = true) @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
                                         @ApiParam(value = "页码", required = true) @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
                                         @ApiParam(value = "页数", required = true) @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
                                         @ApiParam(value = "页数", required = true) @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
-        return ResultUtil.ok(activitiService.getUnDoneFlowTaskList(new Page<>(pageNumber, pageSize), userId, flowTaskTypeEnum));
+        return ResultUtil.ok(activitiService.getFlowTaskList(new Page<>(pageNumber, pageSize), userId, flowTaskTypeEnum));
     }
     }
 
 
     @ApiOperation(value = "结束流程接口")
     @ApiOperation(value = "结束流程接口")