|
|
|
@ -4011,18 +4011,17 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
|
}
|
|
|
|
|
checkOrgPermission(manager, client);
|
|
|
|
|
int client_id = client.getIntValue("client_id");
|
|
|
|
|
String timezone = client.getString("timezone");
|
|
|
|
|
int clientId = client.getIntValue("client_id");
|
|
|
|
|
if (query.getDatefrom() == null) {
|
|
|
|
|
JSONObject earlistOrder = transactionAnalysisMapper.getEarliestOrder(client_id);
|
|
|
|
|
JSONObject earlistOrder = transactionAnalysisMapper.getEarliestOrder(clientId);
|
|
|
|
|
if (earlistOrder != null) {
|
|
|
|
|
query.setDatefrom(DateFormatUtils.format(earlistOrder.getDate("transaction_time"), "yyyyMMdd"));
|
|
|
|
|
query.setDateto(DateFormatUtils.format(new Date(), "yyyyMMdd"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
JSONObject params = query.toParams(timezone);
|
|
|
|
|
params.put("client_id", client_id);
|
|
|
|
|
queryModifyClientIds(client_id, params);
|
|
|
|
|
JSONObject params = query.toParams(TimeZone.getDefault().getID());
|
|
|
|
|
params.put("client_id", clientId);
|
|
|
|
|
queryModifyClientIds(clientId, params);
|
|
|
|
|
boolean mergeSettle = getMergeSettleStatus(client);
|
|
|
|
|
|
|
|
|
|
if (mergeSettle && query.getClient_ids() == null) {
|
|
|
|
|