|
@@ -6,6 +6,7 @@ import cn.hutool.core.lang.Validator;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.github.pagehelper.Page;
|
|
@@ -39,6 +40,7 @@ import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
|
import com.zhongzheng.modules.user.mapper.UserMapper;
|
|
|
import com.zhongzheng.modules.user.service.IUserPlanService;
|
|
|
import com.zhongzheng.modules.user.service.IUserService;
|
|
|
+import com.zhongzheng.modules.user.service.IUserUpdateService;
|
|
|
import com.zhongzheng.modules.user.vo.*;
|
|
|
import io.swagger.models.auth.In;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -86,6 +88,9 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
|
|
@Autowired
|
|
|
private UserMapper userMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IUserUpdateService userUpdateService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private IClassGradeUserService iClassGradeUserService;
|
|
|
|
|
@@ -243,10 +248,19 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
|
|
User update = BeanUtil.toBean(bo, User.class);
|
|
|
validEntityBeforeUpdate(update);
|
|
|
update.setUpdateTime(DateUtils.getNowTime());
|
|
|
-
|
|
|
- //增加客户端信息进行添加积分
|
|
|
-
|
|
|
-
|
|
|
+ UserUpdateAddBo userUpdateAddBo = new UserUpdateAddBo();
|
|
|
+ if (!StringUtils.isBlank(update.getRealname())){
|
|
|
+ userUpdateAddBo.setRealname(update.getRealname());
|
|
|
+ }
|
|
|
+ if (!StringUtils.isBlank(update.getTelphone())){
|
|
|
+ userUpdateAddBo.setTelphone(update.getTelphone());
|
|
|
+ }
|
|
|
+ if (!StringUtils.isBlank(update.getIdCard())){
|
|
|
+ userUpdateAddBo.setIdCard(update.getIdCard());
|
|
|
+ }
|
|
|
+ if (userUpdateAddBo != null) {
|
|
|
+ userUpdateService.insertByAddBo(userUpdateAddBo);
|
|
|
+ }
|
|
|
return this.updateById(update);
|
|
|
}
|
|
|
|