|
|
@ -3998,11 +3998,11 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@Transactional
|
|
|
|
@Transactional
|
|
|
|
public void postponeClientRate(Date now, Date yearTomorrow, String expireDate, JSONObject p, StringBuilder sb) {
|
|
|
|
public void postponeClientRate(Date now, Date yearTomorrow, String expireDate, JSONObject client) {
|
|
|
|
int client_id = p.getIntValue("client_id");
|
|
|
|
int client_id = client.getIntValue("client_id");
|
|
|
|
List<JSONObject> adminAccounts = clientAccountMapper.listAdminAccounts(client_id);
|
|
|
|
List<JSONObject> adminAccounts = clientAccountMapper.listAdminAccounts(client_id);
|
|
|
|
List<JSONObject> clientRates = clientRateMapper.maxChannelExpiryTime(client_id, null);
|
|
|
|
List<JSONObject> clientRates = clientRateMapper.maxChannelExpiryTime(client_id, null);
|
|
|
|
JSONObject wechatRate = clientRateMapper.latestChannelCleanDays("Wechat", p.getIntValue("client_id"));
|
|
|
|
JSONObject wechatRate = clientRateMapper.latestChannelCleanDays("Wechat", client.getIntValue("client_id"));
|
|
|
|
int cleanDays = 1;
|
|
|
|
int cleanDays = 1;
|
|
|
|
if (wechatRate.getInteger("clean_days") != null) {
|
|
|
|
if (wechatRate.getInteger("clean_days") != null) {
|
|
|
|
cleanDays = wechatRate.getIntValue("clean_days");
|
|
|
|
cleanDays = wechatRate.getIntValue("clean_days");
|
|
|
@ -4027,12 +4027,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
clientModifySupport.processClientConfigModify(new SwitchPermissionModify(null, p.getString("client_moniker"), "tax_in_surcharge", false));
|
|
|
|
clientModifySupport.processClientConfigModify(new SwitchPermissionModify(null, client.getString("client_moniker"), "tax_in_surcharge", false));
|
|
|
|
adminAccounts.forEach(o -> {
|
|
|
|
adminAccounts.forEach(o -> {
|
|
|
|
sendClientPostponeNotify(o, expireDate);
|
|
|
|
sendClientPostponeNotify(o, expireDate);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
sb.append(p.getString("client_moniker"));
|
|
|
|
|
|
|
|
sb.append("、");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|