From dc02604db2c2552d6da420a6a98972068fb33a50 Mon Sep 17 00:00:00 2001 From: yixian Date: Wed, 8 May 2019 14:34:07 +0800 Subject: [PATCH 1/6] =?UTF-8?q?sql=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mappers/TransactionAnalysisMapper.xml | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml index a4c461eeb..32ef0c8cf 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml @@ -377,11 +377,10 @@ - \ No newline at end of file + + diff --git a/src/main/resources/templates/reports/daily_report.html b/src/main/resources/templates/reports/daily_report.html index bc05c2037..713c403be 100644 --- a/src/main/resources/templates/reports/daily_report.html +++ b/src/main/resources/templates/reports/daily_report.html @@ -31,6 +31,7 @@
收入 支出 + KPI
@@ -132,9 +133,77 @@
+ + + - \ No newline at end of file + From bab6df82c38a918e4f3f337ec3dc9754d5d51e05 Mon Sep 17 00:00:00 2001 From: "james.zhao" Date: Thu, 16 May 2019 12:11:29 +0800 Subject: [PATCH 5/6] revert --- .../payment/manage/task/DailyReportGenerationTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/task/DailyReportGenerationTask.java b/src/main/java/au/com/royalpay/payment/manage/task/DailyReportGenerationTask.java index fcc013732..692be43b4 100644 --- a/src/main/java/au/com/royalpay/payment/manage/task/DailyReportGenerationTask.java +++ b/src/main/java/au/com/royalpay/payment/manage/task/DailyReportGenerationTask.java @@ -25,11 +25,11 @@ public class DailyReportGenerationTask { @Resource private SynchronizedScheduler synchronizedScheduler; - @Scheduled(cron = "30 55 11 * * ?") + @Scheduled(cron = "0 0 10 * * ?") public void dailyReportAutoGenerateReport() { synchronizedScheduler.executeProcess("manage_task:dailyReportAutoGenerateReport", 120_000, () -> { Date yesterday = DateUtils.addDays(new Date(), -1); - dailyReport.generateReport("2019-03-19", false); + dailyReport.generateReport(DateFormatUtils.format(yesterday, "yyyy-MM-dd"), true); }); } } From 503447d08b4e41226477e612396e00a6e1abbb24 Mon Sep 17 00:00:00 2001 From: "taylor.dang" Date: Thu, 16 May 2019 14:41:18 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8E=9F=E7=94=9F?= =?UTF-8?q?=E7=A0=81=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/document/cn/apidoc.json | 1 + src/document/cn/apis.js | 39 ++++++++++++++++++++++++++++++++++++ src/document/en/apidoc.json | 1 + src/document/en/apis.js | 40 +++++++++++++++++++++++++++++++++++++ 4 files changed, 81 insertions(+) diff --git a/src/document/cn/apidoc.json b/src/document/cn/apidoc.json index 3509ecd0a..3bfca5fe1 100644 --- a/src/document/cn/apidoc.json +++ b/src/document/cn/apidoc.json @@ -12,6 +12,7 @@ "Overview", "QRCode", "NewQRCode", + "NativeQRCode", "QRCodePay", "JSApi", "NewJSAPI", diff --git a/src/document/cn/apis.js b/src/document/cn/apis.js index ea8976109..ca1b28f52 100644 --- a/src/document/cn/apis.js +++ b/src/document/cn/apis.js @@ -93,6 +93,45 @@ * @apiError (ERROR_CODE) ORDER_PAID 订单已支付 * */ +/** + * @api {PUT} /api/v1.0/gateway/partners/{partner_code}/native_orders/{order_id} 创建Native QRCode支付单 + * @apiName NativeQRCode + * @apiGroup QRCode + * @apiVersion 1.0.0 + * @apiDescription + * QRCode支付单适用于PC端网页/应用进行支付,用户使用微信/支付宝客户端扫描下单后生成的二维码完成支付。
+ *
+ * 返回值包括二维码字符串,二维码图片,支付地址,商户可以自行决定直接展示二维码或跳转支付页,跳转支付页需要带上签名信息。 + * 货币类型如果是CNY,注意通过汇率转换后不得低于0.01AUD,否则订单可以创建成功,但支付时会报金额不合法错误 + * @apiHeader Accept application/json + * @apiHeader Content-Type application/json + * @apiParam (PathVariable) {String} partner_code 必填,商户编码,由4-6位大写字母或数字构成 + * @apiParam (PathVariable) {String} order_id 必填,商户支付订单号,要求同一商户唯一 + * @apiUse Sign + * @apiParam (JSON) {String} description 必填,订单标题(最大长度128字符,超出自动截取) + * @apiParam (JSON) {int} price 必填,金额,单位为货币最小单位,例如使用100表示1.00 AUD + * @apiParam (JSON) {String=AUD,CNY} currency=AUD 币种代码 + * @apiParam (JSON) {String=Alipay,Wechat} channel 支付渠道,大小写敏感 + * @apiParam (JSON) {String} notify_url 支付通知url,详见支付通知api,不填则不会推送支付通知 + * @apiParam (JSON) {String} operator 操作人员标识 + * + * @apiSuccess {String} return_code 执行结果 + * @apiSuccess {String} result_code SUCCESS表示创建订单成功,EXISTS表示订单已存在 + * @apiSuccess {String} channel 支付渠道 + * @apiSuccess {String} partner_code 商户编码 + * @apiSuccess {String} full_name 商户注册全名 + * @apiSuccess {String} partner_name 商户名称 + * @apiSuccess {String} order_id GlobalFreePay订单ID,同时也是微信订单ID,最终支付成功的订单ID可能不同 + * @apiSuccess {String} partner_order_id 商户订单ID + * @apiSuccess {String} code_url 支付码字符串,商户可以据此自行生产二维码 + * @apiSuccess {String} qrcode_img Base64封装的二维码图片,可直接作为img的src属性 + * @apiSuccess {String} pay_url 跳转URL + * + * @apiUse GlobalError + * @apiError (ERROR_CODE) ORDER_MISMATCH 订单号与商户不匹配 + * @apiError (ERROR_CODE) ORDER_PAID 订单已支付 + * + */ /** * @api {GET} /api/v1.0/gateway/partners/{partner_code}/orders/{order_id}/pay QRCode支付跳转页 * @apiName QRCodePay diff --git a/src/document/en/apidoc.json b/src/document/en/apidoc.json index 3ae8f4594..b8c3e6bc4 100644 --- a/src/document/en/apidoc.json +++ b/src/document/en/apidoc.json @@ -12,6 +12,7 @@ "Overview", "QRCode", "NewQRCode", + "NativeQRCode", "QRCodePay", "JSApi", "NewJSAPI", diff --git a/src/document/en/apis.js b/src/document/en/apis.js index b759a76ea..8400f7aa3 100644 --- a/src/document/en/apis.js +++ b/src/document/en/apis.js @@ -95,6 +95,46 @@ * @apiError (ERROR_CODE) ORDER_PAID Order has already been paid * */ +/** + * @api {PUT} /api/v1.0/gateway/partners/{partner_code}/native_orders/{order_id} Create QR Code Payment + * @apiName NativeQRCode + * @apiGroup QRCode + * @apiVersion 1.0.0 + * @apiDescription + * QR Code Payment is used for webpage/application on PC. Customers use WeChat or Alipay app to scan QR Code generated when creating order and finish the payment.
+ *
+ * Return value contains QR Code string, QR Ccode image and payment page address. Partners can decide how to finish the payment. + * If the currency is CNY, equivalent AUD amount shall never less than 0.01 AUD, + * otherwise user will get Invalid Amount Error from WeChat when making the payment. + * @apiHeader Accept application/json + * @apiHeader Content-Type application/json + * @apiParam (PathVariable) {String} partner_code Required, Partner Code + * @apiParam (PathVariable) {String} order_id Required, Partner order id. Shall be unique for the same partner. If repeated, order will be recognized as an existing order. + * @apiUse Sign + * @apiParam (JSON) {String} description Required, Description of an order. + * @apiParam (JSON) {int} price Required, Price of the order. Use the base unit of the currency. + * @apiParam (JSON) {String=AUD,CNY} currency=AUD Currency + * @apiParam (JSON) {String=Alipay,Wechat} channel Payment channel, case sensitive + * @apiParam (JSON) {String} notify_url System will call the notify url if provided when the payment succeeds + * @apiParam (JSON) {String} operator Note for the operator who created this order. + * + * @apiSuccess {String} return_code Execution result + * @apiSuccess {String} result_code SUCCESS means order created successfully, EXISTS means order has already existed. + * @apiSuccess {String} channel Payment channel + * @apiSuccess {String} partner_code Partner code + * @apiSuccess {String} full_name Partner's full company name when registered + * @apiSuccess {String} partner_name Partner's name + * @apiSuccess {String} order_id Order id in GlobalFreePay, which is also WeChat order id. The final order id which is paid may be different from this one. + * @apiSuccess {String} partner_order_id Partner order id + * @apiSuccess {String} code_url QR Code string. Partners can create the payment QR Code according to this value. + * @apiSuccess {String} qrcode_img QR Code image formatted in Base64. Can be used as the src attribute on img element + * @apiSuccess {String} pay_url Payment page in GlobalFreePay + * + * @apiUse GlobalError + * @apiError (ERROR_CODE) ORDER_MISMATCH Order is not belong to this partner. + * @apiError (ERROR_CODE) ORDER_PAID Order has already been paid + * + */ /** * @api {GET} /api/v1.0/gateway/partners/{partner_code}/orders/{order_id}/pay QR Code Payment Page in RoyalPay * @apiName QRCodePay