|
|
|
@ -2,6 +2,7 @@ package au.com.royalpay.payment.manage.analysis.web;
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.analysis.core.RefundAnalysisService;
|
|
|
|
|
import au.com.royalpay.payment.manage.permission.manager.ManagerMapping;
|
|
|
|
|
import au.com.royalpay.payment.manage.pos.datasource.ReadOnlyConnection;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
@ -22,16 +23,19 @@ public class RefundAnalysisController {
|
|
|
|
|
private RefundAnalysisService refundAnalysisService;
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/report")
|
|
|
|
|
@ReadOnlyConnection
|
|
|
|
|
public JSONObject findRefundInfoListByDay(@RequestParam String begin, @RequestParam String end) throws ParseException {
|
|
|
|
|
return refundAnalysisService.findRefundInfoListByDay(begin, end);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/report/refundCount")
|
|
|
|
|
@ReadOnlyConnection
|
|
|
|
|
public List<JSONObject> findRefundCount(@RequestParam String begin, @RequestParam String end) throws ParseException {
|
|
|
|
|
return refundAnalysisService.findRefundCount(begin, end);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/report/dayList")
|
|
|
|
|
@ReadOnlyConnection
|
|
|
|
|
public List<JSONObject> listRefundInfoByDay(@RequestParam String begin, @RequestParam String end) throws ParseException {
|
|
|
|
|
return refundAnalysisService.listRefundInfoByDay(begin, end);
|
|
|
|
|
}
|
|
|
|
|