Browse Source
# Conflicts: # epmet-auth/pom.xml # epmet-gateway/pom.xml # epmet-module/epmet-common-service/common-service-server/pom.xml # epmet-module/epmet-ext/epmet-ext-server/pom.xml # epmet-module/epmet-heart/epmet-heart-server/pom.xml # epmet-module/gov-access/gov-access-server/pom.xml # epmet-module/gov-mine/gov-mine-server/pom.xml # epmet-module/gov-org/gov-org-server/pom.xml # epmet-module/oper-access/oper-access-server/pom.xml # epmet-module/oper-crm/oper-crm-server/pom.xml # epmet-module/oper-customize/oper-customize-server/pom.xml # epmet-module/resi-partymember/resi-partymember-server/pom.xml # epmet-user/epmet-user-server/pom.xmldev_shibei_match
31 changed files with 148 additions and 30 deletions
@ -0,0 +1,41 @@ |
|||
package com.epmet.enu; |
|||
|
|||
import org.apache.commons.lang3.StringUtils; |
|||
|
|||
/** |
|||
* 客户类型枚举 |
|||
*/ |
|||
public enum CustomerTypeEnum { |
|||
|
|||
INTERNAL("internal", "内部客户"), |
|||
EXTERNAL("external", "外部客户"), |
|||
UN_KNOW("unknow", "未知类型"); |
|||
|
|||
private String type; |
|||
private String name; |
|||
|
|||
CustomerTypeEnum(String type, String name) { |
|||
this.type = type; |
|||
this.name = name; |
|||
} |
|||
|
|||
public static String getName(String type) { |
|||
if (StringUtils.isBlank(type)) { |
|||
return null; |
|||
} |
|||
for (CustomerTypeEnum value : CustomerTypeEnum.values()) { |
|||
if (value.type.equals(type)) { |
|||
return value.name; |
|||
} |
|||
} |
|||
return UN_KNOW.name; |
|||
} |
|||
|
|||
public String getType() { |
|||
return type; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
} |
@ -0,0 +1 @@ |
|||
alter table external_app add column CUSTOMER_TYPE varchar(20) not null after CUSTOMER_ID; |
Loading…
Reference in new issue