Browse Source

[短信][修改][查询条件改成type和tenant_id]

release_toaliyun_real
luozukai 7 years ago
parent
commit
cf39e27d21
2 changed files with 0 additions and 39 deletions
  1. +0
    -37
      mallinkService/src/main/java/com/iformall/enums/EnumMsgModelType.java
  2. +0
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java

+ 0
- 37
mallinkService/src/main/java/com/iformall/enums/EnumMsgModelType.java View File

@@ -1,37 +0,0 @@
package com.iformall.enums;

/**
* Created by luozukai
* 消息模板类型 1登录 2工作流通知
*/
public enum EnumMsgModelType {

LOGIN(1, "登录"),
FLOW(2, "工作流通知")
;

public static EnumMsgModelType getEnum(Integer code) {
for (EnumMsgModelType value : values()) {
if (value.getCode().equals(code)) {
return value;
}
}
return null;
}

private Integer code;
private String message;

EnumMsgModelType(Integer code, String message) {
this.code = code;
this.message = message;
}

public Integer getCode() {
return code;
}

public String getMessage() {
return message;
}
}

+ 0
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java View File

@@ -358,7 +358,6 @@ public class WxFlowServiceImpl implements WxFlowService {
Map<String,String> msgReplaceMap = new HashedMap();
WxMsgValidationcode wxMsgValidationcode = new WxMsgValidationcode();
wxMsgValidationcode.setTenantId(tenantId);
wxMsgValidationcode.setType(EnumMsgModelType.FLOW.getCode());
MallUserInfo starter = (MallUserInfo)mapInfo.get("starter");
List<Map<String,String>> taskAssigneeList = (List)mapInfo.get("taskAssignee");
Long businessId = (Long)mapInfo.get("businessId");
@@ -498,7 +497,6 @@ public class WxFlowServiceImpl implements WxFlowService {
Map<String,String> msgReplaceMap = new HashedMap();
WxMsgValidationcode wxMsgValidationcode = new WxMsgValidationcode();
wxMsgValidationcode.setTenantId(tenantId);
wxMsgValidationcode.setType(EnumMsgModelType.FLOW.getCode());
msgReplaceMap.put("contract",businessId+"");
msgReplaceMap.put("page",Constant.adminPage);



Loading…
Cancel
Save