diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java index 1935d79e0..dd40698c5 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java @@ -1,6 +1,7 @@ package com.iformall.service.impl; import com.github.pagehelper.PageInfo; +import com.iformall.common.Result; import com.iformall.common.ResultData; import com.iformall.domain.po.MallUserInfo; import com.iformall.domain.po.WxFlowRecord; @@ -10,6 +11,7 @@ import com.iformall.enums.EnumFlowKey; import com.iformall.enums.EnumFlowRecordStatus; import com.iformall.enums.EnumMsgModelType; import com.iformall.enums.EnumRentContractAppStatus; +import com.iformall.exception.MallinkException; import com.iformall.service.*; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.map.HashedMap; @@ -179,7 +181,7 @@ public class WxFlowServiceImpl implements WxFlowService { String remark = params.get("remark"); Task task = taskService.createTaskQuery().taskId(taskId).singleResult(); if (task == null) { - throw new RuntimeException("流程不存在"); + throw new MallinkException(Result.ERROR, "流程不存在"); } Map mapInfo = taskService.getVariables(task.getId()); Long businessId = (Long)mapInfo.get("businessId");