|
|
|
@ -2647,18 +2647,17 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
params.put("client_id", client_id);
|
|
|
|
|
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);
|
|
|
|
|
logs.remove(0);
|
|
|
|
|
}else if (sendMailLog != null && sendMailLog.getIntValue("mail_status") != 1) {
|
|
|
|
|
logs.remove(0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
JSONObject result = PageListUtils.buildPageListResult(logs);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|