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