|
|
@@ -1,10 +1,12 @@
|
|
|
package com.kym.service.miniapp.impl;
|
|
|
|
|
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
|
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.kym.entity.miniapp.Account;
|
|
|
import com.kym.mapper.miniapp.AccountMapper;
|
|
|
import com.kym.service.miniapp.AccountService;
|
|
|
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.kym.service.miniapp.WalletDetailService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
/**
|
|
|
@@ -16,11 +18,16 @@ import org.springframework.stereotype.Service;
|
|
|
* @since 2023-08-07
|
|
|
*/
|
|
|
@Service
|
|
|
-@DS("db-admin")
|
|
|
+@DS("db-miniapp")
|
|
|
public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> implements AccountService {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private WalletDetailService walletDetailService;
|
|
|
+
|
|
|
@Override
|
|
|
- public Account getAccountByUserId(Long userId){
|
|
|
+ public Account getAccountByUserId(Long userId) {
|
|
|
return getOne(lambdaQuery().eq(Account::getUserId, userId));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
}
|