|
@@ -6,6 +6,7 @@ import cn.hutool.core.lang.Validator;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
@@ -45,6 +46,7 @@ import com.zhongzheng.modules.grade.service.IClassGradeUserService;
|
|
|
import com.zhongzheng.modules.grade.vo.ClassGradeUserGoodsVo;
|
|
|
import com.zhongzheng.modules.inform.domain.InformSysUser;
|
|
|
import com.zhongzheng.modules.order.domain.OrderBillGoods;
|
|
|
+import com.zhongzheng.modules.order.domain.OrderGoodsRefund;
|
|
|
import com.zhongzheng.modules.user.bo.*;
|
|
|
import com.zhongzheng.modules.user.domain.*;
|
|
|
import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
@@ -980,6 +982,27 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
|
|
return baseMapper.getUserByIdNumNotTenant(idNum);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void batchUpdateTelId() {
|
|
|
+ List<User> list = baseMapper.selectAllUserList();
|
|
|
+ list.forEach(item -> {
|
|
|
+ boolean isUpdate = false;
|
|
|
+ UserQueryBo queryBo = new UserQueryBo();
|
|
|
+ queryBo.setUserId(item.getUserId());
|
|
|
+ if(Validator.isNotEmpty(item.getIdCard())&&item.getIdCard().length()<=20){
|
|
|
+ isUpdate = true;
|
|
|
+ queryBo.setIdCard(EncryptHandler.encrypt(item.getIdCard()));
|
|
|
+ }
|
|
|
+ if(Validator.isNotEmpty(item.getTelphone())&&item.getTelphone().length()<=20){
|
|
|
+ isUpdate = true;
|
|
|
+ queryBo.setTelphone(EncryptHandler.encrypt(item.getTelphone()));
|
|
|
+ }
|
|
|
+ if(isUpdate){
|
|
|
+ // baseMapper.editUserInfo(queryBo);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
private Long findSubjectId(String subject){
|
|
|
if(subject!=null){
|
|
|
String key = "SUB_"+subject;
|