master
wangning 7 years ago
parent 2e01748e11
commit 5661406e27

@ -1,18 +1,26 @@
package au.com.royalpay.payment.manage.dev.web;
import au.com.royalpay.payment.manage.analysis.core.DashboardService;
import com.alibaba.fastjson.JSONObject;
import org.joda.time.DateTime;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
@RestController
@RequestMapping(value = "/dev/pine")
public class TestAPPController {
@Resource
private DashboardService dashboardService;
@RequestMapping(value = "/trade_log", method = RequestMethod.GET)
public List<JSONObject> getTradeLogs(HttpServletResponse response) {
@ -48,4 +56,14 @@ public class TestAPPController {
return logs;
}
@RequestMapping(value = "/customer",method = RequestMethod.GET)
public void generateCustomersAndOrdersStatistics(){
DateTime dt17 = new DateTime(2018,5,17,11,11);
DateTime dt18 = new DateTime(2018,5,18,11,11);
DateTime dt19 = new DateTime(2018,5,19,11,11);
dashboardService.generateCustomersAndOrdersStatistics(dt17.toDate());
dashboardService.generateCustomersAndOrdersStatistics(dt18.toDate());
dashboardService.generateCustomersAndOrdersStatistics(dt19.toDate());
}
}

Loading…
Cancel
Save