| | |
| | | } |
| | | TAppUser appUser = appUserService.getById(dto.getId()); |
| | | String code = appUser.getCode(); |
| | | if (dto.getCode() != null && !dto.getCode().isEmpty() && code!=null && !code.equals(dto.getCode())) { |
| | | if(code==null){ |
| | | appUser.setCode(dto.getCode()); |
| | | // 移除之前的二维码 |
| | | redisTemplate.delete("USER_WX_IMG" + appUser.getId()); |
| | | }else { |
| | | if (dto.getCode() != null && !dto.getCode().isEmpty() && !dto.getCode().equals(code)) { |
| | | appUser.setCode(dto.getCode()); |
| | | // 移除之前的二维码 |
| | | redisTemplate.delete("USER_WX_IMG" + appUser.getId()); |
| | | } |
| | | } |
| | | if (dto.getPromotionStatus() != null) { |
| | | appUser.setPromotionStatus(dto.getPromotionStatus()); |
| | |
| | | if (one != null) { |
| | | tAppUser.setCompanyId(one.getId()); |
| | | } |
| | | appUserService.save(user); |
| | | appUserService.save(tAppUser); |
| | | i++; |
| | | } |
| | | if (!result.isEmpty()) { |