diff --git a/src/main/java/cn/com/tenlion/pojo/bos/shop/ShopBO.java b/src/main/java/cn/com/tenlion/pojo/bos/shop/ShopBO.java
index 5b207bb..e5384d4 100644
--- a/src/main/java/cn/com/tenlion/pojo/bos/shop/ShopBO.java
+++ b/src/main/java/cn/com/tenlion/pojo/bos/shop/ShopBO.java
@@ -15,6 +15,7 @@ public class ShopBO {
private String shopSummary;
private Double shopStar;
private String shopLogo;
+ private Integer shopTemplateId;
private Double userEvaluate;
private Integer isOpen;
private String openDate;
@@ -66,6 +67,14 @@ public class ShopBO {
this.shopLogo = shopLogo;
}
+ public Integer getShopTemplateId() {
+ return shopTemplateId;
+ }
+
+ public void setShopTemplateId(Integer shopTemplateId) {
+ this.shopTemplateId = shopTemplateId;
+ }
+
public Double getUserEvaluate() {
return userEvaluate == null ? 0D : userEvaluate;
}
diff --git a/src/main/java/cn/com/tenlion/pojo/dtos/shop/ShopDTO.java b/src/main/java/cn/com/tenlion/pojo/dtos/shop/ShopDTO.java
index 6783244..583e0a4 100644
--- a/src/main/java/cn/com/tenlion/pojo/dtos/shop/ShopDTO.java
+++ b/src/main/java/cn/com/tenlion/pojo/dtos/shop/ShopDTO.java
@@ -26,6 +26,11 @@ public class ShopDTO {
private Double shopStar;
@ApiModelProperty(name = "shopLogo", value = "店铺LOGO文件ID")
private String shopLogo;
+
+ @ApiModelProperty(name = "shopTemplateId", value = "模板ID")
+ private Integer shopTemplateId;
+
+
@ApiModelProperty(name = "userEvaluate", value = "用户评价,分数,满分10分,通过用户对商品的满意度计算")
private Double userEvaluate;
@ApiModelProperty(name = "isOpen", value = "是否营业 0:未开业,1:开业中")
@@ -90,6 +95,14 @@ public class ShopDTO {
this.shopLogo = shopLogo;
}
+ public Integer getShopTemplateId() {
+ return shopTemplateId;
+ }
+
+ public void setShopTemplateId(Integer shopTemplateId) {
+ this.shopTemplateId = shopTemplateId;
+ }
+
public Double getUserEvaluate() {
return userEvaluate == null ? 0D : userEvaluate;
}
diff --git a/src/main/java/cn/com/tenlion/pojo/pos/shop/ShopPO.java b/src/main/java/cn/com/tenlion/pojo/pos/shop/ShopPO.java
index 85e3d70..61404be 100644
--- a/src/main/java/cn/com/tenlion/pojo/pos/shop/ShopPO.java
+++ b/src/main/java/cn/com/tenlion/pojo/pos/shop/ShopPO.java
@@ -15,6 +15,7 @@ public class ShopPO {
private String shopSummary;
private Double shopStar;
private String shopLogo;
+ private Integer shopTemplateId;
private Double userEvaluate;
private Integer isOpen;
private String openDate;
@@ -66,6 +67,14 @@ public class ShopPO {
this.shopLogo = shopLogo;
}
+ public Integer getShopTemplateId() {
+ return shopTemplateId;
+ }
+
+ public void setShopTemplateId(Integer shopTemplateId) {
+ this.shopTemplateId = shopTemplateId;
+ }
+
public Double getUserEvaluate() {
return userEvaluate == null ? 0D : userEvaluate;
}
diff --git a/src/main/java/cn/com/tenlion/pojo/vos/shop/ShopVO.java b/src/main/java/cn/com/tenlion/pojo/vos/shop/ShopVO.java
index 64e2372..1fd58bc 100644
--- a/src/main/java/cn/com/tenlion/pojo/vos/shop/ShopVO.java
+++ b/src/main/java/cn/com/tenlion/pojo/vos/shop/ShopVO.java
@@ -30,6 +30,11 @@ public class ShopVO {
@ApiModelProperty(name = "shopLogo", value = "店铺LOGO文件ID")
@CheckEmptyAnnotation(name = "店铺LOGO文件ID", verifyType = "string")
private String shopLogo;
+
+ @ApiModelProperty(name = "shopTemplateId", value = "模板ID")
+ @CheckNumberAnnotation(name = "模板ID")
+ private Integer shopTemplateId;
+
@ApiModelProperty(name = "isOpen", value = "是否营业0:未开业,1:开业中")
@CheckNumberAnnotation(name = "是否营业0:未开业,1:开业中")
private Integer isOpen;
@@ -80,6 +85,13 @@ public class ShopVO {
this.shopLogo = shopLogo;
}
+ public Integer getShopTemplateId() {
+ return shopTemplateId;
+ }
+
+ public void setShopTemplateId(Integer shopTemplateId) {
+ this.shopTemplateId = shopTemplateId;
+ }
public Integer getIsOpen() {
return isOpen == null ? 0 : isOpen;
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index a70e400..acbcb91 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,11 +1,6 @@
server:
-<<<<<<< HEAD
- port: 8090
- url: http://127.0.0.1:8090/businesscard
-=======
- port: 8088
- url: http://192.168.0.111:8088/businesscard
->>>>>>> 5a94052e7f98f2f26229a8ea58ceffc20b2b0ed6
+ port: 8080
+ url: http://127.0.0.1:8080/businesscard
system-title: 名片管理系统
system-sub-title: 名片系统
servlet:
@@ -34,11 +29,7 @@ spring:
db-type: mysql
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
-<<<<<<< HEAD
- password: admin
-=======
password: 123456
->>>>>>> 5a94052e7f98f2f26229a8ea58ceffc20b2b0ed6
initial-size: 2
min-idle: 2
max-active: 10
diff --git a/src/main/resources/mybatis/mapper/shop/shop-mapper.xml b/src/main/resources/mybatis/mapper/shop/shop-mapper.xml
index 0b035e8..8821d56 100644
--- a/src/main/resources/mybatis/mapper/shop/shop-mapper.xml
+++ b/src/main/resources/mybatis/mapper/shop/shop-mapper.xml
@@ -9,6 +9,8 @@
+
+
@@ -25,6 +27,7 @@
+
@@ -43,6 +46,7 @@
+
@@ -64,6 +68,7 @@
shop_address,
shop_star,
shop_logo,
+ shop_template_id,
user_evaluate,
is_open,
open_date,
@@ -81,6 +86,7 @@
#{shopAddress},
#{shopStar},
#{shopLogo},
+ #{shopTemplateId},
#{userEvaluate},
#{isOpen},
#{openDate},
@@ -143,6 +149,9 @@
shop_logo = #{shopLogo},
+
+ shop_template_id = #{shopTemplateId},
+
user_evaluate = #{userEvaluate},
@@ -183,6 +192,7 @@
t1.shop_address,
t1.shop_star,
t1.shop_logo,
+ t1.shop_template_id,
t1.user_evaluate,
t1.is_open,
t1.open_date,
@@ -207,6 +217,7 @@
t1.shop_summary,
t1.shop_star,
t1.shop_logo,
+ t1.shop_template_id,
t1.user_evaluate,
t1.audit_result,
t1.is_open,
@@ -236,6 +247,7 @@
t1.shop_summary,
t1.shop_star,
t1.shop_logo,
+ t1.shop_template_id,
t1.user_evaluate,
t1.is_open,
t1.open_date,
@@ -264,6 +276,7 @@
t1.shop_summary,
t1.shop_star,
t1.shop_logo,
+ t1.shop_template_id,
t1.user_evaluate,
t1.is_open,
t1.open_date,
@@ -277,7 +290,7 @@
t1.is_delete = 0
AND (
- t1.id LIKE CONCAT('%', #{keywords}, '%')
+ t1.shop_name LIKE CONCAT('%', #{keywords}, '%')
)
@@ -303,6 +316,7 @@
t1.shop_summary,
t1.shop_star,
t1.shop_logo,
+ t1.shop_template_id,
t1.user_evaluate,
t1.is_open,
t1.open_date,
@@ -348,6 +362,7 @@
t1.shop_summary,
t1.shop_star,
t1.shop_logo,
+ t1.shop_template_id,
t1.user_evaluate,
t1.is_open,
t1.open_date,
diff --git a/src/main/resources/static/route/shop/list.html b/src/main/resources/static/route/shop/list.html
index 8cc1ad4..6d76081 100644
--- a/src/main/resources/static/route/shop/list.html
+++ b/src/main/resources/static/route/shop/list.html
@@ -9,6 +9,7 @@
+
@@ -21,10 +22,10 @@
-
+
-
+