commit
359f357f2c
@ -0,0 +1,28 @@
|
|||||||
|
package au.com.royalpay.payment.manage.customers.web;
|
||||||
|
|
||||||
|
import au.com.royalpay.payment.manage.apps.AppController;
|
||||||
|
import au.com.royalpay.payment.manage.customers.core.CouponValidateService;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by yuan on 2017/12/27.
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/manager")
|
||||||
|
@AppController
|
||||||
|
public class PaymentManagerController {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private CouponValidateService couponVerificationService;
|
||||||
|
|
||||||
|
@GetMapping(value = "/get_payment_manage")
|
||||||
|
public JSONObject getPaymentManager(){
|
||||||
|
JSONObject json = couponVerificationService.getPaymentManager();
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package au.com.royalpay.payment.manage.task;
|
||||||
|
|
||||||
|
import au.com.royalpay.payment.manage.management.clearing.core.CleanService;
|
||||||
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||||
|
import org.springframework.scheduling.annotation.Scheduled;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by yishuqian on 06/06/2017.
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@ConditionalOnProperty(value = "app.run-tasks",havingValue = "true")
|
||||||
|
public class CleanNoticeTaskManager {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private CleanService cleanService;
|
||||||
|
|
||||||
|
@Scheduled(cron = "0 0 15 * * ?")
|
||||||
|
public void sendCleanNotice(){
|
||||||
|
cleanService.getTodaySettlementLogs();
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1,53 +0,0 @@
|
|||||||
<table cellpadding="0" cellspacing="0" class="email-container" align="center" width="550" style="font-family: Lato, 'Lucida Sans', 'Lucida Grande', SegoeUI, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-weight: normal; line-height: 22px; color: #444444; text-align: left; border: 1px solid rgb(177, 213, 245); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; width: 550px;">
|
|
||||||
<tbody><tr>
|
|
||||||
<td>
|
|
||||||
<table cellpadding="0" cellspacing="0" class="padding" width="100%" style="padding-left: 40px; padding-right: 40px; padding-top: 30px; padding-bottom: 35px;">
|
|
||||||
<tbody>
|
|
||||||
<tr class="logo">
|
|
||||||
<td align="center">
|
|
||||||
<table class="logo" style="margin-bottom: 10px;">
|
|
||||||
<tbody><tr>
|
|
||||||
<td>
|
|
||||||
<img src="https://mpay.royalpay.com.au/static/images/logo640x640.jpg" height="100" width="100" border="0" style="display: block;">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody></table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr class="header">
|
|
||||||
<td align="center">
|
|
||||||
<h1 style="font-size: 24px; line-height: 1.3em; margin-bottom: 5px;">Register Invitation</h1>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
<tr class="content">
|
|
||||||
<td>
|
|
||||||
<p style="font-size: 15px; font-weight: normal; line-height: 22px;">Dear Partner, </p>
|
|
||||||
<p style="font-size: 15px; font-weight: normal; line-height: 22px;">Thank you for registering an account with us!</p>
|
|
||||||
<p style="font-size: 15px; font-weight: normal; line-height: 22px;">This is a system verification email from RoyalPay. RoyalPay is an exciting platform that makes international payments as easy as local ones.
|
|
||||||
To get started, click on the button below:</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td align="center">
|
|
||||||
<table cellpadding="12" border="0" style="font-family: Lato, 'Lucida Sans', 'Lucida Grande', SegoeUI, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; font-weight: bold; line-height: 25px; color: #444444; text-align: left;">
|
|
||||||
<tbody><tr>
|
|
||||||
<td class="button" style="color: rgb(255, 255, 255); font-size: 16px; line-height: 24px; text-align: center; display: block;">
|
|
||||||
<a href="$url" style="color: rgb(255, 255, 255); text-align: center; display: block; padding: 12px 20px; height: 100%; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; text-decoration: none; background-color: rgb(43, 136, 217); min-width: 150px;"><strong>Register your account right now!</strong></a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody></table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody></table>
|
|
Loading…
Reference in new issue