|
|
@@ -27,6 +27,7 @@ import org.dromara.common.log.annotation.Log;
|
|
|
import org.dromara.common.log.enums.BusinessType;
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
+import org.dromara.common.satoken.utils.LoginHelper;
|
|
|
import org.dromara.common.web.core.BaseController;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
@@ -57,9 +58,10 @@ public class PtBagController extends BaseController {
|
|
|
|
|
|
//根据userId查询账户余额
|
|
|
// @SaCheckPermission("payment:ptBag:query")
|
|
|
- @GetMapping("/selectAccountBalanceByIds")
|
|
|
- public R<String> selectAccountBalanceByIds(@RequestParam("userIds") String userIds) {
|
|
|
- return R.ok(ptBagService.selectAccountBalanceByIds(userIds));
|
|
|
+ @GetMapping("/selectSelfAccountBalance")
|
|
|
+ public R<String> selectAccountBalanceByIds() {
|
|
|
+ String userIds = String.valueOf(LoginHelper.getUserId());
|
|
|
+ return R.ok("",ptBagService.selectAccountBalanceByIds(userIds));
|
|
|
}
|
|
|
|
|
|
/**
|