修改会员生成逻辑

This commit is contained in:
韩鹏辉 2024-06-12 17:31:56 +08:00
parent 7367e11c92
commit c34518631b
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package com.chaozhanggui.system.cashierservice.service;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.RandomUtil;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.chaozhanggui.system.cashierservice.dao.*;
@ -1106,7 +1107,7 @@ public class PayService {
TbUserInfo userInfo = tbUserInfoMapper.selectByPrimaryKey(memberIn.getUserId());
tbShopUser.setName(userInfo.getNickName());
tbShopUser.setTelephone(userInfo.getTelephone());
tbShopUser.setCode(DateUtils.getsdfTimesSS());
tbShopUser.setCode(RandomUtil.randomNumbers(8));
tbShopUser.setIsVip(Byte.parseByte("1"));
}