feat:合同推送修改
This commit is contained in:
@@ -14,20 +14,27 @@ import java.util.stream.Collectors;
|
||||
* @注释:
|
||||
*/
|
||||
public enum FranchiseBrandEnum {
|
||||
ZXJP(1,"正新鸡排","option486"),
|
||||
ZXSMZ(2,"正新三明治","option622"),
|
||||
ZJS(3,"正烧记","option488"),
|
||||
DGMX(4,"大鼓米线","option624"),
|
||||
CXM(5,"串小妹","option626"),
|
||||
MZG(6,"茂掌柜","option490");
|
||||
ZXJP(1,"正新鸡排","option486","上海正新食品集团有限公司","海南正新多品牌管理有限公司"),
|
||||
ZXSMZ(2,"正新三明治","option622","",""),
|
||||
ZJS(3,"正烧记","option488","上海正烧信息科技有限公司","上海正烧信息科技有限公司"),
|
||||
DGMX(4,"大鼓米线","option624","",""),
|
||||
CXM(5,"串小妹","option626","",""),
|
||||
MZG(6,"茂掌柜","option490","","");
|
||||
private int code;
|
||||
private String desc;
|
||||
//红圈通code
|
||||
/**法大大合同编号*/
|
||||
private String hqtCode;
|
||||
FranchiseBrandEnum(int code, String desc,String hqtCode) {
|
||||
/**品牌方*/
|
||||
private String brandOwner;
|
||||
/**收款方*/
|
||||
private String payeeName;
|
||||
|
||||
FranchiseBrandEnum(int code, String desc,String hqtCode,String brandOwner,String payeeName) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
this.hqtCode = hqtCode;
|
||||
this.brandOwner = brandOwner;
|
||||
this.payeeName = payeeName;
|
||||
}
|
||||
public int getCode() {
|
||||
return code;
|
||||
@@ -40,6 +47,14 @@ public enum FranchiseBrandEnum {
|
||||
return hqtCode;
|
||||
}
|
||||
|
||||
public String getBrandOwner() {
|
||||
return brandOwner;
|
||||
}
|
||||
|
||||
public String getPayeeName() {
|
||||
return payeeName;
|
||||
}
|
||||
|
||||
public static String getDescByCode(String code) {
|
||||
if (StringUtils.isBlank(code)){
|
||||
return null;
|
||||
@@ -52,6 +67,20 @@ public enum FranchiseBrandEnum {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static FranchiseBrandEnum getEnumByCode(String code) {
|
||||
if (StringUtils.isBlank(code)){
|
||||
return null;
|
||||
}
|
||||
int i = Integer.parseInt(code);
|
||||
for (FranchiseBrandEnum e : FranchiseBrandEnum.values()) {
|
||||
if (i == e.getCode()) {
|
||||
return e;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String getDescByCode(Integer code) {
|
||||
if (code==null){
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user