开店列表+导出

This commit is contained in:
shuo.wang
2025-01-09 17:18:21 +08:00
parent 4acd471fbd
commit 2d94266e62
38 changed files with 662 additions and 28 deletions

View File

@@ -14,6 +14,7 @@ public enum FileTypeEnum {
MY_FRANCHISEES("my_franchisees","我的加盟商"),
TEAM_FRANCHISEES("team_franchisees","团队加盟商"),
PREPARATION("preparation","进度管理"),
BRANCH_SHOP_LIST("branchShopList","开店列表")
;
private String fileType;
private String desc;

View File

@@ -23,4 +23,15 @@ public enum FranchiseBrandEnum {
public String getDesc() {
return desc;
}
public static String getDescByCode(Integer code) {
if (code == null){
return null;
}
for (FranchiseBrandEnum e : FranchiseBrandEnum.values()) {
if (e.getCode() == code) {
return e.getDesc();
}
}
return null;
}
}

View File

@@ -0,0 +1,36 @@
package com.cool.store.enums;
/**
* @Author: WangShuo
* @Date: 2025/01/08/下午5:51
* @Version 1.0
* @注释:
*/
public enum JoinModeEnum {
FRANCHISE_DEPARTMENT(1,"社会加盟模式/加盟部加盟店"),
FRANCHISE_COMPANIES(2,"强加盟模式/加盟公司加盟店"),
OWN_STORE(3,"加盟公司自有店");
private int code;
private String desc;
private JoinModeEnum(int code, String desc) {
this.code = code;
this.desc = desc;
}
public int getCode() {
return code;
}
public String getDesc() {
return desc;
}
public static String getByCode(Integer code) {
if (code == null){
return null;
}
for (JoinModeEnum e : JoinModeEnum.values()) {
if (e.getCode() == code) {
return e.desc;
}
}
return null;
}
}

View File

@@ -22,4 +22,12 @@ public enum ShopStatusEnum {
public String getDesc() {
return desc;
}
public static String getDesc(int code){
for (ShopStatusEnum shopStatusEnum:ShopStatusEnum.values()){
if (shopStatusEnum.getCode()==code){
return shopStatusEnum.getDesc();
}
}
return null;
}
}