|
|
@@ -1,6 +1,5 @@
|
|
|
package org.dromara.backstage.wx.contorller;
|
|
|
|
|
|
-import jakarta.validation.constraints.NotNull;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.dromara.backstage.payment.domain.vo.PtUserAccountVo;
|
|
|
import org.dromara.backstage.wx.domain.vo.WxCreditAccountVo;
|
|
|
@@ -12,9 +11,10 @@ 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.*;
|
|
|
-
|
|
|
-import java.util.Date;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PutMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
/**
|
|
|
* 微信
|
|
|
@@ -30,7 +30,6 @@ public class WxController extends BaseController {
|
|
|
|
|
|
/**
|
|
|
* 查询用户账户信息
|
|
|
- * @param userId
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/getUserInfo")
|
|
|
@@ -41,14 +40,14 @@ public class WxController extends BaseController {
|
|
|
|
|
|
/**
|
|
|
* 查询账单明细
|
|
|
- * @param userId
|
|
|
+ * @param type 1 消费,2 充值
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/findCreditAccount")
|
|
|
- public TableDataInfo<WxCreditAccountVo> findCreditAccount(String startTime, String endTime,
|
|
|
+ public TableDataInfo<WxCreditAccountVo> findCreditAccount(String type, String startTime, String endTime,
|
|
|
PageQuery pageQuery) {
|
|
|
Long userId = LoginHelper.getUserId();
|
|
|
- return wxService.findCreditAccount(userId, startTime, endTime, pageQuery);
|
|
|
+ return wxService.findCreditAccount(type, userId, startTime, endTime, pageQuery);
|
|
|
}
|
|
|
|
|
|
@PutMapping("/updateCardStatus")
|