|
@@ -15,6 +15,7 @@ import com.qmth.teachcloud.exchange.common.bean.dto.flow.StandardFlowWorkMsg;
|
|
import com.qmth.teachcloud.exchange.common.bean.dto.flow.ToDoTaskDto;
|
|
import com.qmth.teachcloud.exchange.common.bean.dto.flow.ToDoTaskDto;
|
|
import com.qmth.teachcloud.exchange.common.bean.dto.syssetting.SimpleObject;
|
|
import com.qmth.teachcloud.exchange.common.bean.dto.syssetting.SimpleObject;
|
|
import com.qmth.teachcloud.exchange.common.contant.SystemConstant;
|
|
import com.qmth.teachcloud.exchange.common.contant.SystemConstant;
|
|
|
|
+import com.qmth.teachcloud.exchange.common.enums.ExceptionResultEnum;
|
|
import com.qmth.teachcloud.exchange.common.service.CommonCacheService;
|
|
import com.qmth.teachcloud.exchange.common.service.CommonCacheService;
|
|
import com.qmth.teachcloud.exchange.common.util.ResultUtil;
|
|
import com.qmth.teachcloud.exchange.common.util.ResultUtil;
|
|
import io.swagger.annotations.*;
|
|
import io.swagger.annotations.*;
|
|
@@ -51,6 +52,15 @@ public class GdpuMqController {
|
|
@ApiParam(value = "签名串", required = true) @RequestHeader String secret,
|
|
@ApiParam(value = "签名串", required = true) @RequestHeader String secret,
|
|
@ApiParam(value = "流程id", required = true) @RequestHeader String orunId) {
|
|
@ApiParam(value = "流程id", required = true) @RequestHeader String orunId) {
|
|
log.info("appid:{},secret:{},orunId:{}", appid, secret, orunId);
|
|
log.info("appid:{},secret:{},orunId:{}", appid, secret, orunId);
|
|
|
|
+ if (Objects.isNull(appid) || Objects.equals(appid.trim(), "")) {
|
|
|
|
+ throw ExceptionResultEnum.PARAMS_ERROR.exception("appid为空");
|
|
|
|
+ }
|
|
|
|
+ if (Objects.isNull(secret) || Objects.equals(secret.trim(), "")) {
|
|
|
|
+ throw ExceptionResultEnum.PARAMS_ERROR.exception("secret为空");
|
|
|
|
+ }
|
|
|
|
+ if (Objects.isNull(orunId) || Objects.equals(orunId.trim(), "")) {
|
|
|
|
+ throw ExceptionResultEnum.PARAMS_ERROR.exception("流水号为空");
|
|
|
|
+ }
|
|
Long flowId = null;
|
|
Long flowId = null;
|
|
if (Objects.nonNull(orunId)) {
|
|
if (Objects.nonNull(orunId)) {
|
|
flowId = Long.parseLong(orunId.substring(4, orunId.length()));
|
|
flowId = Long.parseLong(orunId.substring(4, orunId.length()));
|
|
@@ -96,8 +106,8 @@ public class GdpuMqController {
|
|
processInfo.add(processInfoDTO);
|
|
processInfo.add(processInfoDTO);
|
|
}
|
|
}
|
|
JSONArray todoInfo = new JSONArray(); //待办信息
|
|
JSONArray todoInfo = new JSONArray(); //待办信息
|
|
- List<StandardFlowWorkMsg> standardFlowWorkMsgList = toDoTaskDto.getTodoTaskList();
|
|
|
|
- for (StandardFlowWorkMsg s : standardFlowWorkMsgList) {
|
|
|
|
|
|
+ List<StandardFlowWorkMsg> todoTaskList = toDoTaskDto.getHandleMessageDto().getTodoTaskList();
|
|
|
|
+ for (StandardFlowWorkMsg s : todoTaskList) {
|
|
TodoInfoDTO todoInfoDTO = new TodoInfoDTO();
|
|
TodoInfoDTO todoInfoDTO = new TodoInfoDTO();
|
|
setTodoInfoDTO(todoInfoDTO, s);
|
|
setTodoInfoDTO(todoInfoDTO, s);
|
|
todoInfo.add(todoInfoDTO);
|
|
todoInfo.add(todoInfoDTO);
|
|
@@ -138,7 +148,8 @@ public class GdpuMqController {
|
|
private void setProcessInfoDTO(ProcessInfoDTO processInfoDTO, ToDoTaskDto toDoTaskDto) {
|
|
private void setProcessInfoDTO(ProcessInfoDTO processInfoDTO, ToDoTaskDto toDoTaskDto) {
|
|
// processInfoDTO.setSysAppId("LYOA");
|
|
// processInfoDTO.setSysAppId("LYOA");
|
|
// processInfoDTO.setOrunId("LYOA79ec0af89702d641d839d5bbb5e9073b0e4b");
|
|
// processInfoDTO.setOrunId("LYOA79ec0af89702d641d839d5bbb5e9073b0e4b");
|
|
- List<StandardFlowWorkMsg> standardFlowWorkMsgList = toDoTaskDto.getTodoTaskList();
|
|
|
|
|
|
+ List<StandardFlowWorkMsg> standardFlowWorkMsgList = toDoTaskDto.getHandleMessageDto().getTodoTaskList();
|
|
|
|
+ ;
|
|
List<String> userIdList = new LinkedList<>(), userNameList = new LinkedList<>();
|
|
List<String> userIdList = new LinkedList<>(), userNameList = new LinkedList<>();
|
|
for (StandardFlowWorkMsg s : standardFlowWorkMsgList) {
|
|
for (StandardFlowWorkMsg s : standardFlowWorkMsgList) {
|
|
userIdList.add(String.valueOf(s.getUserId()));
|
|
userIdList.add(String.valueOf(s.getUserId()));
|