提交 f3a11b21 作者: xiaowang

地址管理

上级 e8401648
...@@ -62,6 +62,9 @@ public class UserAddressDO implements Serializable { ...@@ -62,6 +62,9 @@ public class UserAddressDO implements Serializable {
@ApiModelProperty(value = "标识;0是后台管理 100客户端 小程序") @ApiModelProperty(value = "标识;0是后台管理 100客户端 小程序")
private Integer flag; private Integer flag;
@ApiModelProperty(value = "市code编码")
private String districtCode;
public UserAddressDO(Integer userAccountId, Integer type,Integer flag) { public UserAddressDO(Integer userAccountId, Integer type,Integer flag) {
this.userAccountId = userAccountId; this.userAccountId = userAccountId;
this.type = type; this.type = type;
......
...@@ -39,4 +39,8 @@ public class UserAddressDTO implements Serializable { ...@@ -39,4 +39,8 @@ public class UserAddressDTO implements Serializable {
@ApiModelProperty(value = "使用类型;0默认,1普通") @ApiModelProperty(value = "使用类型;0默认,1普通")
private Integer type; private Integer type;
@ApiModelProperty(value = "市code编码")
private String districtCode;
} }
...@@ -53,4 +53,7 @@ public class UserAddressVO implements Serializable { ...@@ -53,4 +53,7 @@ public class UserAddressVO implements Serializable {
@ApiModelProperty(value = "使用类型;0默认,1普通") @ApiModelProperty(value = "使用类型;0默认,1普通")
@NotNull(message = "类型不能为空",groups = {Insert.class}) @NotNull(message = "类型不能为空",groups = {Insert.class})
private Integer type; private Integer type;
@ApiModelProperty(value = "市code编码")
private String districtCode;
} }
...@@ -17,13 +17,13 @@ ...@@ -17,13 +17,13 @@
<!-- 基本字段 --> <!-- 基本字段 -->
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id,user_account_id,take_name,take_phone,take_region,take_address,`type`,created_time,updated_time,flag id,user_account_id,take_name,take_phone,take_region,take_address,`type`,created_time,updated_time,flag,district_code
</sql> </sql>
<!-- 新增所有列 --> <!-- 新增所有列 -->
<insert id="insert" keyProperty="id" useGeneratedKeys="true" parameterType="com.mmc.oms.entity.mall.UserAddressDO"> <insert id="insert" keyProperty="id" useGeneratedKeys="true" parameterType="com.mmc.oms.entity.mall.UserAddressDO">
insert into user_address(user_account_id, take_name, take_phone, take_region, take_address,`type`,flag) insert into user_address(user_account_id, take_name, take_phone, take_region, take_address,`type`,flag,district_code)
values (#{userAccountId}, #{takeName}, #{takePhone}, #{takeRegion}, #{takeAddress},#{type},#{flag}) values (#{userAccountId}, #{takeName}, #{takePhone}, #{takeRegion}, #{takeAddress},#{type},#{flag},#{districtCode})
</insert> </insert>
<!-- 通过主键修改数据 --> <!-- 通过主键修改数据 -->
...@@ -51,6 +51,9 @@ ...@@ -51,6 +51,9 @@
<if test="isDeleted != null"> <if test="isDeleted != null">
is_deleted = #{isDeleted}, is_deleted = #{isDeleted},
</if> </if>
<if test="districtCode != null">
district_code = #{districtCode}
</if>
</set> </set>
<where> <where>
<if test="id !=null"> <if test="id !=null">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论