店铺相关功能
This commit is contained in:
parent
cfd594072d
commit
d8b6f4b3bb
@ -15,6 +15,7 @@ public class ShopBO {
|
|||||||
private String shopSummary;
|
private String shopSummary;
|
||||||
private Double shopStar;
|
private Double shopStar;
|
||||||
private String shopLogo;
|
private String shopLogo;
|
||||||
|
private Integer shopTemplateId;
|
||||||
private Double userEvaluate;
|
private Double userEvaluate;
|
||||||
private Integer isOpen;
|
private Integer isOpen;
|
||||||
private String openDate;
|
private String openDate;
|
||||||
@ -66,6 +67,14 @@ public class ShopBO {
|
|||||||
this.shopLogo = shopLogo;
|
this.shopLogo = shopLogo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getShopTemplateId() {
|
||||||
|
return shopTemplateId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShopTemplateId(Integer shopTemplateId) {
|
||||||
|
this.shopTemplateId = shopTemplateId;
|
||||||
|
}
|
||||||
|
|
||||||
public Double getUserEvaluate() {
|
public Double getUserEvaluate() {
|
||||||
return userEvaluate == null ? 0D : userEvaluate;
|
return userEvaluate == null ? 0D : userEvaluate;
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,11 @@ public class ShopDTO {
|
|||||||
private Double shopStar;
|
private Double shopStar;
|
||||||
@ApiModelProperty(name = "shopLogo", value = "店铺LOGO文件ID")
|
@ApiModelProperty(name = "shopLogo", value = "店铺LOGO文件ID")
|
||||||
private String shopLogo;
|
private String shopLogo;
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "shopTemplateId", value = "模板ID")
|
||||||
|
private Integer shopTemplateId;
|
||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(name = "userEvaluate", value = "用户评价,分数,满分10分,通过用户对商品的满意度计算")
|
@ApiModelProperty(name = "userEvaluate", value = "用户评价,分数,满分10分,通过用户对商品的满意度计算")
|
||||||
private Double userEvaluate;
|
private Double userEvaluate;
|
||||||
@ApiModelProperty(name = "isOpen", value = "是否营业 0:未开业,1:开业中")
|
@ApiModelProperty(name = "isOpen", value = "是否营业 0:未开业,1:开业中")
|
||||||
@ -90,6 +95,14 @@ public class ShopDTO {
|
|||||||
this.shopLogo = shopLogo;
|
this.shopLogo = shopLogo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getShopTemplateId() {
|
||||||
|
return shopTemplateId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShopTemplateId(Integer shopTemplateId) {
|
||||||
|
this.shopTemplateId = shopTemplateId;
|
||||||
|
}
|
||||||
|
|
||||||
public Double getUserEvaluate() {
|
public Double getUserEvaluate() {
|
||||||
return userEvaluate == null ? 0D : userEvaluate;
|
return userEvaluate == null ? 0D : userEvaluate;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ public class ShopPO {
|
|||||||
private String shopSummary;
|
private String shopSummary;
|
||||||
private Double shopStar;
|
private Double shopStar;
|
||||||
private String shopLogo;
|
private String shopLogo;
|
||||||
|
private Integer shopTemplateId;
|
||||||
private Double userEvaluate;
|
private Double userEvaluate;
|
||||||
private Integer isOpen;
|
private Integer isOpen;
|
||||||
private String openDate;
|
private String openDate;
|
||||||
@ -66,6 +67,14 @@ public class ShopPO {
|
|||||||
this.shopLogo = shopLogo;
|
this.shopLogo = shopLogo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getShopTemplateId() {
|
||||||
|
return shopTemplateId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShopTemplateId(Integer shopTemplateId) {
|
||||||
|
this.shopTemplateId = shopTemplateId;
|
||||||
|
}
|
||||||
|
|
||||||
public Double getUserEvaluate() {
|
public Double getUserEvaluate() {
|
||||||
return userEvaluate == null ? 0D : userEvaluate;
|
return userEvaluate == null ? 0D : userEvaluate;
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,11 @@ public class ShopVO {
|
|||||||
@ApiModelProperty(name = "shopLogo", value = "店铺LOGO文件ID")
|
@ApiModelProperty(name = "shopLogo", value = "店铺LOGO文件ID")
|
||||||
@CheckEmptyAnnotation(name = "店铺LOGO文件ID", verifyType = "string")
|
@CheckEmptyAnnotation(name = "店铺LOGO文件ID", verifyType = "string")
|
||||||
private String shopLogo;
|
private String shopLogo;
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "shopTemplateId", value = "模板ID")
|
||||||
|
@CheckNumberAnnotation(name = "模板ID")
|
||||||
|
private Integer shopTemplateId;
|
||||||
|
|
||||||
@ApiModelProperty(name = "isOpen", value = "是否营业0:未开业,1:开业中")
|
@ApiModelProperty(name = "isOpen", value = "是否营业0:未开业,1:开业中")
|
||||||
@CheckNumberAnnotation(name = "是否营业0:未开业,1:开业中")
|
@CheckNumberAnnotation(name = "是否营业0:未开业,1:开业中")
|
||||||
private Integer isOpen;
|
private Integer isOpen;
|
||||||
@ -80,6 +85,13 @@ public class ShopVO {
|
|||||||
this.shopLogo = shopLogo;
|
this.shopLogo = shopLogo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getShopTemplateId() {
|
||||||
|
return shopTemplateId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShopTemplateId(Integer shopTemplateId) {
|
||||||
|
this.shopTemplateId = shopTemplateId;
|
||||||
|
}
|
||||||
|
|
||||||
public Integer getIsOpen() {
|
public Integer getIsOpen() {
|
||||||
return isOpen == null ? 0 : isOpen;
|
return isOpen == null ? 0 : isOpen;
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
<result column="shop_address" property="shopAddress"/>
|
<result column="shop_address" property="shopAddress"/>
|
||||||
<result column="shop_star" property="shopStar"/>
|
<result column="shop_star" property="shopStar"/>
|
||||||
<result column="shop_logo" property="shopLogo"/>
|
<result column="shop_logo" property="shopLogo"/>
|
||||||
|
<result column="shop_template_id" property="shopTemplateId"/>
|
||||||
|
|
||||||
<result column="user_evaluate" property="userEvaluate"/>
|
<result column="user_evaluate" property="userEvaluate"/>
|
||||||
<result column="is_open" property="isOpen"/>
|
<result column="is_open" property="isOpen"/>
|
||||||
<result column="open_date" property="openDate"/>
|
<result column="open_date" property="openDate"/>
|
||||||
@ -25,6 +27,7 @@
|
|||||||
<result column="shop_summary" property="shopSummary"/>
|
<result column="shop_summary" property="shopSummary"/>
|
||||||
<result column="shop_star" property="shopStar"/>
|
<result column="shop_star" property="shopStar"/>
|
||||||
<result column="shop_logo" property="shopLogo"/>
|
<result column="shop_logo" property="shopLogo"/>
|
||||||
|
<result column="shop_template_id" property="shopTemplateId"/>
|
||||||
<result column="user_evaluate" property="userEvaluate"/>
|
<result column="user_evaluate" property="userEvaluate"/>
|
||||||
<result column="is_open" property="isOpen"/>
|
<result column="is_open" property="isOpen"/>
|
||||||
<result column="open_date" property="openDate"/>
|
<result column="open_date" property="openDate"/>
|
||||||
@ -43,6 +46,7 @@
|
|||||||
<result column="shop_summary" property="shopSummary"/>
|
<result column="shop_summary" property="shopSummary"/>
|
||||||
<result column="shop_star" property="shopStar"/>
|
<result column="shop_star" property="shopStar"/>
|
||||||
<result column="shop_logo" property="shopLogo"/>
|
<result column="shop_logo" property="shopLogo"/>
|
||||||
|
<result column="shop_template_id" property="shopTemplateId"/>
|
||||||
<result column="user_evaluate" property="userEvaluate"/>
|
<result column="user_evaluate" property="userEvaluate"/>
|
||||||
<result column="is_open" property="isOpen"/>
|
<result column="is_open" property="isOpen"/>
|
||||||
<result column="open_date" property="openDate"/>
|
<result column="open_date" property="openDate"/>
|
||||||
@ -64,6 +68,7 @@
|
|||||||
shop_address,
|
shop_address,
|
||||||
shop_star,
|
shop_star,
|
||||||
shop_logo,
|
shop_logo,
|
||||||
|
shop_template_id,
|
||||||
user_evaluate,
|
user_evaluate,
|
||||||
is_open,
|
is_open,
|
||||||
open_date,
|
open_date,
|
||||||
@ -81,6 +86,7 @@
|
|||||||
#{shopAddress},
|
#{shopAddress},
|
||||||
#{shopStar},
|
#{shopStar},
|
||||||
#{shopLogo},
|
#{shopLogo},
|
||||||
|
#{shopTemplateId},
|
||||||
#{userEvaluate},
|
#{userEvaluate},
|
||||||
#{isOpen},
|
#{isOpen},
|
||||||
#{openDate},
|
#{openDate},
|
||||||
@ -143,6 +149,9 @@
|
|||||||
<if test="shopLogo != null and shopLogo != ''">
|
<if test="shopLogo != null and shopLogo != ''">
|
||||||
shop_logo = #{shopLogo},
|
shop_logo = #{shopLogo},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="shopTemplateId != null and shopTemplateId != ''">
|
||||||
|
shop_template_id = #{shopTemplateId},
|
||||||
|
</if>
|
||||||
<if test="userEvaluate != null">
|
<if test="userEvaluate != null">
|
||||||
user_evaluate = #{userEvaluate},
|
user_evaluate = #{userEvaluate},
|
||||||
</if>
|
</if>
|
||||||
@ -183,6 +192,7 @@
|
|||||||
t1.shop_address,
|
t1.shop_address,
|
||||||
t1.shop_star,
|
t1.shop_star,
|
||||||
t1.shop_logo,
|
t1.shop_logo,
|
||||||
|
t1.shop_template_id,
|
||||||
t1.user_evaluate,
|
t1.user_evaluate,
|
||||||
t1.is_open,
|
t1.is_open,
|
||||||
t1.open_date,
|
t1.open_date,
|
||||||
@ -207,6 +217,7 @@
|
|||||||
t1.shop_summary,
|
t1.shop_summary,
|
||||||
t1.shop_star,
|
t1.shop_star,
|
||||||
t1.shop_logo,
|
t1.shop_logo,
|
||||||
|
t1.shop_template_id,
|
||||||
t1.user_evaluate,
|
t1.user_evaluate,
|
||||||
t1.audit_result,
|
t1.audit_result,
|
||||||
t1.is_open,
|
t1.is_open,
|
||||||
@ -236,6 +247,7 @@
|
|||||||
t1.shop_summary,
|
t1.shop_summary,
|
||||||
t1.shop_star,
|
t1.shop_star,
|
||||||
t1.shop_logo,
|
t1.shop_logo,
|
||||||
|
t1.shop_template_id,
|
||||||
t1.user_evaluate,
|
t1.user_evaluate,
|
||||||
t1.is_open,
|
t1.is_open,
|
||||||
t1.open_date,
|
t1.open_date,
|
||||||
@ -264,6 +276,7 @@
|
|||||||
t1.shop_summary,
|
t1.shop_summary,
|
||||||
t1.shop_star,
|
t1.shop_star,
|
||||||
t1.shop_logo,
|
t1.shop_logo,
|
||||||
|
t1.shop_template_id,
|
||||||
t1.user_evaluate,
|
t1.user_evaluate,
|
||||||
t1.is_open,
|
t1.is_open,
|
||||||
t1.open_date,
|
t1.open_date,
|
||||||
@ -277,7 +290,7 @@
|
|||||||
t1.is_delete = 0
|
t1.is_delete = 0
|
||||||
<if test="keywords != null and keywords != ''">
|
<if test="keywords != null and keywords != ''">
|
||||||
AND (
|
AND (
|
||||||
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
t1.shop_name LIKE CONCAT('%', #{keywords}, '%')
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="startTime != null and startTime != ''">
|
<if test="startTime != null and startTime != ''">
|
||||||
@ -303,6 +316,7 @@
|
|||||||
t1.shop_summary,
|
t1.shop_summary,
|
||||||
t1.shop_star,
|
t1.shop_star,
|
||||||
t1.shop_logo,
|
t1.shop_logo,
|
||||||
|
t1.shop_template_id,
|
||||||
t1.user_evaluate,
|
t1.user_evaluate,
|
||||||
t1.is_open,
|
t1.is_open,
|
||||||
t1.open_date,
|
t1.open_date,
|
||||||
@ -348,6 +362,7 @@
|
|||||||
t1.shop_summary,
|
t1.shop_summary,
|
||||||
t1.shop_star,
|
t1.shop_star,
|
||||||
t1.shop_logo,
|
t1.shop_logo,
|
||||||
|
t1.shop_template_id,
|
||||||
t1.user_evaluate,
|
t1.user_evaluate,
|
||||||
t1.is_open,
|
t1.is_open,
|
||||||
t1.open_date,
|
t1.open_date,
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
|
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
|
||||||
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
|
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
|
||||||
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
|
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
|
||||||
|
<link rel="stylesheet" type="text/css" href="assets/js/vendor/viewer/viewer.min.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="layui-fluid layui-anim layui-anim-fadein">
|
<div class="layui-fluid layui-anim layui-anim-fadein">
|
||||||
@ -21,10 +22,10 @@
|
|||||||
<input type="text" id="keywords" class="layui-input search-item" placeholder="输入关键字">
|
<input type="text" id="keywords" class="layui-input search-item" placeholder="输入关键字">
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<input type="text" id="startTime" class="layui-input search-item" placeholder="开始时间" readonly>
|
<input type="text" id="startTime" class="layui-input search-item" placeholder="注册开始时间" readonly>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<input type="text" id="endTime" class="layui-input search-item" placeholder="结束时间" readonly>
|
<input type="text" id="endTime" class="layui-input search-item" placeholder="注册结束时间" readonly>
|
||||||
</div>
|
</div>
|
||||||
<button type="button" id="search" class="layui-btn layui-btn-sm">
|
<button type="button" id="search" class="layui-btn layui-btn-sm">
|
||||||
<i class="fa fa-lg fa-search"></i> 搜索
|
<i class="fa fa-lg fa-search"></i> 搜索
|
||||||
@ -81,7 +82,12 @@
|
|||||||
{field: 'shopLogo', width: 180, title: '店铺LOGO', align:'center',
|
{field: 'shopLogo', width: 180, title: '店铺LOGO', align:'center',
|
||||||
templet: function(row) {
|
templet: function(row) {
|
||||||
var rowData = row[this.field];
|
var rowData = row[this.field];
|
||||||
return '<div class="imgShow"><img style="height: 30px;width: 30px;" src="route/file/download/true/'+rowData+'"></div>';
|
var value='<div id="imgShow'+row.shopId+'"><img style="height: 30px;width: 30px;" src="route/file/download/true/'+rowData+'"></div>';
|
||||||
|
setTimeout(function() {
|
||||||
|
new Viewer(document.getElementById('imgShow'+ row.shopId));
|
||||||
|
}, 50);
|
||||||
|
return value;
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{field: 'shopName', width: 180, title: '店铺名称', align:'center',
|
{field: 'shopName', width: 180, title: '店铺名称', align:'center',
|
||||||
|
Loading…
Reference in New Issue
Block a user