瀏覽代碼

修改交易流水接口参数

zhouzeyu@c-top.com.cn 3 年之前
父節點
當前提交
d1854e72f3

+ 14 - 13
jeecg-boot-finance/src/main/java/org/jeecg/ctop/finance/agent/controller/AgentManagementController.java

@@ -2,6 +2,7 @@ package org.jeecg.ctop.finance.agent.controller;
 
 
 import lombok.extern.slf4j.Slf4j;
+import org.apache.ibatis.annotations.Param;
 import org.jeecg.common.api.vo.Result;
 import org.jeecg.ctop.finance.agent.service.AgentManagementService;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -22,8 +23,8 @@ public class AgentManagementController {
     AgentManagementService agentManagementService;
 
     @RequestMapping("/queryAccountTransactionDetails")
-    public void getList() {
-        Result recharge = agentManagementService.synchronousAccountTransactionDetails("2021-05-01","2021-05-01");
+    public void getList(@Param("starDate")String startDate,@Param("endDate")String endDate) {
+        Result recharge = agentManagementService.synchronousAccountTransactionDetails(startDate,endDate);
 
     }
 
@@ -34,8 +35,8 @@ public class AgentManagementController {
 
 
     @RequestMapping("/synchronousAccountTransactionDay")
-    public void synchronousAccountTransactionDay() {
-        Result recharge = agentManagementService.synchronousAccountTransactionDay("2021-05-01","2021-05-01");
+    public void synchronousAccountTransactionDay(@Param("starDate")String startDate,@Param("endDate")String endDate) {
+        Result recharge = agentManagementService.synchronousAccountTransactionDay(startDate,endDate);
     }
 
 
@@ -49,19 +50,19 @@ public class AgentManagementController {
         String date6="2021-07-31";
         String date7="2021-08-01";
         String date8="2021-08-31";
-        //5月份
         agentManagementService.synchronousAccount();
-        //agentManagementService.synchronousAccountTransactionDetails(date1,date2);
-       // agentManagementService.synchronousAccountTransactionDay(date1,date2);
+        //5月份
+         agentManagementService.synchronousAccountTransactionDetails(date1,date2);
+         agentManagementService.synchronousAccountTransactionDay(date1,date2);
         //6月份
-        //agentManagementService.synchronousAccountTransactionDetails(date3,date4);
-        agentManagementService.synchronousAccountTransactionDay(date3,date4);
+         agentManagementService.synchronousAccountTransactionDetails(date3,date4);
+         agentManagementService.synchronousAccountTransactionDay(date3,date4);
         //7月份
-       // agentManagementService.synchronousAccountTransactionDetails(date5,date6);
-       // agentManagementService.synchronousAccountTransactionDay(date5,date6);
+         agentManagementService.synchronousAccountTransactionDetails(date5,date6);
+         agentManagementService.synchronousAccountTransactionDay(date5,date6);
         //8月份
-       // agentManagementService.synchronousAccountTransactionDetails(date7,date8);
-       // agentManagementService.synchronousAccountTransactionDay(date7,date8);
+          agentManagementService.synchronousAccountTransactionDetails(date7,date8);
+          agentManagementService.synchronousAccountTransactionDay(date7,date8);
     }