release- 收货地址修改为省市区字符串+adcode

release-2024-04-25
huangyw 3 months ago
parent 007bc3dcf0
commit 484b07f546

@ -33,8 +33,14 @@ public class UserinfoShippingAddressAddDTO implements Serializable {
@ApiModelProperty(value = "区")
String districtName;
@ApiModelProperty(value = "区域编码")
String adcode;
@ApiModelProperty(value = "省编码")
String provinceCode;
@ApiModelProperty(value = "市编码")
String cityCode;
@ApiModelProperty(value = "区编码")
String districtCode;
}

@ -38,7 +38,13 @@ public class UserinfoShippingAddressUpdateDTO implements Serializable {
@ApiModelProperty(value = "区")
String districtName;
@ApiModelProperty(value = "区域编码")
String adcode;
@ApiModelProperty(value = "省编码")
String provinceCode;
@ApiModelProperty(value = "市编码")
String cityCode;
@ApiModelProperty(value = "区编码")
String districtCode;
}

@ -48,7 +48,13 @@ public class UserinfoShippingAddress extends JPABasePojo {
@ApiModelProperty(value = "区")
private String districtName;
@ApiModelProperty(value = "区域编码")
private String adcode;
@ApiModelProperty(value = "省编码")
private String provinceCode;
@ApiModelProperty(value = "市编码")
private String cityCode;
@ApiModelProperty(value = "区编码")
private String districtCode;
}

@ -63,7 +63,9 @@ public class UserinfoShippingAddressService {
qUserinfoShippingAddress.provinceName,
qUserinfoShippingAddress.cityName,
qUserinfoShippingAddress.districtName,
qUserinfoShippingAddress.adcode
qUserinfoShippingAddress.provinceCode,
qUserinfoShippingAddress.cityCode,
qUserinfoShippingAddress.districtCode
)).from(qUserinfoShippingAddress).
where(qUserinfoShippingAddress.userId.eq(user.getUserId()))
.fetch();

@ -36,7 +36,13 @@ public class UserinfoShippingAddressAppVO implements Serializable {
@ApiModelProperty(value = "区")
String districtName;
@ApiModelProperty(value = "区域编码")
String adcode;
@ApiModelProperty(value = "省编码")
String provinceCode;
@ApiModelProperty(value = "市编码")
String cityCode;
@ApiModelProperty(value = "区编码")
String districtCode;
}

@ -17,4 +17,16 @@ alter table tb_userinfo_shipping_address
add district_name varchar(30) null comment '';
alter table tb_userinfo_shipping_address
add adcode varchar(30) null comment '区域码';
add adcode varchar(30) null comment '区域码';
alter table tb_userinfo_shipping_address
drop column adcode;
alter table tb_userinfo_shipping_address
add province_code varchar(10) null comment '省编码';
alter table tb_userinfo_shipping_address
add city_code varchar(10) null comment '市编码';
alter table tb_userinfo_shipping_address
add district_code varchar(10) null comment '区编码';
Loading…
Cancel
Save