更新9.20

This commit is contained in:
许允枞 2024-09-20 13:49:37 +08:00
parent c3ab2ab157
commit 5c70875129
3 changed files with 18 additions and 9 deletions

View File

@ -3,6 +3,7 @@ package com.fuint.business.integral.entity;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.fuint.repository.model.base.BaseEntity; import com.fuint.repository.model.base.BaseEntity;
@ -19,7 +20,7 @@ public class IntegralDetail extends BaseEntity implements Serializable {
/** /**
* 积分明细ID * 积分明细ID
*/ */
@TableId(value = "id" ) @TableId(type = IdType.AUTO)
private Integer id; private Integer id;
/** /**
* 用户ID表示积分变动的用户 * 用户ID表示积分变动的用户

View File

@ -43,5 +43,10 @@ public class MtUserExpressAddress extends BaseEntity {
*/ */
private Integer storeId; private Integer storeId;
/**
* 性别01
*/
private Integer sex;
} }

View File

@ -20,7 +20,7 @@
<!--查询单个--> <!--查询单个-->
<select id="queryById" resultMap="MtUserExpressAddressMap"> <select id="queryById" resultMap="MtUserExpressAddressMap">
select select
id, user_id, name, mobile, address, if_default, store_id, create_time, update_time, create_by, update_by id, user_id, name, mobile, address, if_default, store_id, create_time, update_time, create_by, update_by,sex
from mt_user_express_address from mt_user_express_address
where id = #{id} where id = #{id}
</select> </select>
@ -28,7 +28,7 @@
<!--查询指定行数据--> <!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="MtUserExpressAddressMap"> <select id="queryAllByLimit" resultMap="MtUserExpressAddressMap">
select select
id, user_id, name, mobile, address, if_default, store_id, create_time, update_time, create_by, update_by id, user_id, name, mobile, address, if_default, store_id, create_time, update_time, create_by, update_by,sex
from mt_user_express_address from mt_user_express_address
<where> <where>
store_id = #{storeId} store_id = #{storeId}
@ -88,21 +88,24 @@
<if test="updateBy != null"> <if test="updateBy != null">
and update_by = #{updateBy} and update_by = #{updateBy}
</if> </if>
<if test="sex != null">
and sex = #{sex}
</if>
</where> </where>
</select> </select>
<!--新增所有列--> <!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true"> <insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into mt_user_express_address(user_id, name, mobile, address, if_default, store_id, create_time, update_time, create_by, update_by,full_address) insert into mt_user_express_address(user_id, name, mobile, address, if_default, store_id, create_time, update_time, create_by, update_by,full_address,sex)
values (#{userId}, #{name}, #{mobile}, #{address}, #{ifDefault}, #{storeId}, #{createTime}, #{createTime}, #{createBy}, #{updateBy},#{fullAddress}) values (#{userId}, #{name}, #{mobile}, #{address}, #{ifDefault}, #{storeId}, #{createTime}, #{createTime}, #{createBy}, #{updateBy},#{fullAddress},#{sex})
</insert> </insert>
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
insert into mt_user_express_address(user_id, name, mobile, address, if_default, store_id, create_time, update_time, create_by, update_by) insert into mt_user_express_address(user_id, name, mobile, address, if_default, store_id, create_time, update_time, create_by, update_by,sex)
values values
<foreach collection="entities" item="entity" separator=","> <foreach collection="entities" item="entity" separator=",">
(#{entity.userId}, #{entity.name}, #{entity.mobile}, #{entity.address}, #{entity.ifDefault}, #{entity.storeId}, #{entity.createTime}, #{entity.updateTime}, #{entity.createBy}, #{entity.updateBy}) (#{entity.userId}, #{entity.name}, #{entity.mobile}, #{entity.address}, #{entity.ifDefault}, #{entity.storeId}, #{entity.createTime}, #{entity.updateTime}, #{entity.createBy}, #{entity.updateBy},#{entity.sex})
</foreach> </foreach>
</insert> </insert>
@ -175,12 +178,12 @@
<select id="getDefault" resultMap="MtUserExpressAddressMap"> <select id="getDefault" resultMap="MtUserExpressAddressMap">
select select
id, user_id, name, mobile, address, if_default, store_id, create_time, update_time, create_by, update_by id, user_id, name, mobile, address, if_default, store_id, create_time, update_time, create_by, update_by,sex
from mt_user_express_address from mt_user_express_address
</select> </select>
<select id="getList" resultMap="MtUserExpressAddressMap"> <select id="getList" resultMap="MtUserExpressAddressMap">
select select
id, user_id, name, mobile, address, if_default, store_id, create_time, update_time, create_by, update_by id, user_id, name, mobile, address, if_default, store_id, create_time, update_time, create_by, update_by,sex
from mt_user_express_address from mt_user_express_address
where user_id = #{userId} where user_id = #{userId}
order by if_default order by if_default