wangning 8 years ago
commit bb9c239184

@ -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`;

@ -1,40 +0,0 @@
package au.com.royalpay.payment.manage.dev.web;
import au.com.royalpay.payment.manage.support.wechatclients.KangaLandWechatApiImpl;
import au.com.royalpay.payment.manage.support.wechatclients.RedpackWechatApiImpl;
import au.com.royalpay.payment.tools.connections.mpsupport.beans.WxOauthType;
import au.com.royalpay.payment.tools.env.PlatformEnvironment;
import au.com.royalpay.payment.tools.env.RequestEnvironment;
import au.com.royalpay.payment.tools.exceptions.ForbiddenException;
import au.com.royalpay.payment.tools.permission.wechat.WechatMapping;
import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by davep on 2016-09-04.
*/
@RestController
@RequestMapping("/dev/status")
public class StatusCheckController {
@RequestMapping(method = RequestMethod.GET)
public JSONObject checkSystemStatus(){
return new JSONObject();
}
@WechatMapping(value = "wx_test",method = RequestMethod.GET,oauthType = WxOauthType.USERINFO,addonMp = {RedpackWechatApiImpl.class,KangaLandWechatApiImpl.class})
public void checkWxTest(){
}
@RequestMapping(value = "/stopping",method = RequestMethod.PUT)
public void beforeStop(){
if (RequestEnvironment.getClientIp().equals("127.0.0.1")){
PlatformEnvironment.getEnv().taskEnabled(false);
}else{
throw new ForbiddenException();
}
}
}

@ -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">

@ -11,7 +11,7 @@
<!-- daily rollover --> <!-- daily rollover -->
<maxHistory>30</maxHistory> <maxHistory>30</maxHistory>
<fileNamePattern>/var/log/payment/%d{yyyy-MM}/payment.%d{yyyy-MM-dd}.%i.log</fileNamePattern> <fileNamePattern>/var/log/payment/%d{yyyy-MM}/manage.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxFileSize>200MB</maxFileSize> <maxFileSize>200MB</maxFileSize>
</rollingPolicy> </rollingPolicy>
<encoder> <encoder>

@ -2,8 +2,8 @@
@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 {
@ -11,73 +11,76 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: #d2d6de; background-color: #d2d6de;
background: url(../images/bg.jpg) ; background: url(../images/bg.jpg);
/*background: url(../images/logonbg.jpg) ;*/ /*background: url(../images/logonbg.jpg) ;*/
position: relative; position: relative;
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 {
margin-right: 35%
} }
@-moz-keyframes loginbox
{
from {margin-right: -30%}
to {margin-right:10%}
} }
@-webkit-keyframes loginbox @-moz-keyframes loginbox {
{ from {
from {margin-right: -30%} margin-right: -30%
to {margin-right:10%} }
to {
margin-right: 35%
}
} }
@-o-keyframes loginbox @-webkit-keyframes loginbox {
{ from {
from {margin-right: -30%} margin-right: -30%
to {margin-right:10%} }
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 {
background: url(''); background: url('');
background-color: #d2d6de; background-color: #d2d6de;
} }
.login-box-right{ .login-box-right {
margin-top: 20%; margin-top: 20%;
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

@ -174,7 +174,6 @@ $(function () {
data.customerrate = true; data.customerrate = true;
} }
data.coupons = dataCache.coupons; data.coupons = dataCache.coupons;
data.price = data.price*100;
$.ajax({ $.ajax({
url: '/partner/cashiers/payment/'+ window.client_moniker +'/'+window.cashier_id+'/orders/', url: '/partner/cashiers/payment/'+ window.client_moniker +'/'+window.cashier_id+'/orders/',
method: 'post', method: 'post',

Loading…
Cancel
Save