|
|
@ -488,7 +488,22 @@ public class DashboardServiceImpl implements DashboardService,DashboardAnalysisT
|
|
|
|
JSONObject totalObject = new JSONObject();
|
|
|
|
JSONObject totalObject = new JSONObject();
|
|
|
|
totalObject.put("client_id",0);
|
|
|
|
totalObject.put("client_id",0);
|
|
|
|
generateData(format,date,totalObject);
|
|
|
|
generateData(format,date,totalObject);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 重新生成执行商户下某日消费者数据
|
|
|
|
|
|
|
|
* @param analysisDate
|
|
|
|
|
|
|
|
* @param clientMoniker
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public void generateCustomersAndOrdersStatisticsByClientMoniker(Date analysisDate,String clientMoniker){
|
|
|
|
|
|
|
|
DateFormat format = new SimpleDateFormat("yyyyMMdd");
|
|
|
|
|
|
|
|
String date = format.format(analysisDate);
|
|
|
|
|
|
|
|
List<JSONObject> clients =clientMapper.listClients();
|
|
|
|
|
|
|
|
for (JSONObject client:clients){
|
|
|
|
|
|
|
|
if(client.getString("client_moniker").equals(clientMoniker)){
|
|
|
|
|
|
|
|
generateData(format, date, client);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void generateData(DateFormat format, String date, JSONObject client) {
|
|
|
|
private void generateData(DateFormat format, String date, JSONObject client) {
|
|
|
|