用户地址
This commit is contained in:
parent
8396ce9cb6
commit
cfede26a22
|
|
@ -54,33 +54,8 @@ public class UserAddr extends BaseEntity {
|
|||
@ApiModelProperty(value = "地址全称")
|
||||
private String addrFullName;
|
||||
|
||||
/** openid */
|
||||
@Excel(name = "openid")
|
||||
@ApiModelProperty(value = "openid")
|
||||
private String openid;
|
||||
|
||||
/** 来源类型 1-钉钉 2-微信 3-小程序 */
|
||||
@Excel(name = "来源类型 1-钉钉 2-微信 3-小程序")
|
||||
@ApiModelProperty(value = "来源类型 1-钉钉 2-微信 3-小程序")
|
||||
private Long sourceType;
|
||||
|
||||
/** 是否默认 1-是,2-否 */
|
||||
@Excel(name = "是否默认 1-是,2-否")
|
||||
@ApiModelProperty(value = "是否默认 1-是,2-否")
|
||||
private Long ifDefault;
|
||||
|
||||
/** 乐观锁 */
|
||||
@Excel(name = "乐观锁")
|
||||
@ApiModelProperty(value = "乐观锁")
|
||||
private Long revision;
|
||||
|
||||
/** 位置信息id */
|
||||
@Excel(name = "位置信息id")
|
||||
@ApiModelProperty(value = "位置信息id")
|
||||
private Long placeId;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
private String delFlag;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,20 +11,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<result property="areaCode" column="area_code" />
|
||||
<result property="detailAddr" column="detail_addr" />
|
||||
<result property="addrFullName" column="addr_full_name" />
|
||||
<result property="openid" column="openid" />
|
||||
<result property="sourceType" column="source_type" />
|
||||
<result property="ifDefault" column="if_default" />
|
||||
<result property="revision" column="revision" />
|
||||
<result property="placeId" column="place_id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectUserAddrVo">
|
||||
select user_id, addr_id, contact_name, mobile, area_code, detail_addr, addr_full_name, openid, source_type, if_default, revision, place_id, create_by, create_time, update_by, update_time, del_flag from user_addr
|
||||
select user_id, addr_id, contact_name, mobile, area_code, detail_addr, addr_full_name,
|
||||
if_default, create_by, create_time, update_by, update_time
|
||||
from user_addr
|
||||
</sql>
|
||||
|
||||
<select id="selectUserAddrList" parameterType="com.bonus.canteen.core.user.domain.UserAddr" resultMap="UserAddrResult">
|
||||
|
|
@ -37,11 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if>
|
||||
<if test="detailAddr != null and detailAddr != ''"> and detail_addr = #{detailAddr}</if>
|
||||
<if test="addrFullName != null and addrFullName != ''"> and addr_full_name like concat('%', #{addrFullName}, '%')</if>
|
||||
<if test="openid != null and openid != ''"> and openid = #{openid}</if>
|
||||
<if test="sourceType != null "> and source_type = #{sourceType}</if>
|
||||
<if test="ifDefault != null "> and if_default = #{ifDefault}</if>
|
||||
<if test="revision != null "> and revision = #{revision}</if>
|
||||
<if test="placeId != null "> and place_id = #{placeId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
|
@ -59,16 +52,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="areaCode != null and areaCode != ''">area_code,</if>
|
||||
<if test="detailAddr != null and detailAddr != ''">detail_addr,</if>
|
||||
<if test="addrFullName != null and addrFullName != ''">addr_full_name,</if>
|
||||
<if test="openid != null and openid != ''">openid,</if>
|
||||
<if test="sourceType != null">source_type,</if>
|
||||
<if test="ifDefault != null">if_default,</if>
|
||||
<if test="revision != null">revision,</if>
|
||||
<if test="placeId != null">place_id,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">#{userId},</if>
|
||||
|
|
@ -77,16 +65,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="areaCode != null and areaCode != ''">#{areaCode},</if>
|
||||
<if test="detailAddr != null and detailAddr != ''">#{detailAddr},</if>
|
||||
<if test="addrFullName != null and addrFullName != ''">#{addrFullName},</if>
|
||||
<if test="openid != null and openid != ''">#{openid},</if>
|
||||
<if test="sourceType != null">#{sourceType},</if>
|
||||
<if test="ifDefault != null">#{ifDefault},</if>
|
||||
<if test="revision != null">#{revision},</if>
|
||||
<if test="placeId != null">#{placeId},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
|
@ -99,16 +82,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="areaCode != null and areaCode != ''">area_code = #{areaCode},</if>
|
||||
<if test="detailAddr != null and detailAddr != ''">detail_addr = #{detailAddr},</if>
|
||||
<if test="addrFullName != null and addrFullName != ''">addr_full_name = #{addrFullName},</if>
|
||||
<if test="openid != null and openid != ''">openid = #{openid},</if>
|
||||
<if test="sourceType != null">source_type = #{sourceType},</if>
|
||||
<if test="ifDefault != null">if_default = #{ifDefault},</if>
|
||||
<if test="revision != null">revision = #{revision},</if>
|
||||
<if test="placeId != null">place_id = #{placeId},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
</trim>
|
||||
where addr_id = #{addrId}
|
||||
</update>
|
||||
|
|
|
|||
Loading…
Reference in New Issue