guoshilong
2024-03-23 f04487fef5ac47380dfa9670156743c9d273966b
skjcmanager/skjcmanager-ops/skjcmanager-flow/src/main/java/cn/gistack/flow/business/feign/FlowClient.java
@@ -21,6 +21,7 @@
import cn.gistack.flow.core.feign.IFlowClient;
import cn.gistack.flow.core.utils.TaskUtil;
import cn.gistack.flow.core.vo.BladeFlowVO;
import cn.gistack.flow.engine.service.FlowEngineService;
import cn.gistack.sm.patrol.vo.BladeFlowPage;
import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.AllArgsConstructor;
@@ -54,6 +55,7 @@
   private final IdentityService identityService;
   private final TaskService taskService;
   private final FlowBusinessService flowBusinessService;
   private final FlowEngineService flowEngineService;
   @Override
   @PostMapping(START_PROCESS_INSTANCE_BY_ID)
@@ -148,5 +150,33 @@
      return R.data(bladeFlowPage);
   }
   @Override
   @GetMapping(HISTORY_FLOW_LIST)
   public R<List<BladeFlow>> historyFlowList(String processInstanceId, String startActivityId, String endActivityId) {
      List<BladeFlow> bladeFlows = flowEngineService.historyFlowList(processInstanceId, startActivityId, endActivityId);
      return R.data(bladeFlows);
   }
   @Override
   @PostMapping(GET_MY_TODO_LIST)
   public List<BladeFlow> getMyToDoList(BladeFlow bladeFlow,String currentUserId) {
      List<BladeFlow> myToDoList = flowBusinessService.getMyToDoList(bladeFlow,currentUserId);
      return myToDoList;
   }
   @Override
   @PostMapping(GET_MY_DONE_LIST)
   public List<BladeFlow> getMyDoneList(BladeFlow bladeFlow, String currentUserId) {
      List<BladeFlow> myToDoList = flowBusinessService.getMyDoneList(bladeFlow,currentUserId);
      return myToDoList;
   }
   @Override
   @PostMapping(GET_MY_DONE_PAGE)
   public List<BladeFlow> getMyDonePage(BladeFlow bladeFlow, String currentUserId, Integer current, Integer size) {
      List<BladeFlow> myToDoList = flowBusinessService.getMyDonePage(bladeFlow,currentUserId,current,size);
      return myToDoList;
   }
}