From cf39e27d2160bd8903c00cc143301e8544fcec4e Mon Sep 17 00:00:00 2001 From: luozukai Date: Sat, 26 Jan 2019 14:27:44 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=9F=AD=E4=BF=A1][=E4=BF=AE=E6=94=B9][?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E6=94=B9=E6=88=90type?= =?UTF-8?q?=E5=92=8Ctenant=5Fid]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/enums/EnumMsgModelType.java | 37 ------------------- .../service/impl/WxFlowServiceImpl.java | 2 - 2 files changed, 39 deletions(-) delete mode 100644 mallinkService/src/main/java/com/iformall/enums/EnumMsgModelType.java diff --git a/mallinkService/src/main/java/com/iformall/enums/EnumMsgModelType.java b/mallinkService/src/main/java/com/iformall/enums/EnumMsgModelType.java deleted file mode 100644 index 1c15e6551..000000000 --- a/mallinkService/src/main/java/com/iformall/enums/EnumMsgModelType.java +++ /dev/null @@ -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; - } -} 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 507b1c4af..91e391ecb 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java @@ -358,7 +358,6 @@ public class WxFlowServiceImpl implements WxFlowService { Map msgReplaceMap = new HashedMap(); WxMsgValidationcode wxMsgValidationcode = new WxMsgValidationcode(); wxMsgValidationcode.setTenantId(tenantId); - wxMsgValidationcode.setType(EnumMsgModelType.FLOW.getCode()); MallUserInfo starter = (MallUserInfo)mapInfo.get("starter"); List> taskAssigneeList = (List)mapInfo.get("taskAssignee"); Long businessId = (Long)mapInfo.get("businessId"); @@ -498,7 +497,6 @@ public class WxFlowServiceImpl implements WxFlowService { Map msgReplaceMap = new HashedMap(); WxMsgValidationcode wxMsgValidationcode = new WxMsgValidationcode(); wxMsgValidationcode.setTenantId(tenantId); - wxMsgValidationcode.setType(EnumMsgModelType.FLOW.getCode()); msgReplaceMap.put("contract",businessId+""); msgReplaceMap.put("page",Constant.adminPage);