This commit is contained in:
wangh 2023-11-29 17:19:38 +08:00
commit dd5df3bc78
3 changed files with 7 additions and 3 deletions

View File

@ -309,7 +309,6 @@
<el-select
v-model="form.gradeId"
placeholder="会员等级"
:disabled="form.gradeId==''"
style="width: 300px"
>
<el-option v-for="grade in userGradeList" :key="grade.id+''" :label="grade.name" :value="grade.id+''"/>

View File

@ -111,8 +111,8 @@
<!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into mt_invitation(userId, storeId, staffId, inviterId, status, create_time, create_by, update_time, update_by)
values (#{userid}, #{storeid}, #{staffid}, #{inviterid}, #{status}, #{createTime}, #{createBy}, #{updateTime}, #{updateBy})
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>
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">

View File

@ -13,7 +13,9 @@ import com.fuint.business.userManager.entity.MtInvitation;
import com.fuint.business.userManager.entity.UserBalance;
import com.fuint.business.userManager.mapper.CertifiedMemberMapper;
import com.fuint.business.userManager.mapper.LJUserMapper;
import com.fuint.business.userManager.mapper.MtInvitationMapper;
import com.fuint.business.userManager.service.LJUserService;
import com.fuint.business.userManager.service.MtInvitationService;
import com.fuint.business.userManager.service.UserBalanceService;
import com.fuint.business.userManager.vo.LJUserVo;
import com.fuint.common.dto.AccountInfo;
@ -150,6 +152,8 @@ public class LJUserServiceImpl extends ServiceImpl<LJUserMapper, LJUser> impleme
@Autowired
private ILJStoreService storeService;
@Autowired
private MtInvitationMapper invitationMapper;
/**
* 添加会员信息
@ -227,6 +231,7 @@ public class LJUserServiceImpl extends ServiceImpl<LJUserMapper, LJUser> impleme
invitation.setStoreId(storeId);
invitation.setStaffid(nowAccountInfo.getStaffId());
invitation.setChainStoreId(chainStoreId);
invitationMapper.insert(invitation);
return row;
}