|
|
|
@ -205,13 +205,29 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
setAllClientIds(params, client_id);
|
|
|
|
|
params.put("client_id", client_id);
|
|
|
|
|
JSONObject res = transactionAnalysisMapper.getClientTransaction(params);
|
|
|
|
|
|
|
|
|
|
// res.put("trade_amount", transactionAnalysisMapper.analysisTotalAmount(params));
|
|
|
|
|
// res.put("trade_count", transactionAnalysisMapper.analysisTotalCount(params));
|
|
|
|
|
res.put("not_settled", transactionAnalysisMapper.analysisNotSettled(params));
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public JSONObject getTradeCommonDateNew(JSONObject device, AppQueryBean appQueryBean) {
|
|
|
|
|
String clientType = device.getString("client_type");
|
|
|
|
|
deviceSupport.findRegister(clientType);
|
|
|
|
|
int client_id = device.getIntValue("client_id");
|
|
|
|
|
JSONObject client = clientManager.getClientInfo(client_id);
|
|
|
|
|
String timezone = client.getString("timezone");
|
|
|
|
|
if (timezone != null && !timezone.isEmpty()) {
|
|
|
|
|
appQueryBean.setTimezone(timezone);
|
|
|
|
|
}
|
|
|
|
|
JSONObject params = appQueryBean.toParams();
|
|
|
|
|
setAllClientIds(params, client_id);
|
|
|
|
|
params.put("client_id", client_id);
|
|
|
|
|
JSONObject res = transactionMapper.analysisTransFlow(params);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void updateClient(JSONObject device, AppClientBean appClientBean) {
|
|
|
|
|
String clientType = device.getString("client_type");
|
|
|
|
@ -1390,6 +1406,7 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
clientManager.changeManualSettle(device.getIntValue("client_id"),manual_settle,device.getString("account_id"),1,"商户修改手动清算配置");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static boolean mathchLetterorNum(String str) {
|
|
|
|
|
String regex = "[A-Za-z0-9]{8}";
|
|
|
|
|
return str.matches(regex);
|
|
|
|
|