diff --git a/food-api/.classpath b/food-api/.classpath
new file mode 100644
index 0000000..1d05ba3
--- /dev/null
+++ b/food-api/.classpath
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/food-api/.project b/food-api/.project
new file mode 100644
index 0000000..7a0f5f0
--- /dev/null
+++ b/food-api/.project
@@ -0,0 +1,36 @@
+
+
+ food-api
+
+
+
+
+
+ org.eclipse.wst.common.project.facet.core.builder
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.wst.validation.validationbuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jem.workbench.JavaEMFNature
+ org.eclipse.wst.common.modulecore.ModuleCoreNature
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+ org.eclipse.wst.common.project.facet.core.nature
+
+
diff --git a/food-api/.settings/org.eclipse.core.resources.prefs b/food-api/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..f9fe345
--- /dev/null
+++ b/food-api/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/test/java=UTF-8
+encoding/=UTF-8
diff --git a/food-api/.settings/org.eclipse.jdt.core.prefs b/food-api/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..cac0df4
--- /dev/null
+++ b/food-api/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,11 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.compliance=1.8
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
+org.eclipse.jdt.core.compiler.release=disabled
+org.eclipse.jdt.core.compiler.source=1.8
diff --git a/food-api/.settings/org.eclipse.m2e.core.prefs b/food-api/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/food-api/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/food-api/.settings/org.eclipse.wst.common.component b/food-api/.settings/org.eclipse.wst.common.component
new file mode 100644
index 0000000..cb70cf0
--- /dev/null
+++ b/food-api/.settings/org.eclipse.wst.common.component
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/food-api/.settings/org.eclipse.wst.common.project.facet.core.xml b/food-api/.settings/org.eclipse.wst.common.project.facet.core.xml
new file mode 100644
index 0000000..fb95c45
--- /dev/null
+++ b/food-api/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/food-api/.settings/org.eclipse.wst.validation.prefs b/food-api/.settings/org.eclipse.wst.validation.prefs
new file mode 100644
index 0000000..04cad8c
--- /dev/null
+++ b/food-api/.settings/org.eclipse.wst.validation.prefs
@@ -0,0 +1,2 @@
+disabled=06target
+eclipse.preferences.version=1
diff --git a/food-api/food-api.iml b/food-api/food-api.iml
new file mode 100644
index 0000000..8d8f225
--- /dev/null
+++ b/food-api/food-api.iml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/food-api/pom.xml b/food-api/pom.xml
new file mode 100644
index 0000000..0aa7ab6
--- /dev/null
+++ b/food-api/pom.xml
@@ -0,0 +1,32 @@
+
+
+ 4.0.0
+
+ com.jwsaas
+ food-parent
+ 2.0.0
+
+ food-api
+ food-api
+ http://maven.apache.org
+
+
+ UTF-8
+
+
+
+
+ com.jwsaas
+ common-utils
+
+
+
+ junit
+ junit
+ test
+
+
+
+
diff --git a/food-api/src/main/java/com/jwsaas/Constants.java b/food-api/src/main/java/com/jwsaas/Constants.java
new file mode 100644
index 0000000..4509cf8
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/Constants.java
@@ -0,0 +1,67 @@
+package com.jwsaas;
+
+public class Constants {
+
+ /**
+ * 应用类型标识,运维系统中全局唯一
+ */
+ public static final String APP_TYPE_SIGN = "cy2";
+
+ /**
+ * 公共部分标识(shared)
+ */
+ public static final String SHARED_SIGN = "shared";
+
+ /**
+ * 项目标识(food2)
+ */
+ public static final String FOOD_SIGN = "food";
+
+ /**
+ * 运维项目标识(ops)
+ */
+ public static final String OPS_SIGN = "ops";
+
+ /**
+ * 计划任务标识(shared)
+ */
+ public static final String TASK_SIGN = "task";
+
+ /**
+ * 微信点餐标识(wxdc)
+ */
+ public static final String WXDC_SIGN = "wxdc";
+
+ /**
+ * 小程序要货标识(wxyh)
+ */
+ public static final String WXYH_SIGN = "wxyh";
+
+ /**
+ * 系统默认数据源标识
+ */
+ public static final String DEFAULT_DB_SIGN = "10001";
+
+ public static final String PATH_SEPARATOR = ",";
+
+ /**
+ * 系统默认总部门店编号
+ */
+ public static final String DEFAULT_HEADQUARTER_STORE_NO = "000000";
+
+ /**
+ * 根据门店编号,判断是否总部员工
+ *
+ * @param storeNo
+ * 门店编号
+ * @return
+ */
+ public static boolean isHeadquarterWorker(String storeNo) {
+ try {
+ return Integer.valueOf(Constants.DEFAULT_HEADQUARTER_STORE_NO) == Integer.valueOf(storeNo);
+ } catch (Exception e) {
+ return false;
+ }
+ }
+
+}
diff --git a/food-api/src/main/java/com/jwsaas/ModuleType.java b/food-api/src/main/java/com/jwsaas/ModuleType.java
new file mode 100644
index 0000000..cd5d340
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/ModuleType.java
@@ -0,0 +1,34 @@
+package com.jwsaas;
+
+/**
+ * 模块分类
+ */
+public enum ModuleType {
+
+ HEADQUARTER("headquarter", "总部相关"),
+ STORE("store", "门店相关"),
+ AGENT("agent", "代理商相关"),
+ WINDOW("window", "美食广场档口商户相关");
+
+ private ModuleType(String sign, String description) {
+ this.sign = sign;
+ this.description = description;
+ }
+
+ private String sign;
+ private String description;
+
+ public String getSign() {
+ return sign;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ @Override
+ public String toString() {
+ return super.toString() + "(" + sign + "," + description + ")";
+ }
+
+}
diff --git a/food-api/src/main/java/com/jwsaas/OrderPromotionType.java b/food-api/src/main/java/com/jwsaas/OrderPromotionType.java
new file mode 100644
index 0000000..d81fbb7
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/OrderPromotionType.java
@@ -0,0 +1,34 @@
+package com.jwsaas;
+
+/**
+ * 订单优惠枚举
+ * @author louxutao
+ *
+ */
+public enum OrderPromotionType {
+ // 0赠送 1折扣 2优惠券 3会员卡折扣 4满减 5满送 6议价 7兑换 8会员价 9立减
+ NONE(-1, "无"), GIFT(0, "赠送"), DISCOUNT(1, "折扣"), QUAN(2, "优惠券"), MEMBERPRICE(3, "会员价"),
+ FULLDISCOUNT(4, "满减"),FULLGIFT(5, "满送"),BARGIN(6, "议价"),DUIHUAN(7, "兑换"),REDUCT(8, "立减"),
+ ORDERREDUCT(9, "整单立减"),ORDERDISCOUNT(21, "整单折扣"),ORDERBARGIN(26, "整单议价"),SUITDISCOUNT(50, "道菜分摊");
+
+ private OrderPromotionType(Integer sign, String description) {
+ this.sign = sign;
+ this.description = description;
+ }
+
+ private Integer sign;
+ private String description;
+
+ public Integer getSign() {
+ return sign;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ @Override
+ public String toString() {
+ return super.toString() + "(" + sign + "," + description + ")";
+ }
+}
diff --git a/food-api/src/main/java/com/jwsaas/ProgramIndexPictureType.java b/food-api/src/main/java/com/jwsaas/ProgramIndexPictureType.java
new file mode 100644
index 0000000..fedc16f
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/ProgramIndexPictureType.java
@@ -0,0 +1,36 @@
+package com.jwsaas;
+
+public enum ProgramIndexPictureType {
+ RECHARGE("recharge", "充值"),
+ COUPON("coupon", "优惠券"),
+ PAYCODE("payCode", "支付码"),
+ FORHEREORDER("forHereOrder", "堂食点单"),
+ TAKEOUTORDER("takeOutOrder", "外卖点单"),
+ INTEGRALMALL("integralMall", "积分商城"),
+ USERCENTER("userCenter", "个人中心");
+
+
+ ProgramIndexPictureType(String sign, String description) {
+ this.sign = sign;
+ this.description = description;
+ }
+
+ private String sign;
+ private String description;
+
+ public String getSign() {
+ return sign;
+ }
+
+ public void setSign(String sign) {
+ this.sign = sign;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+}
diff --git a/food-api/src/main/java/com/jwsaas/PromotionType.java b/food-api/src/main/java/com/jwsaas/PromotionType.java
new file mode 100644
index 0000000..ac361b8
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/PromotionType.java
@@ -0,0 +1,35 @@
+package com.jwsaas;
+
+public enum PromotionType {
+
+ GOODS("goods", "商品促销"),
+ FULL_CUT("fullCut", "满减促销"),
+ FULL_GIVE("fullGive", "满送促销"),
+ FULL_GIFT("fullGift", "满赠促销"),
+ DOUBLE_SPECIAL("doubleSpecial", "双数特价");
+
+ private String sign;
+ private String description;
+
+ private PromotionType(String sign, String description) {
+ this.sign = sign;
+ this.description = description;
+ }
+
+ public String getSign() {
+ return sign;
+ }
+
+ public void setSign(String sign) {
+ this.sign = sign;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+}
diff --git a/food-api/src/main/java/com/jwsaas/RoleType.java b/food-api/src/main/java/com/jwsaas/RoleType.java
new file mode 100644
index 0000000..186f0f4
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/RoleType.java
@@ -0,0 +1,34 @@
+package com.jwsaas;
+
+/**
+ * 角色分类
+ */
+public enum RoleType {
+
+ HEADQUARTER("headquarter", "总部"),
+ STORE("store", "分店"),
+ AGENT("agent", "代理商"),
+ WINDOW("window", "档口商户");
+
+ private RoleType(String sign, String description) {
+ this.sign = sign;
+ this.description = description;
+ }
+
+ private String sign;
+ private String description;
+
+ public String getSign() {
+ return sign;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ @Override
+ public String toString() {
+ return super.toString() + "(" + sign + "," + description + ")";
+ }
+
+}
diff --git a/food-api/src/main/java/com/jwsaas/SalesOrderDiscountType.java b/food-api/src/main/java/com/jwsaas/SalesOrderDiscountType.java
new file mode 100644
index 0000000..bb6592c
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/SalesOrderDiscountType.java
@@ -0,0 +1,57 @@
+package com.jwsaas;
+
+/**
+ * 销售订单优惠类型
+ */
+public enum SalesOrderDiscountType {
+
+ NONE("-1", "无"), // None = -1,
+ ZENGSONG("0", "赠送"), // 赠送 = 0,
+ ZHEKOU("1", "折扣"),// 折扣 = 1,
+ YOUHUIQUAN("2", "优惠券"),// 优惠券 = 2,
+ HUIYUANJIA("3", "会员价"),// 会员价 = 3,
+ MANJIAN("4", "满减"),// 满减 = 4,
+ MANSONG("5", "满送"),// 满送 = 5,
+ YIJIA("6", "议价"),// 议价 = 6,
+ DUIHUAN("7", "兑换"),// 兑换 = 7,
+ LIJIAN("8", "立减"),// 立减 = 8,
+ ZHENGDANLIJIAN("9", "整单立减"),// 整单立减 = 9,
+ MIANDAN("10", "免单"),// 免单 = 10,
+ HUIYUANDENGJIYOUHUI("11","会员等级优惠"),//会员等级优惠 = 11,
+ ZUOFAZHEKOU("12","做法折扣"),//做法折扣 = 12,
+ ZHENGDANZHEKOU("21", "整单折扣"),// 整单折扣 = 21,
+ ZHENGDANYIJIA("26", "整单议价"),// 整单议价 = 26,
+ WMKF("30", "外卖扣费"),// 外卖扣费= 30,
+ DAOCAIFENTAN("50", "道菜分摊"),// 道菜分摊 = 50,
+ KAYOURI("60", "卡友日"),// 卡友日 = 60,
+ MANJIANCUXIAO("61", "满减促销"),// 满减促销 = 61,
+ SHANGPINCUXIAO("62", "商品促销"),// 商品促销 = 62,
+ SHITIYOUHUIQUAN("63", "实体优惠券"),// 实体优惠券 = 63,
+ SHUANGSHUTEJIAYOUHUI("64", "双数特价优惠"),// 双数特价优惠 = 64,
+ SHUANGSHUTEJIAZENGSONG("65", "双数特价赠送"),// 双数特价赠送 = 65,
+ DIANZIDAIJINQUAN("80", "电子代金券"),// 电子代金券 = 80,
+ DIANZIZHEKOUQUAN("81", "电子折扣券"),// 电子折扣券 = 81,
+ DIANZIDUIHUANQUAN("82", "电子兑换券");// 电子兑换券 = 82,
+
+ private SalesOrderDiscountType(String sign, String description) {
+ this.sign = sign;
+ this.description = description;
+ }
+
+ private String sign;
+ private String description;
+
+ public String getSign() {
+ return sign;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ @Override
+ public String toString() {
+ return super.toString() + "(" + sign + "," + description + ")";
+ }
+
+}
diff --git a/food-api/src/main/java/com/jwsaas/ServerDataVersionRelationType.java b/food-api/src/main/java/com/jwsaas/ServerDataVersionRelationType.java
new file mode 100644
index 0000000..eec7c89
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/ServerDataVersionRelationType.java
@@ -0,0 +1,88 @@
+package com.jwsaas;
+
+/**
+ * Created by Administrator on 2019\2\12 0012.
+ */
+public enum ServerDataVersionRelationType {
+ //员工信息相关;
+ WORK_LIST("StoreWorker","CY_WORKERDATA"),
+ WORK_EXT_LIST("StoreWorkerExt","CY_WORKERDATA"),
+ WORK_POSROLE_LIST("PosRole","CY_WORKERDATA"),
+ //商品信息相关;
+ PRODUCT_TYPE_LIST("ProductType","CY_PRODUCTDATA"),
+ PRODUCT_LIST("Product","CY_PRODUCTDATA"),
+ PRODUCT_UNIT_LIST("ProductUnit","CY_PRODUCTDATA"),
+ PRODUCT_IMAGE_LIST("ProductImage","CY_PRODUCTDATA"),
+ PRODUCT_SPEC_LIST("ProductSpec","CY_PRODUCTDATA"),
+ PRODUCT_MAKETYPE_LIST("MakeType","CY_PRODUCTDATA"),
+ PRODUCT_MAKEDETAIL_LIST("MakeDetail","CY_PRODUCTDATA"),
+ PRODUCT_SUIT_LIST("ProductSuit","CY_PRODUCTDATA"),
+ PRODUCT_SUITDETAIL_LIST("ProductSuitDetail","CY_PRODUCTDATA"),
+ PRODUCT_KITPLAN_LIST("KitPlan","CY_PRODUCTDATA"),
+ PRODUCT_KITPLANSET_LIST("ProductKitPlan","CY_PRODUCTDATA"),
+ PRODUCT_KDSPLAN_LIST("KdsPlan","CY_PRODUCTDATA"),
+ PRODUCT_KDSPLANSET_LIST("ProductKdsPlan","CY_PRODUCTDATA"),
+ ELEME_MAPPING_DISH_LIST("ElemeCategoryFood","CY_PRODUCTDATA"),
+ MEITUAN_MAPPING_DISH_LIST("MeituanFood","CY_PRODUCTDATA"),
+ PRODUCT_RATIO_LIST("ProductRatio","CY_PRODUCTDATA"),
+ STORE_PRODUCT_BURDEN_LIST("ProductBurden","CY_PRODUCTDATA"),
+ STORE_MAKE_BURDEN_LIST("MakeBurden","CY_PRODUCTDATA"),
+ STORE_PRODUCT_LIST("StoreProduct","CY_PRODUCTDATA"),
+ PRODUCT_TEMPLATE_LIST("ProductTemplate","CY_PRODUCTDATA"),
+ PRODUCT_TEMPLATE_DETAIL_LIST("ProductTemplateDetail","CY_PRODUCTDATA"),
+ PRODUCT_MAKE_TEMPLATE_LIST("ProductMakeTemplate","CY_PRODUCTDATA"),
+ PRODUCT_MAKE_TEMPLATE_DETAIL_LIST("ProductMakeTemplateDetail","CY_PRODUCTDATA"),
+ //付款信息相关;
+ STORE_PAYTYPE_LIST("PayType","CY_PAYDATA"),
+ STORE_PAYMODE_LIST("PayMode","CY_PAYDATA"),
+ STORE_PAYMODESTORE_LIST("PayModeStore","CY_PAYDATA"),
+ STORE_PAY_PARAMETER_LIST("PaymentParameter","CY_PAYDATA"),
+ STORE_RECHARGE_PARAMETER_LIST("RechargeParameter","CY_PAYDATA"),
+ //门店信息相关;
+ STORE_BUSINESSPLAN_LIST("BusinessPlan","CY_STOREDATA"),
+ STORE_BUSINESSPLANDETAIL_LIST("BusinessPlanDetail","CY_STOREDATA"),
+ STORE_TABLEAREA_LIST("StoretableArea","CY_STOREDATA"),
+ STORE_TABLE_LIST("Storetable","CY_STOREDATA"),
+ BRAND_LIST("Brand","CY_STOREDATA"),
+ STORE_LIST("Store","CY_STOREDATA"),
+ STORE_PRINT_IMAGE_LIST("PrintImage","CY_STOREDATA"),
+ STORE_ADVERT_PICTURE_LIST("AdvertPicture","CY_STOREDATA"),
+ STORE_ADVERT_CAPTION_LIST("AdvertCaption","CY_STOREDATA"),
+ STORE_FEE_ITEM_LIST("FeeItem","CY_STOREDATA"),
+ STORE_STORAGE_LIST("StoreStorage","CY_STOREDATA"),
+ STORE_TABLE_TYPE_LIST("StoretableType","CY_STOREDATA"),
+
+ //其他设置信息;运维端俩个
+ POS_SET_PLAN_DOWN("PosSetPlan","CY_OTHERDATA "),
+ //熟客信息;
+ VISITOR_LIST("Visitor","CY_VISITORDATA"),
+ VISITOR_TAG_LIST("VisitorTag","CY_VISITORDATA"),
+ VISITOR_ADDRESS_LIST("VisitorAddress","CY_VISITORDATA")
+ ;
+
+
+ ServerDataVersionRelationType(String mapperName, String dataVersionType) {
+ this.mapperName = mapperName;
+ this.dataVersionType = dataVersionType;
+ }
+
+ private String mapperName;
+
+ private String dataVersionType;
+
+ public String getMapperName() {
+ return mapperName;
+ }
+
+ public void setMapperName(String mapperName) {
+ this.mapperName = mapperName;
+ }
+
+ public String getDataVersionType() {
+ return dataVersionType;
+ }
+
+ public void setDataVersionType(String dataVersionType) {
+ this.dataVersionType = dataVersionType;
+ }
+}
diff --git a/food-api/src/main/java/com/jwsaas/StockTypeEnum.java b/food-api/src/main/java/com/jwsaas/StockTypeEnum.java
new file mode 100644
index 0000000..102def2
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/StockTypeEnum.java
@@ -0,0 +1,44 @@
+package com.jwsaas;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public enum StockTypeEnum {
+ FULL((byte) 1, "置满"), EMPTY((byte) 2, "置空"), CUSTOM((byte) 3, "自定义库存");
+ private static final Map instances = new HashMap();
+
+ static {
+ for (StockTypeEnum stockTypeEnum : StockTypeEnum.values()) {
+ instances.put(stockTypeEnum.getSign(), stockTypeEnum);
+ }
+ }
+
+ private StockTypeEnum(Byte sign, String description) {
+ this.sign = sign;
+ this.description = description;
+ }
+
+ private Byte sign;
+ private String description;
+
+ public Byte getSign() {
+ return sign;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public static StockTypeEnum getSalesEnum(Byte code) {
+ if (instances.containsKey(code)) {
+ return instances.get(code);
+ }
+
+ return null;
+ }
+
+}
\ No newline at end of file
diff --git a/food-api/src/main/java/com/jwsaas/StoreAccountBusType.java b/food-api/src/main/java/com/jwsaas/StoreAccountBusType.java
new file mode 100644
index 0000000..e22d0c5
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/StoreAccountBusType.java
@@ -0,0 +1,42 @@
+package com.jwsaas;
+
+/**
+ * 门店余额账户业务类型
+ */
+public enum StoreAccountBusType {
+
+ RECHARGE("1", "充值"),
+ HANDOVER("2", "交班"),
+ ENCHASHMENT("3", "提现"),
+ CUTPAYMENT("4", "要货扣款"),
+ REFOUND("5", "配送验收差异退款"),
+ EDITCOST("6", "账户调整扣款"),
+ EDITRETURN("7", "账户调整退款"),
+ FIXEDCOST("8", "固定费用扣款"),
+ UNFIXEDCOST("9", "变动费用扣款"),
+ FREEZEASKGOODSMONEY("10","要货款冻结"),
+ UNFREEZEASKGOODSMONEY("11","要货款解冻"),
+ OTHER("99", "其他");
+
+ private StoreAccountBusType(String sign, String description) {
+ this.sign = sign;
+ this.description = description;
+ }
+
+ private String sign;
+ private String description;
+
+ public String getSign() {
+ return sign;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ @Override
+ public String toString() {
+ return super.toString() + "(" + sign + "," + description + ")";
+ }
+
+}
diff --git a/food-api/src/main/java/com/jwsaas/StoreStorageOutTicketType.java b/food-api/src/main/java/com/jwsaas/StoreStorageOutTicketType.java
new file mode 100644
index 0000000..07821d4
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/StoreStorageOutTicketType.java
@@ -0,0 +1,35 @@
+package com.jwsaas;
+
+/**
+ * 门店出库单-出库类型
+ */
+public enum StoreStorageOutTicketType {
+
+ // 1-报废;2-损耗;99-其他;
+ SCRAPPED("1", "报废"),
+ LOSS("2", "损耗"),
+ SHICHI("3", "试吃"),
+ OTHER("99", "其他");
+
+ private StoreStorageOutTicketType(String sign, String description) {
+ this.sign = sign;
+ this.description = description;
+ }
+
+ private String sign;
+ private String description;
+
+ public String getSign() {
+ return sign;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ @Override
+ public String toString() {
+ return super.toString() + "(" + sign + "," + description + ")";
+ }
+
+}
diff --git a/food-api/src/main/java/com/jwsaas/StoreStorageTicketType.java b/food-api/src/main/java/com/jwsaas/StoreStorageTicketType.java
new file mode 100644
index 0000000..957c241
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/StoreStorageTicketType.java
@@ -0,0 +1,35 @@
+package com.jwsaas;
+
+/**
+ * 门店入库单-入库类型
+ */
+public enum StoreStorageTicketType {
+
+ // 1-自采;99-其他
+ PURCHASE("1", "自采"),
+ PRODUCE("2", "生产入库"),
+ OTHER("99", "其他");
+
+ private StoreStorageTicketType(String sign, String description) {
+ this.sign = sign;
+ this.description = description;
+ }
+
+ private String sign;
+ private String description;
+
+ public String getSign() {
+ return sign;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ @Override
+ public String toString() {
+ return super.toString() + "(" + sign + "," + description + ")";
+ }
+
+
+}
diff --git a/food-api/src/main/java/com/jwsaas/SuitType.java b/food-api/src/main/java/com/jwsaas/SuitType.java
new file mode 100644
index 0000000..335ee58
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/SuitType.java
@@ -0,0 +1,32 @@
+package com.jwsaas;
+
+/***
+ * 菜品类型枚举
+ * @author louxutao
+ *
+ */
+public enum SuitType {
+ NORMAL(1, "普通菜"), SUIT(2, "主菜"), SUITDETAIL(3, "明细菜");
+
+ private SuitType(Integer sign, String description) {
+ this.sign = sign;
+ this.description = description;
+ }
+
+ private Integer sign;
+ private String description;
+
+ public Integer getSign() {
+ return sign;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ @Override
+ public String toString() {
+ return super.toString() + "(" + sign + "," + description + ")";
+ }
+
+}
diff --git a/food-api/src/main/java/com/jwsaas/TlData.java b/food-api/src/main/java/com/jwsaas/TlData.java
new file mode 100644
index 0000000..2679c04
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/TlData.java
@@ -0,0 +1,27 @@
+package com.jwsaas;
+
+/**
+ * @Author 通联接口返回JSON字符串 Data
+ * @Date 2023/6/20
+ */
+public class TlData {
+
+ private String customerUserId;
+ private String bizUserId;
+
+ public String getCustomerUserId() {
+ return customerUserId;
+ }
+
+ public void setCustomerUserId(String customerUserId) {
+ this.customerUserId = customerUserId;
+ }
+
+ public String getBizUserId() {
+ return bizUserId;
+ }
+
+ public void setBizUserId(String bizUserId) {
+ this.bizUserId = bizUserId;
+ }
+}
diff --git a/food-api/src/main/java/com/jwsaas/TlReturnMsg.java b/food-api/src/main/java/com/jwsaas/TlReturnMsg.java
new file mode 100644
index 0000000..3d079d9
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/TlReturnMsg.java
@@ -0,0 +1,55 @@
+package com.jwsaas;
+
+/**
+ * @Author 通联接口返回JSON字符串
+ * @Date 2023/6/20
+ * {"code":"10000","data":"{\"customerUserId\":\"test00012\", \"bizUserId\":\"ZHTQY_OUT16872308585067050\"}","msg":"服务调用成功","sign":"c0ed74949c47e2c99e7c7e5b4c0f5fc8","subCode":"OK"}
+ */
+public class TlReturnMsg {
+
+ private String code;
+ private String data;
+ private String msg;
+ private String sign;
+ private String subCode;
+
+ public String getCode() {
+ return code;
+ }
+
+ public void setCode(String code) {
+ this.code = code;
+ }
+
+ public String getData() {
+ return data;
+ }
+
+ public void setData(String data) {
+ this.data = data;
+ }
+
+ public String getMsg() {
+ return msg;
+ }
+
+ public void setMsg(String msg) {
+ this.msg = msg;
+ }
+
+ public String getSign() {
+ return sign;
+ }
+
+ public void setSign(String sign) {
+ this.sign = sign;
+ }
+
+ public String getSubCode() {
+ return subCode;
+ }
+
+ public void setSubCode(String subCode) {
+ this.subCode = subCode;
+ }
+}
diff --git a/food-api/src/main/java/com/jwsaas/cache/CacheKeys.java b/food-api/src/main/java/com/jwsaas/cache/CacheKeys.java
new file mode 100644
index 0000000..bdbb0de
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/cache/CacheKeys.java
@@ -0,0 +1,72 @@
+package com.jwsaas.cache;
+
+/**
+ * 集中管理缓存的Key
+ */
+public enum CacheKeys {
+
+ /* 计量单位相关 */
+ PRODUCT_UNIT_LIST("productUnitList", "计量单位列表", null),
+ PRODUCT_UNIT_MAP("productUnitMap", "计量单位Map", null),
+ /* 门店仓库 */
+ STORE_STORAGE_LIST("storeStorageList", "门店仓库列表", null),
+ STORE_STORAGE_MAP("storeStorageMap", "门店仓库Map", null),
+ /* 商品类别相关 */
+ PRODUCT_TYPE_LIST("productTypeList", "商品类别列表", null),
+ PRODUCT_TYPE_MAP("productTypeMap", "商品类别Map", null),
+ /* 菜品做法分类相关 */
+ MAKE_TYPE_LIST("makeTypeList", "菜品做法分类列表", null),
+ MAKE_TYPE_MAP("makeTypeMap", "菜品做法分类Map", null),
+ /* 品牌相关 */
+ BRAND_LIST("brandList", "品牌列表", null),
+ BRAND_MAP("brandMap", "品牌信息Map", null),
+ /* 门店类型相关 */
+ STORE_TYPE_LIST("storeTypeList", "门店类型列表", null),
+ STORE_TYPE_MAP("storeTypeMap", "门店类型Map", null),
+ /* 门店部门相关 */
+ STORE_DEPARTMENT_LIST("storeDepartmentList", "门店部门列表", null),
+ /* 门店信息相关 */
+ STORE_LIST("storeList", "门店信息列表", null),
+ STORE_MAP("storeMap", "门店信息Map", null),
+ /* 供应商类别相关 */
+ SUPPLIER_TYPE_LIST("supplierTypeList", "供应商类别列表", null),
+ SUPPLIER_TYPE_MAP("supplierTypeMap", "供应商类别Map", null),
+ SUPPLIER_LIST("supplierList", "供应商列表", null),
+ SUPPLIER_MAP("supplierMap", "供应商Map", null),
+ /* 总部库位类型相关 */
+ STORAGE_TYPE_LIST("storageTypeList", "总部库位类型列表", null),
+ STORAGE_TYPE_MAP("storageTypeMap", "总部库位类型Map", null),
+ /* 总部库位相关 */
+ STORAGE_LIST("storageList", "总部库位类型列表", null),
+ STORAGE_MAP("storageMap", "总部库位类型Map", null),
+ /* 付款类型相关 */
+ PAY_TYPE_LIST("payTypeList", "付款类型列表", null),
+ PAY_TYPE_MAP("payTypeMap", "付款类型Map", null),
+ /* 商品库存系数相关 */
+ PRODUCT_RATIO_LIST("productRatioList", "商品库存系数列表", null),
+ /*应用授权表*/
+ YWAPPAUTH_MAP("ywAppAuthMap", "应用授权设置", null),
+ PRODUCT_RATIO_MAP("productRatioMap", "商品库存系数Map", null);
+
+ private String key;// key
+ private String description;// 描述
+ private Object extendInfo;// 扩展信息
+
+ private CacheKeys(String key, String description, Object extendInfo) {
+ this.key = key;
+ this.description = description;
+ this.extendInfo = extendInfo;
+ }
+
+ public String getKey() {
+ return this.key;
+ }
+
+ public String getDescription() {
+ return this.description;
+ }
+
+ public Object getExtendInfo() {
+ return extendInfo;
+ }
+}
diff --git a/food-api/src/main/java/com/jwsaas/cache/CacheService.java b/food-api/src/main/java/com/jwsaas/cache/CacheService.java
new file mode 100644
index 0000000..d1ff5fe
--- /dev/null
+++ b/food-api/src/main/java/com/jwsaas/cache/CacheService.java
@@ -0,0 +1,31 @@
+package com.jwsaas.cache;
+
+import java.io.Serializable;
+import java.util.Collection;
+import java.util.Set;
+
+public interface CacheService extends Serializable {
+
+ void set(String tenantId, String key, Object value, int secondsToExpire) throws Exception;
+
+ Object get(String tenantId, String key) throws Exception;
+
+ Object del(String tenantId, String key) throws Exception;
+
+ Object getQueue(String tenantId, String key) throws Exception;
+
+ Integer getQueueSize(String tenantId, String key) throws Exception;
+
+ void setQueue(String tenantId, String key, Boolean clearFlag, Collection value, int secondsToExpire) throws Exception;
+
+ void setQueue(String tenantId, String key, Object value, int secondsToExpire) throws Exception;
+
+ void clear(String tenantId) throws Exception;
+
+ Set keys(String tenantId) throws Exception;
+
+ int size(String tenantId) throws Exception;
+
+ Collection