|
|
|
@@ -5,10 +5,7 @@ import com.github.pagehelper.PageInfo; |
|
|
|
import com.iformall.common.Result; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.po.*; |
|
|
|
import com.iformall.enums.EnumFlowKey; |
|
|
|
import com.iformall.enums.EnumFlowRecordStatus; |
|
|
|
import com.iformall.enums.EnumMsgModelType; |
|
|
|
import com.iformall.enums.EnumRentContractAppStatus; |
|
|
|
import com.iformall.enums.*; |
|
|
|
import com.iformall.exception.MallinkException; |
|
|
|
import com.iformall.mapper.WxPropertyContractMapper; |
|
|
|
import com.iformall.mapper.WxRentContractMapper; |
|
|
|
@@ -167,12 +164,11 @@ public class WxFlowServiceImpl implements WxFlowService { |
|
|
|
Map<String,String> content = new HashedMap(); |
|
|
|
content.put("userName",starterInfo.getName()); |
|
|
|
content.put("page", Constant.adminPage); |
|
|
|
content.put("modelName","代办通知"); |
|
|
|
|
|
|
|
WxMsgValidationcode wxMsgValidationcode = new WxMsgValidationcode(); |
|
|
|
wxMsgValidationcode.setTenantId(tenantId); |
|
|
|
wxMsgValidationcode.setPhone(mallUserInfo.getPhone()); |
|
|
|
wxMsgValidationcode.setType(EnumMsgModelType.FLOW.getCode()); |
|
|
|
wxMsgValidationcode.setType(EnumMsgModel.FLOW_ASSIGNEE_NODIFY.getCode()); |
|
|
|
wxMsgValidationcodeService.sendWorkFlowNodify(wxMsgValidationcode,content); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -377,10 +373,10 @@ public class WxFlowServiceImpl implements WxFlowService { |
|
|
|
for (MallUserInfo mallUserInfo:mallUserInfoList) { |
|
|
|
msgReplaceMap.put("userName",mallUserInfo.getName()); |
|
|
|
msgReplaceMap.put("page",Constant.adminPage); |
|
|
|
msgReplaceMap.put("modelName","代办通知"); |
|
|
|
|
|
|
|
assignee += mallUserInfo.getName()+" "; |
|
|
|
wxMsgValidationcode.setPhone(mallUserInfo.getPhone()); |
|
|
|
wxMsgValidationcode.setType(EnumMsgModel.FLOW_ASSIGNEE_NODIFY.getCode()); |
|
|
|
wxMsgValidationcodeService.sendWorkFlowNodify(wxMsgValidationcode,msgReplaceMap); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -388,12 +384,12 @@ public class WxFlowServiceImpl implements WxFlowService { |
|
|
|
msgReplaceMap = new HashedMap(); |
|
|
|
msgReplaceMap.put("userName",userName); |
|
|
|
msgReplaceMap.put("page",Constant.adminPage); |
|
|
|
msgReplaceMap.put("modelName","审批通知"); |
|
|
|
msgReplaceMap.put("contract",businessId+""); |
|
|
|
msgReplaceMap.put("toUserName",assignee.trim()); |
|
|
|
|
|
|
|
wxMsgValidationcode = new WxMsgValidationcode(); |
|
|
|
wxMsgValidationcode.setPhone(starter.getPhone()); |
|
|
|
wxMsgValidationcode.setType(EnumMsgModel.FLOW_APPLY_NODIFY.getCode()); |
|
|
|
wxMsgValidationcodeService.sendWorkFlowNodify(wxMsgValidationcode,msgReplaceMap); |
|
|
|
}else{ |
|
|
|
//需要测下三节点 |
|
|
|
@@ -417,11 +413,11 @@ public class WxFlowServiceImpl implements WxFlowService { |
|
|
|
|
|
|
|
// 给发起人发送审批通过消息 |
|
|
|
msgReplaceMap = new HashedMap(); |
|
|
|
msgReplaceMap.put("modelName","通过审批通知"); |
|
|
|
msgReplaceMap.put("contract",businessId+""); |
|
|
|
msgReplaceMap.put("page",Constant.adminPage); |
|
|
|
wxMsgValidationcode = new WxMsgValidationcode(); |
|
|
|
wxMsgValidationcode.setPhone(starter.getPhone()); |
|
|
|
wxMsgValidationcode.setType(EnumMsgModel.FLOW_PASS_NODIFY.getCode()); |
|
|
|
wxMsgValidationcodeService.sendWorkFlowNodify(wxMsgValidationcode,msgReplaceMap); |
|
|
|
} |
|
|
|
} |
|
|
|
@@ -503,12 +499,12 @@ public class WxFlowServiceImpl implements WxFlowService { |
|
|
|
WxMsgValidationcode wxMsgValidationcode = new WxMsgValidationcode(); |
|
|
|
wxMsgValidationcode.setTenantId(tenantId); |
|
|
|
wxMsgValidationcode.setType(EnumMsgModelType.FLOW.getCode()); |
|
|
|
msgReplaceMap.put("modelName","驳回通知"); |
|
|
|
msgReplaceMap.put("contract",businessId+""); |
|
|
|
msgReplaceMap.put("page",Constant.adminPage); |
|
|
|
|
|
|
|
wxMsgValidationcode = new WxMsgValidationcode(); |
|
|
|
wxMsgValidationcode.setPhone(starter.getPhone()); |
|
|
|
wxMsgValidationcode.setType(EnumMsgModel.FLOW_REJECT_NODIFY.getCode()); |
|
|
|
wxMsgValidationcodeService.sendWorkFlowNodify(wxMsgValidationcode,msgReplaceMap); |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|