| | |
| | | import com.ruoyi.other.service.ShopScoreService; |
| | | import com.ruoyi.other.service.ShopService; |
| | | import com.ruoyi.other.vo.NearbyShopVO; |
| | | import com.ruoyi.other.vo.SaveWithdrawalAccount; |
| | | import com.ruoyi.other.vo.ShopDetailVO; |
| | | import com.ruoyi.system.api.domain.SysUser; |
| | | import com.ruoyi.system.api.feignClient.SysUserClient; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | private AppUserClient appUserClient; |
| | | @Resource |
| | | private TokenService tokenService; |
| | | @Resource |
| | | private SysUserClient sysUserClient; |
| | | |
| | | |
| | | @Override |
| | |
| | | } |
| | | return r.getData() != null; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 保存提现账户 |
| | | * @param saveWithdrawalAccount |
| | | */ |
| | | @Override |
| | | public void saveWithdrawalAccount(SaveWithdrawalAccount saveWithdrawalAccount) { |
| | | Long userid = tokenService.getLoginUser().getUserid(); |
| | | SysUser sysUser = sysUserClient.getSysUser(userid).getData(); |
| | | Shop shop = this.getById(sysUser.getObjectId()); |
| | | if(null != shop){ |
| | | shop.setReceiverAccountNoEnc(saveWithdrawalAccount.getReceiverAccountNoEnc()); |
| | | shop.setReceiverNameEnc(saveWithdrawalAccount.getReceiverNameEnc()); |
| | | shop.setReceiverAccountType(saveWithdrawalAccount.getReceiverAccountType()); |
| | | shop.setReceiverBankChannelNo(saveWithdrawalAccount.getReceiverBankChannelNo()); |
| | | this.updateById(shop); |
| | | } |
| | | } |
| | | } |