提交 f3a11b21 作者: xiaowang

地址管理

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