|
|
|
@ -14,6 +14,7 @@ import au.com.royalpay.payment.manage.appclient.beans.AppClientBean;
|
|
|
|
|
import au.com.royalpay.payment.manage.device.core.DeviceManager;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.financial.FinancialBDConfigMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.log.ClientsOperationLogMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.log.LogSettleMailMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.payment.TransactionMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.redpack.ActClientInvitationCodeMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.system.ClientAccountMapper;
|
|
|
|
@ -168,6 +169,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
@Resource
|
|
|
|
|
private OrgMapper orgMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
private LogSettleMailMapper logSettleMailMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
private CommoditiesMapper commoditiesMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
private ActClientInvitationCodeMapper actClientInvitationCodeMapper;
|
|
|
|
@ -2451,6 +2454,17 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
PageList<JSONObject> logs = transactionMapper.listSettlementLog(params,
|
|
|
|
|
new PageBounds(query.getPage(), query.getLimit(), Order.formString("clearing_time.desc")));
|
|
|
|
|
JSONObject result = PageListUtils.buildPageListResult(logs);
|
|
|
|
|
if (query.getPage()==1){
|
|
|
|
|
if (!logs.isEmpty() && logs.size()>0){
|
|
|
|
|
JSONObject sendMailLog = logSettleMailMapper.findByDate(logs.get(0).getDate("clearing_time"));
|
|
|
|
|
if (sendMailLog == null) {
|
|
|
|
|
result.put("padding",true);
|
|
|
|
|
}
|
|
|
|
|
if (sendMailLog!=null && sendMailLog.getIntValue("mail_status") != 1) {
|
|
|
|
|
result.put("padding",true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|