Merge remote-tracking branch 'origin/master'

master
yixian 8 years ago
commit 00ac171d37

@ -58,7 +58,7 @@ ALTER TABLE `log_manager_login`
MODIFY COLUMN `manager_id` varchar(50) NOT NULL AFTER `id`; MODIFY COLUMN `manager_id` varchar(50) NOT NULL AFTER `id`;
ALTER TABLE `financial_bd_commission_config` ALTER TABLE `financial_bd_commission_config`
MODIFY COLUMN `bd_id` varchar(50) NOT NULL DEFAULT 0 COMMENT 'bd id' AFTER `bd_name`; MODIFY COLUMN `bd_id` varchar(50) NOT NULL DEFAULT 0 COMMENT 'bd id';
ALTER TABLE `financial_bd_config` ALTER TABLE `financial_bd_config`
MODIFY COLUMN `bd_group` varchar(50) NULL DEFAULT NULL COMMENT 'BD Leader manger_id' AFTER `get_prize`; MODIFY COLUMN `bd_group` varchar(50) NULL DEFAULT NULL COMMENT 'BD Leader manger_id' AFTER `get_prize`;

@ -2,6 +2,7 @@ package au.com.royalpay.payment.manage.task;
import au.com.royalpay.payment.manage.application.core.SimpleClientService; import au.com.royalpay.payment.manage.application.core.SimpleClientService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -11,6 +12,7 @@ import javax.annotation.Resource;
* Created by yishuqian on 12/03/2017. * Created by yishuqian on 12/03/2017.
*/ */
@Component @Component
@ConditionalOnProperty(value = "app.run-tasks", havingValue = "true")
public class CheckPartnerAuthStatusAndSendMessageTask { public class CheckPartnerAuthStatusAndSendMessageTask {
@Resource @Resource
private SimpleClientService simpleClientService; private SimpleClientService simpleClientService;

@ -4,6 +4,7 @@ import au.com.royalpay.payment.manage.analysis.core.DailyReport;
import org.apache.commons.lang.time.DateFormatUtils; import org.apache.commons.lang.time.DateFormatUtils;
import org.apache.commons.lang.time.DateUtils; import org.apache.commons.lang.time.DateUtils;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -15,6 +16,7 @@ import javax.annotation.Resource;
* Created by yixian on 2017-03-07. * Created by yixian on 2017-03-07.
*/ */
@Component @Component
@ConditionalOnProperty(value = "app.run-tasks", havingValue = "true")
public class DailyReportGenerationTask { public class DailyReportGenerationTask {
@Resource @Resource

@ -3,6 +3,7 @@ package au.com.royalpay.payment.manage.task;
import au.com.royalpay.payment.manage.analysis.core.DashboardService; import au.com.royalpay.payment.manage.analysis.core.DashboardService;
import org.apache.commons.lang.time.DateUtils; import org.apache.commons.lang.time.DateUtils;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -14,6 +15,7 @@ import javax.annotation.Resource;
* Created by yixian on 2016-11-14. * Created by yixian on 2016-11-14.
*/ */
@Component @Component
@ConditionalOnProperty(value = "app.run-tasks", havingValue = "true")
public class DashboardTaskManager { public class DashboardTaskManager {
@Resource @Resource
private DashboardService dashboardService; private DashboardService dashboardService;

@ -3,6 +3,7 @@ package au.com.royalpay.payment.manage.task;
import au.com.royalpay.payment.manage.analysis.core.CustomersAnalysisService; import au.com.royalpay.payment.manage.analysis.core.CustomersAnalysisService;
import org.apache.commons.lang.time.DateUtils; import org.apache.commons.lang.time.DateUtils;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -14,6 +15,7 @@ import javax.annotation.Resource;
* Created by yixian on 2016-11-14. * Created by yixian on 2016-11-14.
*/ */
@Component @Component
@ConditionalOnProperty(value = "app.run-tasks", havingValue = "true")
public class PartnerTransactionsDailyMsgTaskManager { public class PartnerTransactionsDailyMsgTaskManager {
@Resource @Resource
private CustomersAnalysisService customersAnalysisService; private CustomersAnalysisService customersAnalysisService;

@ -75,7 +75,7 @@ app.settlement.email-cc=leo.huang@royalpay.com.au
app.mpsupport.appid=royalpay app.mpsupport.appid=royalpay
app.mpsupport.auth_code=W3xucYnbmbE6rZDmA2V9BsKmagTrVIny app.mpsupport.auth_code=W3xucYnbmbE6rZDmA2V9BsKmagTrVIny
app.run-tasks=false app.run-tasks=true
app.allow-clearing-generation=false app.allow-clearing-generation=false
app.mail.appid=1 app.mail.appid=1

@ -188,6 +188,8 @@
THEN 'Third Party Gateway' THEN 'Third Party Gateway'
WHEN 10 WHEN 10
THEN 'APP' THEN 'APP'
WHEN 11
THEN 'Share Code'
END AS gateway_label, END AS gateway_label,
ifnull(sum(if(l.transaction_type='Credit',l.clearing_amount,-l.clearing_amount)), 0) aud_fee ifnull(sum(if(l.transaction_type='Credit',l.clearing_amount,-l.clearing_amount)), 0) aud_fee
FROM pmt_transactions l FROM pmt_transactions l
@ -414,6 +416,8 @@
THEN 'Third Party Gateway' THEN 'Third Party Gateway'
WHEN 10 WHEN 10
THEN 'APP' THEN 'APP'
WHEN 11
THEN 'Share Code'
END AS gateway_label, END AS gateway_label,
ifnull(COUNT(DISTINCT l.client_id), 0) partner_count ifnull(COUNT(DISTINCT l.client_id), 0) partner_count
FROM pmt_transactions l FROM pmt_transactions l
@ -462,10 +466,12 @@
<if test="trade_type=='Third Party Gateway'"> <if test="trade_type=='Third Party Gateway'">
and o.gateway=9 and o.gateway=9
</if> </if>
<if test="trade_type=='APP'"> <if test="trade_type=='APP'">
and o.gateway=10 and o.gateway=10
</if> </if>
<if test="trade_type=='Share Code'">
and o.gateway=11
</if>
<if test="org_id!=null">and l.org_id=#{org_id}</if> <if test="org_id!=null">and l.org_id=#{org_id}</if>
<if test="bd_group!=null">and l.client_id in <if test="bd_group!=null">and l.client_id in
(SELECT b.client_id FROM sys_client_bd b (SELECT b.client_id FROM sys_client_bd b
@ -543,6 +549,9 @@
<if test="trade_type=='APP'"> <if test="trade_type=='APP'">
and o.gateway=10 and o.gateway=10
</if> </if>
<if test="trade_type=='Share Code'">
and o.gateway=11
</if>
<if test="org_id!=null">and ptran.org_id=#{org_id}</if> <if test="org_id!=null">and ptran.org_id=#{org_id}</if>
</select> </select>
<select id="listExchangeRates" resultType="com.alibaba.fastjson.JSONObject"> <select id="listExchangeRates" resultType="com.alibaba.fastjson.JSONObject">

@ -3,7 +3,7 @@
@media (min-width: 768px) { @media (min-width: 768px) {
.login-box-right { .login-box-right {
margin-right: 10%; margin-right: 35%;
} }
.login-page-bg { .login-page-bg {
@ -17,53 +17,58 @@
background-size: 100% 100%; background-size: 100% 100%;
} }
.login-box-bg { .login-box-bg {
/*background-color: rgba(255,255,255,0.5);*/ /*background-color: rgba(255,255,255,0.5);*/
box-shadow: 0px 2px 20px 2px rgba(0, 0, 0, 0.3); box-shadow: 0px 2px 20px 2px rgba(0, 0, 0, 0.3);
filter: alpha(opacity=40); filter: alpha(opacity=40);
opacity: 0.9; opacity: 0.8;
} }
.divloginbox .divloginbox {
{
animation: loginbox 1s; animation: loginbox 1s;
-moz-animation: loginbox 1s; -moz-animation: loginbox 1s;
-webkit-animation: loginbox 1s; -webkit-animation: loginbox 1s;
-o-animation: loginbox 1s; -o-animation: loginbox 1s;
} }
@keyframes loginbox {
@keyframes loginbox from {
{ margin-right: -30%
from {margin-right: -30%}
to {margin-right:10%}
} }
to {
@-moz-keyframes loginbox margin-right: 35%
{
from {margin-right: -30%}
to {margin-right:10%}
} }
@-webkit-keyframes loginbox
{
from {margin-right: -30%}
to {margin-right:10%}
} }
@-o-keyframes loginbox @-moz-keyframes loginbox {
{ from {
from {margin-right: -30%} margin-right: -30%
to {margin-right:10%} }
to {
margin-right: 35%
} }
} }
@-webkit-keyframes loginbox {
from {
margin-right: -30%
}
to {
margin-right: 35%
}
}
@-o-keyframes loginbox {
from {
margin-right: -30%
}
to {
margin-right: 35%
}
}
}
@media (max-width: 768px) { @media (max-width: 768px) {
.login-page-bg { .login-page-bg {
@ -76,8 +81,6 @@
margin-right: auto; margin-right: auto;
} }
.login-box-bg { .login-box-bg {
/*background-color: rgba(255,255,255,0.5);*/ /*background-color: rgba(255,255,255,0.5);*/
box-shadow: 0px 2px 20px 2px rgba(0, 0, 0, 0.3); box-shadow: 0px 2px 20px 2px rgba(0, 0, 0, 0.3);
@ -86,36 +89,47 @@
} }
.divloginbox .divloginbox {
{
animation: loginboxtop 1s; animation: loginboxtop 1s;
-moz-animation: loginboxtop 1s; -moz-animation: loginboxtop 1s;
-webkit-animation: loginboxtop 1s; -webkit-animation: loginboxtop 1s;
-o-animation: loginboxtop 1s; -o-animation: loginboxtop 1s;
} }
@keyframes loginboxtop @keyframes loginboxtop {
{ from {
from {margin-top: 0} margin-top: 0
to {margin-top:20%} }
to {
margin-top: 20%
}
} }
@-moz-keyframes loginboxtop @-moz-keyframes loginboxtop {
{ from {
from {margin-top: 0} margin-top: 0
to {margin-top:20%} }
to {
margin-top: 20%
}
} }
@-webkit-keyframes loginboxtop @-webkit-keyframes loginboxtop {
{ from {
from {margin-top: 0} margin-top: 0
to {margin-top:20%} }
to {
margin-top: 20%
}
} }
@-o-keyframes loginboxtop @-o-keyframes loginboxtop {
{ from {
from {margin-top: 0} margin-top: 0
to {margin-top:20%} }
to {
margin-top: 20%
}
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 191 KiB

After

Width:  |  Height:  |  Size: 133 KiB

Loading…
Cancel
Save