release: 门店新增简介和code字段

release-2024-04-25
huangyw 3 months ago
parent 96548225a2
commit 5b8c977f3e

@ -83,4 +83,13 @@ public class Store extends JPABasePojo {
@Column(name = "visit_count")
@ApiModelProperty(value = "门店访问量")
private Integer visitCount;
@Column(name = "introduction")
@ApiModelProperty(value = "简介")
private String introduction;
@Column(name = "code")
@ApiModelProperty(value = "编码")
private String code;
}

@ -118,7 +118,9 @@ public class StoreService {
qStore.openingHours,
qStore.background,
qStore.description,
qStore.visitCount
qStore.visitCount,
qStore.introduction,
qStore.code
)).from(qStore)
.where(
(qStore.id.eq(id))
@ -154,7 +156,9 @@ public class StoreService {
qStore.description,
qStore.createTime,
qStore.status,
qStore.visitCount
qStore.visitCount,
qStore.introduction,
qStore.code
)).from(qStore)
.where(booleanBuilder)
.orderBy(qStore.createTime.desc())

@ -72,10 +72,16 @@ public class StoreAppVO implements Serializable {
@ApiModelProperty(value = "门店访问量")
private Integer visitCount;
@ApiModelProperty(value = "简介")
private String introduction;
@ApiModelProperty(value = "编码")
private String code;
public StoreAppVO() {
}
public StoreAppVO(String id, String name, Integer regionId, String address, String lng, String lat, String contact, String phone, String tel, String openingHours, String background, String description, Integer visitCount) {
public StoreAppVO(String id, String name, Integer regionId, String address, String lng, String lat, String contact, String phone, String tel, String openingHours, String background, String description, Region region, Double distance, Integer visitCount, String introduction, String code) {
this.id = id;
this.name = name;
this.regionId = regionId;
@ -88,6 +94,10 @@ public class StoreAppVO implements Serializable {
this.openingHours = openingHours;
this.background = background;
this.description = description;
this.region = region;
this.distance = distance;
this.visitCount = visitCount;
this.introduction = introduction;
this.code = code;
}
}

@ -77,13 +77,19 @@ public class StorePCVO implements Serializable {
@ApiModelProperty(value = "昵称")
String contactNickName;
@ApiModelProperty(value = "简介")
private String introduction;
@ApiModelProperty(value = "编码")
private String code;
@Transient
Region region;
public StorePCVO() {
}
public StorePCVO(String id, String name, Integer regionId, String address, String lng, String lat, String contact, String phone, String tel, String openingHours, String background, String description, LocalDateTime createTime, Integer status, Integer visitCount) {
public StorePCVO(String id, String name, Integer regionId, String address, String lng, String lat, String contact, String phone, String tel, String openingHours, String background, String description, LocalDateTime createTime, Integer status, Integer visitCount, String introduction, String code) {
this.id = id;
this.name = name;
this.regionId = regionId;
@ -99,5 +105,7 @@ public class StorePCVO implements Serializable {
this.createTime = createTime;
this.status = status;
this.visitCount = visitCount;
this.introduction = introduction;
this.code = code;
}
}

@ -0,0 +1,6 @@
alter table tb_store
add introduction varchar(500) null comment '简介';
alter table tb_store
add code varchar(20) null comment '编码';
Loading…
Cancel
Save