no message

This commit is contained in:
wangh 2023-11-29 17:37:42 +08:00
parent dd5df3bc78
commit 01641bbae2
4 changed files with 45 additions and 44 deletions

View File

@ -18,7 +18,7 @@ public class MtInvitation extends BaseEntity {
/**
* 用户id
*/
private Integer userid;
private Integer userId;
/**
* 店铺Id
*/
@ -26,11 +26,11 @@ public class MtInvitation extends BaseEntity {
/**
* 员工id
*/
private Integer staffid;
private Integer staffId;
/**
* 邀请人id
*/
private Integer inviterid;
private Integer inviterId;
/**
* 状态启用禁用
*/

View File

@ -4,10 +4,11 @@
<resultMap type="com.fuint.business.userManager.entity.MtInvitation" id="MtInvitationMap">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="userid" column="userId" jdbcType="INTEGER"/>
<result property="userId" column="userId" jdbcType="INTEGER"/>
<result property="storeId" column="storeId" jdbcType="INTEGER"/>
<result property="staffid" column="staffId" jdbcType="INTEGER"/>
<result property="inviterid" column="inviterId" jdbcType="INTEGER"/>
<result property="chainstoreId" column="chain_store_id" jdbcType="INTEGER"/>
<result property="inviterId" column="inviterId" jdbcType="INTEGER"/>
<result property="inviterId" column="inviterId" jdbcType="INTEGER"/>
<result property="status" column="status" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
@ -18,16 +19,16 @@
<!--查询单个-->
<select id="queryById" resultMap="MtInvitationMap">
select
id, userId, storeId, staffId, inviterId, status, create_time, create_by, update_time, update_by
id, userId, storeId, inviterId, inviterId, status, create_time, create_by, update_time, update_by
from mt_invitation
where id = #{id}
</select>
<!--查询单个-->
<select id="queryByStoreId" resultMap="MtInvitationMap">
<select id="queryBystoreId" resultMap="MtInvitationMap">
select
id, userId, storeId, staffId, inviterId, status, create_time, create_by, update_time, update_by
id, userId, storeId, inviterId, inviterId, status, create_time, create_by, update_time, update_by
from mt_invitation
where storeId = #{storeId} and userId = #{userId}
</select>
@ -35,23 +36,23 @@
<!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="MtInvitationMap">
select
id, userId, storeId, staffId, inviterId, status, create_time, create_by, update_time, update_by
id, userId, storeId, inviterId, inviterId, status, create_time, create_by, update_time, update_by
from mt_invitation
<where>
<if test="id != null">
and id = #{id}
</if>
<if test="userid != null">
and userId = #{userid}
<if test="userId != null">
and userId = #{userId}
</if>
<if test="storeid != null">
and storeId = #{storeid}
<if test="storeId != null">
and storeId = #{storeId}
</if>
<if test="staffid != null">
and staffId = #{staffid}
<if test="inviterId != null">
and inviterId = #{inviterId}
</if>
<if test="inviterid != null">
and inviterId = #{inviterid}
<if test="inviterId != null">
and inviterId = #{inviterId}
</if>
<if test="status != null and status != ''">
and status = #{status}
@ -79,17 +80,17 @@
<if test="id != null">
and id = #{id}
</if>
<if test="userid != null">
and userId = #{userid}
<if test="userId != null">
and userId = #{userId}
</if>
<if test="storeid != null">
and storeId = #{storeid}
<if test="storeId != null">
and storeId = #{storeId}
</if>
<if test="staffid != null">
and staffId = #{staffid}
<if test="inviterId != null">
and inviterId = #{inviterId}
</if>
<if test="inviterid != null">
and inviterId = #{inviterid}
<if test="inviterId != null">
and inviterId = #{inviterId}
</if>
<if test="status != null and status != ''">
and status = #{status}
@ -111,28 +112,28 @@
<!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into mt_invitation(userId, storeId, staffId, inviterId, status, create_time, create_by, update_time, update_by,chain_store_id)
values (#{userid}, #{storeid}, #{staffid}, #{inviterid}, #{status}, #{createTime}, #{createBy}, #{updateTime}, #{updateBy}),#{chainStoreId}
insert into mt_invitation(userId, storeId, inviterId, inviterId, status, create_time, create_by, update_time, update_by,chain_store_id)
values (#{userId}, #{storeId}, #{inviterId}, #{inviterId}, #{status}, #{createTime}, #{createBy}, #{updateTime}, #{updateBy},#{chainStoreId})
</insert>
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
insert into mt_invitation(userId, storeId, staffId, inviterId, status, create_time, create_by, update_time, update_by)
insert into mt_invitation(userId, storeId, inviterId, inviterId, status, create_time, create_by, update_time, update_by)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.userid}, #{entity.storeid}, #{entity.staffid}, #{entity.inviterid}, #{entity.status}, #{entity.createTime}, #{entity.createBy}, #{entity.updateTime}, #{entity.updateBy})
(#{entity.userId}, #{entity.storeId}, #{entity.inviterId}, #{entity.inviterId}, #{entity.status}, #{entity.createTime}, #{entity.createBy}, #{entity.updateTime}, #{entity.updateBy})
</foreach>
</insert>
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into mt_invitation(userId, storeId, staffId, inviterId, status, create_time, create_by, update_time, update_by)
insert into mt_invitation(userId, storeId, inviterId, inviterId, status, create_time, create_by, update_time, update_by)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.userid}, #{entity.storeid}, #{entity.staffid}, #{entity.inviterid}, #{entity.status}, #{entity.createTime}, #{entity.createBy}, #{entity.updateTime}, #{entity.updateBy})
(#{entity.userId}, #{entity.storeId}, #{entity.inviterId}, #{entity.inviterId}, #{entity.status}, #{entity.createTime}, #{entity.createBy}, #{entity.updateTime}, #{entity.updateBy})
</foreach>
on duplicate key update
userId = values(userId),
storeId = values(storeId),
staffId = values(staffId),
inviterId = values(inviterId),
inviterId = values(inviterId),
status = values(status),
create_time = values(create_time),
@ -145,17 +146,17 @@
<update id="update">
update mt_invitation
<set>
<if test="userid != null">
userId = #{userid},
<if test="userId != null">
userId = #{userId},
</if>
<if test="storeid != null">
storeId = #{storeid},
<if test="storeId != null">
storeId = #{storeId},
</if>
<if test="staffid != null">
staffId = #{staffid},
<if test="inviterId != null">
inviterId = #{inviterId},
</if>
<if test="inviterid != null">
inviterId = #{inviterid},
<if test="inviterId != null">
inviterId = #{inviterId},
</if>
<if test="status != null and status != ''">
status = #{status},

View File

@ -227,7 +227,7 @@ public class LJUserServiceImpl extends ServiceImpl<LJUserMapper, LJUser> impleme
}
// 添加邀请注册信息
MtInvitation invitation = new MtInvitation();
invitation.setUserid(ljUser.getId());
invitation.setUserId(ljUser.getId());
invitation.setStoreId(storeId);
invitation.setStaffid(nowAccountInfo.getStaffId());
invitation.setChainStoreId(chainStoreId);

View File

@ -832,7 +832,7 @@ public class MemberServiceImpl extends ServiceImpl<MtUserMapper, MtUser> impleme
MtInvitation mtInvitation1 = mtInvitationMapper.queryByStoreId(Integer.parseInt(storeId), user.getId());
if (ObjectUtil.isEmpty(mtInvitation1)) {
MtInvitation mtInvitation = new MtInvitation();
mtInvitation.setUserid(user.getId());
mtInvitation.setUserId(user.getId());
mtInvitation.setStoreId(Integer.parseInt(storeId));
mtInvitation.setStaffid(Integer.parseInt(staffId));
mtInvitation.setInviterid(Integer.parseInt(inviterId));
@ -857,7 +857,7 @@ public class MemberServiceImpl extends ServiceImpl<MtUserMapper, MtUser> impleme
MtInvitation mtInvitation1 = mtInvitationMapper.queryByStoreId(Integer.parseInt(storeId), user.getId());
if (ObjectUtil.isEmpty(mtInvitation1)) {
MtInvitation mtInvitation = new MtInvitation();
mtInvitation.setUserid(user.getId());
mtInvitation.setUserId(user.getId());
mtInvitation.setStoreId(Integer.parseInt(storeId));
mtInvitation.setStaffid(Integer.parseInt(staffId));
mtInvitation.setInviterid(Integer.parseInt(inviterId));