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

master
duLingLing 5 years ago
parent 0585608e4b
commit 1c35d35daa

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

Loading…
Cancel
Save