|
@@ -31,6 +31,7 @@ import com.jeeplus.mail.service.MailComposeService;
|
|
import com.jeeplus.mail.service.MailService;
|
|
import com.jeeplus.mail.service.MailService;
|
|
import com.jeeplus.sys.constant.CommonConstants;
|
|
import com.jeeplus.sys.constant.CommonConstants;
|
|
import com.jeeplus.sys.service.dto.UserDTO;
|
|
import com.jeeplus.sys.service.dto.UserDTO;
|
|
|
|
+import com.jeeplus.sys.utils.Global;
|
|
import com.jeeplus.sys.utils.UserUtils;
|
|
import com.jeeplus.sys.utils.UserUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import org.apache.ibatis.annotations.Param;
|
|
@@ -95,16 +96,20 @@ public class FlowableTaskController {
|
|
|
|
|
|
@GetMapping("todo")
|
|
@GetMapping("todo")
|
|
public ResponseEntity todoListData(Page <ProcessVo> page, Flow flow) throws Exception {
|
|
public ResponseEntity todoListData(Page <ProcessVo> page, Flow flow) throws Exception {
|
|
|
|
+ //各服务引用状态 =》 (若包含,则进行获取该服务的流程信息)
|
|
|
|
+ String inquireStatus = Global.getConfig("INQUIRE_STATUS");
|
|
Page <ProcessVo> pageList = flowTaskService.todoList(new Page<>(1, -1), flow);
|
|
Page <ProcessVo> pageList = flowTaskService.todoList(new Page<>(1, -1), flow);
|
|
List<ProcessVo> list = new ArrayList<>();
|
|
List<ProcessVo> list = new ArrayList<>();
|
|
- // 访问ccpm
|
|
|
|
- Object response = flowRequest.getNotifyList(flow);
|
|
|
|
- List<Map<String, Object>> res = JSONObject.parseArray(JSON.toJSONString(response));
|
|
|
|
- // ccpm待办查询返回结果
|
|
|
|
- List<ProcessVo> processVos = ConvertServiceUtil.convertProcessVoList(res);
|
|
|
|
- // 整合全部查询结果
|
|
|
|
list.addAll(pageList.getRecords()); // 当前系统查询数据
|
|
list.addAll(pageList.getRecords()); // 当前系统查询数据
|
|
- list.addAll(processVos); // ccpm返回数据
|
|
|
|
|
|
+ if(inquireStatus.contains("ccpm")){
|
|
|
|
+ // 访问ccpm
|
|
|
|
+ Object response = flowRequest.getNotifyList(flow);
|
|
|
|
+ List<Map<String, Object>> res = JSONObject.parseArray(JSON.toJSONString(response));
|
|
|
|
+ // ccpm待办查询返回结果
|
|
|
|
+ List<ProcessVo> processVos = ConvertServiceUtil.convertProcessVoList(res);
|
|
|
|
+ // 整合全部查询结果
|
|
|
|
+ list.addAll(processVos); // ccpm返回数据
|
|
|
|
+ }
|
|
// 将整合后的结果排序后分页
|
|
// 将整合后的结果排序后分页
|
|
Page sortAndPaging = ConvertServiceUtil.getSortAndPaging(page, list);
|
|
Page sortAndPaging = ConvertServiceUtil.getSortAndPaging(page, list);
|
|
return ResponseEntity.ok (sortAndPaging);
|
|
return ResponseEntity.ok (sortAndPaging);
|