Upd:退款接口添加数据指定为-只读库

master
duLingLing 5 years ago
parent 4648b9885e
commit 792dfe944f

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId>
<version>1.1.4</version>
<version>1.1.5</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@ -244,7 +244,7 @@
<version>${jib-maven-plugin.version}</version>
<configuration>
<from>
<image>hkccr.ccs.tencentyun.com/cross-payment/base:v1.0</image>
<image>hkccr.ccs.tencentyun.com/rpay/serverjre:openj9</image>
</from>
<to>
<image>hkccr.ccs.tencentyun.com/cross-payment-dev/manage-dev:${docker-image.version}</image>

@ -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);
}

Loading…
Cancel
Save