提交修改
This commit is contained in:
parent
f55bf8b35b
commit
581d5c0909
@ -9,7 +9,7 @@ import java.util.Date;
|
|||||||
/**
|
/**
|
||||||
*买家地址
|
*买家地址
|
||||||
* @author quyixiao
|
* @author quyixiao
|
||||||
* @since 2025-08-23
|
* @since 2025-10-14
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@ -34,6 +34,7 @@ private static final long serialVersionUID = 1L;
|
|||||||
public final static String buyer_weixin = CLASS_NAME + "buyer_weixin"; // 买家微信
|
public final static String buyer_weixin = CLASS_NAME + "buyer_weixin"; // 买家微信
|
||||||
public final static String buyer_phone = CLASS_NAME + "buyer_phone"; // 买家手机号
|
public final static String buyer_phone = CLASS_NAME + "buyer_phone"; // 买家手机号
|
||||||
public final static String status_ = CLASS_NAME + "status"; // 地址状态 ,delete 已经删除,default 默认,common 普通
|
public final static String status_ = CLASS_NAME + "status"; // 地址状态 ,delete 已经删除,default 默认,common 普通
|
||||||
|
public final static String area_code = CLASS_NAME + "area_code"; // 地址编码
|
||||||
//
|
//
|
||||||
@TableId(value = "id", type = IdType.AUTO)
|
@TableId(value = "id", type = IdType.AUTO)
|
||||||
private Long id;
|
private Long id;
|
||||||
@ -59,10 +60,12 @@ private static final long serialVersionUID = 1L;
|
|||||||
private Long buyerId;
|
private Long buyerId;
|
||||||
//买家微信
|
//买家微信
|
||||||
private String buyerWeixin;
|
private String buyerWeixin;
|
||||||
//买家手机号git
|
//买家手机号
|
||||||
private String buyerPhone;
|
private String buyerPhone;
|
||||||
//地址状态 ,delete 已经删除,default 默认,common 普通
|
//地址状态 ,delete 已经删除,default 默认,common 普通
|
||||||
private String status;
|
private String status;
|
||||||
|
//地址编码
|
||||||
|
private String areaCode;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
@ -273,6 +276,21 @@ private static final long serialVersionUID = 1L;
|
|||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 地址编码
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public String getAreaCode() {
|
||||||
|
return areaCode;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 地址编码
|
||||||
|
* @param areaCode
|
||||||
|
*/
|
||||||
|
public void setAreaCode(String areaCode) {
|
||||||
|
this.areaCode = areaCode;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "VvBuyerAddressEntity{" +
|
return "VvBuyerAddressEntity{" +
|
||||||
@ -290,6 +308,7 @@ private static final long serialVersionUID = 1L;
|
|||||||
",buyerWeixin=" + buyerWeixin +
|
",buyerWeixin=" + buyerWeixin +
|
||||||
",buyerPhone=" + buyerPhone +
|
",buyerPhone=" + buyerPhone +
|
||||||
",status=" + status +
|
",status=" + status +
|
||||||
|
",areaCode=" + areaCode +
|
||||||
"}";
|
"}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -49,7 +49,7 @@ public class MysqlMain_update {
|
|||||||
List<TablesBean> list = new ArrayList<TablesBean>();
|
List<TablesBean> list = new ArrayList<TablesBean>();
|
||||||
|
|
||||||
|
|
||||||
String a = "vv_comment";
|
String a = "vv_buyer_address";
|
||||||
for (String s : a.split(",")) {
|
for (String s : a.split(",")) {
|
||||||
list.add(new TablesBean(s));
|
list.add(new TablesBean(s));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,22 @@
|
|||||||
|
package com.api.test;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.heyu.api.alibaba.request.mm.enums.BuyerAddressEnums;
|
||||||
|
import com.heyu.api.data.entity.vv.VvBuyerAddressEntity;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class VvBuyerAddressTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void VvBuyerAddressTest(){
|
||||||
|
VvBuyerAddressEntity vvBuyerAddressEntity = new VvBuyerAddressEntity();
|
||||||
|
vvBuyerAddressEntity.setBuyerId(2L);
|
||||||
|
vvBuyerAddressEntity.setBuyerName("3w93298");
|
||||||
|
vvBuyerAddressEntity.setBuyerPhone("932983289");
|
||||||
|
vvBuyerAddressEntity.setBuyerWeixin("8932832");
|
||||||
|
vvBuyerAddressEntity.setStatus(BuyerAddressEnums.default_address.getStatus());
|
||||||
|
|
||||||
|
System.out.println(JSON.toJSONString(vvBuyerAddressEntity));
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user