diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisCustomerAddress.java b/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisCustomerAddress.java index 03b16101f..e1ca8a204 100644 --- a/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisCustomerAddress.java +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisCustomerAddress.java @@ -1,10 +1,10 @@ -/** +/** * @Project: emis * @Title: EmisCustomerAddress.java * @author linfso - * @date 2024-03-01 04:47:51 + * @date 2024-03-07 11:24:07 * @Copyright: ShangHai Duta 2022 All rights reserved. - * @version v1.0 + * @version v1.0 * @Description:

客户收寄件地址 实体类

*/ @@ -17,6 +17,7 @@ import com.xdadan.erp.common.annotation.Excel; import com.xdadan.erp.common.core.domain.BaseEntity; import com.xdadan.erp.common.core.domain.TreeEntity; import java.io.Serializable; +import java.math.BigDecimal; import java.util.Date; import lombok.Data; @@ -25,9 +26,9 @@ import lombok.Data; * @ClassName EmisCustomerAddress * @Description 客户收寄件地址 * @author linfso - * @date 2024-03-01 04:47:51 + * @date 2024-03-07 11:24:07 */ - @Data +@Data public class EmisCustomerAddress extends BaseEntity { private static final long serialVersionUID = 1L; @@ -36,6 +37,10 @@ public class EmisCustomerAddress extends BaseEntity private Long id; /* 客户user_id */ private Long userId; + /* 客户编码 */ + private String customerCode; + /* 客户名称 */ + private String shortName; /* 别名 */ private String alias; /* 地址类型 1-收 2-寄 */ diff --git a/emis-biz/src/main/resources/mapper/EmisCustomerAddressMapper.xml b/emis-biz/src/main/resources/mapper/EmisCustomerAddressMapper.xml index 306001b5d..a3a923e21 100644 --- a/emis-biz/src/main/resources/mapper/EmisCustomerAddressMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisCustomerAddressMapper.xml @@ -1,12 +1,14 @@ + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + + + @@ -31,14 +33,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select id, user_id, alias, address_type, province, city, district, town, address, post_code, name, phone, country, email, company, bl_default_flag, order_num, del_flag, create_by, create_time, update_by, update_time, remark from emis_customer_address + select id, user_id, customer_code, short_name, alias, address_type, province, city, district, town, address, post_code, name, phone, country, email, company, bl_default_flag, order_num, del_flag, create_by, create_time, update_by, update_time, remark from emis_customer_address - + - + insert into emis_customer_address id, user_id, + customer_code, + short_name, alias, address_type, province, @@ -96,10 +102,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update_by, update_time, remark, - + #{id}, #{userId}, + #{customerCode}, + #{shortName}, #{alias}, #{addressType}, #{province}, @@ -121,13 +129,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{updateBy}, #{updateTime}, #{remark}, - + update emis_customer_address user_id = #{userId}, + customer_code = #{customerCode}, + short_name = #{shortName}, alias = #{alias}, address_type = #{addressType}, province = #{province}, @@ -158,7 +168,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - delete from emis_customer_address where id in + delete from emis_customer_address where id in #{id}