| | |
| | | if(Objects.isNull(appUser)){ |
| | | appUser = new TAppUser(); |
| | | appUser.setPhone(appletUserDecodeData.getPhoneNumber()); |
| | | appUser.setAvatar(StringUtils.hasLength(appUser.getAvatar())?appUser.getAvatar():""); |
| | | appUser.setName(StringUtils.hasLength(appUser.getName())?appUser.getName(): RptUtils.around(appletUserDecodeData.getPhoneNumber(),3,4)); |
| | | appUser.setAvatar(StringUtils.hasLength(appUser.getAvatar()) ? appUser.getAvatar() : ""); |
| | | appUser.setName(StringUtils.hasLength(appUser.getName()) ? appUser.getName() : RptUtils.around(appletUserDecodeData.getPhoneNumber(), 3, 4)); |
| | | appUser.setOpenId(appletUserDecodeData.getOpenId()); |
| | | this.save(appUser); |
| | | // 查询有没有注册发放的优惠券活动 |
| | |
| | | } |
| | | tCouponReceive.setAmountCondition(tCoupon.getAmountCondition()); |
| | | tCouponReceive.setStatus(1); |
| | | tCouponReceive.setCouponName(tCoupon.getName()); |
| | | couponReceiveMapper.insert(tCouponReceive); |
| | | } |
| | | }else { |