|
@@ -6,6 +6,7 @@ import cn.hutool.core.convert.Convert;
|
|
|
import cn.hutool.core.lang.Validator;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
@@ -42,6 +43,7 @@ import com.zhongzheng.modules.goods.domain.Goods;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
|
import com.zhongzheng.modules.grade.bo.ClassGradeUserQueryBo;
|
|
|
import com.zhongzheng.modules.grade.service.IClassGradeUserService;
|
|
|
+import com.zhongzheng.modules.grade.service.impl.ClassGradeServiceImpl;
|
|
|
import com.zhongzheng.modules.grade.vo.ClassGradeUserGoodsVo;
|
|
|
import com.zhongzheng.modules.system.domain.SysTenant;
|
|
|
import com.zhongzheng.modules.system.service.ISysConfigService;
|
|
@@ -54,6 +56,8 @@ import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
|
import com.zhongzheng.modules.user.mapper.UserMapper;
|
|
|
import com.zhongzheng.modules.user.service.*;
|
|
|
import com.zhongzheng.modules.user.vo.*;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -78,6 +82,8 @@ import java.util.stream.Collectors;
|
|
|
@Service
|
|
|
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {
|
|
|
|
|
|
+ private static Logger log = LoggerFactory.getLogger(UserServiceImpl.class);
|
|
|
+
|
|
|
@Autowired
|
|
|
private CollectCourseMapper collectCourseMapper;
|
|
|
|
|
@@ -693,8 +699,8 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
|
|
if (ObjectUtils.isNotNull(bo.getEduLevel())){
|
|
|
inertData.setEduLevel(bo.getEduLevel());
|
|
|
}
|
|
|
- if (ObjectUtils.isNotNull(bo.getSex())){
|
|
|
- inertData.setSex(bo.getSex());
|
|
|
+ if (ObjectUtils.isNotNull(bo.getSexNum())){
|
|
|
+ inertData.setSex(bo.getSexNum());
|
|
|
}
|
|
|
if (ObjectUtils.isNotNull(bo.getIdcard())){
|
|
|
inertData.setIdCard(bo.getIdcard());
|
|
@@ -962,6 +968,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
|
|
if(Validator.isEmpty(bo.getTelphone())){
|
|
|
throw new CustomException("用户手机号码缺失");
|
|
|
}
|
|
|
+ log.info("批量获取用户ID" + JSON.toJSONString(bo));
|
|
|
// if(Validator.isEmpty(bo.getIdCard())){
|
|
|
// throw new CustomException("用户身份证号码缺失");
|
|
|
// }
|
|
@@ -1016,10 +1023,10 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
|
|
}
|
|
|
if(Validator.isNotEmpty(bo.getSex())){
|
|
|
if(bo.getSex().equals("男")){
|
|
|
- registerBo.setSex(1);
|
|
|
+ registerBo.setSexNum(1);
|
|
|
}
|
|
|
else if(bo.getSex().equals("女")){
|
|
|
- registerBo.setSex(2);
|
|
|
+ registerBo.setSexNum(2);
|
|
|
}
|
|
|
}
|
|
|
if(Validator.isNotEmpty(bo.getEducation())){
|