提交修改

This commit is contained in:
quyixiao 2025-10-14 09:26:38 +08:00
parent f55bf8b35b
commit 581d5c0909
3 changed files with 44 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import java.util.Date;
/**
*买家地址
* @author quyixiao
* @since 2025-08-23
* @since 2025-10-14
*/
@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_phone = CLASS_NAME + "buyer_phone"; // 买家手机号
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)
private Long id;
@ -59,10 +60,12 @@ private static final long serialVersionUID = 1L;
private Long buyerId;
//买家微信
private String buyerWeixin;
//买家手机号git
//买家手机号
private String buyerPhone;
//地址状态 delete 已经删除default 默认common 普通
private String status;
//地址编码
private String areaCode;
/**
*
* @return
@ -273,6 +276,21 @@ private static final long serialVersionUID = 1L;
this.status = status;
}
/**
* 地址编码
* @return
*/
public String getAreaCode() {
return areaCode;
}
/**
* 地址编码
* @param areaCode
*/
public void setAreaCode(String areaCode) {
this.areaCode = areaCode;
}
@Override
public String toString() {
return "VvBuyerAddressEntity{" +
@ -290,6 +308,7 @@ private static final long serialVersionUID = 1L;
",buyerWeixin=" + buyerWeixin +
",buyerPhone=" + buyerPhone +
",status=" + status +
",areaCode=" + areaCode +
"}";
}
}

View File

@ -49,7 +49,7 @@ public class MysqlMain_update {
List<TablesBean> list = new ArrayList<TablesBean>();
String a = "vv_comment";
String a = "vv_buyer_address";
for (String s : a.split(",")) {
list.add(new TablesBean(s));
}

View File

@ -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));
}
}