|
@ -1,6 +1,7 @@
|
|
package com.yihu.jw.care.endpoint.statistics;
|
|
package com.yihu.jw.care.endpoint.statistics;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.yihu.jw.care.service.assistance.EmergencyAssistanceService;
|
|
import com.yihu.jw.care.service.assistance.EmergencyAssistanceService;
|
|
import com.yihu.jw.care.service.doctor.CareDoctorService;
|
|
import com.yihu.jw.care.service.doctor.CareDoctorService;
|
|
@ -438,4 +439,24 @@ public class OpenStatisticsEndpoint extends EnvelopRestEndpoint {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@GetMapping(value = "addLineIndexs")
|
|
|
|
@ApiOperation(value = "数据折线趋势,多个指标相加")
|
|
|
|
public ListEnvelop addLineIndexs(
|
|
|
|
@RequestParam(required = true) String startDate,
|
|
|
|
@RequestParam(required = true) String endDate,
|
|
|
|
@RequestParam(required = true) String area,
|
|
|
|
@RequestParam(required = true) int level,
|
|
|
|
@RequestParam(required = true) String index,
|
|
|
|
@RequestParam(required = false) String timeLevel,
|
|
|
|
@RequestParam(required = false) String interval,
|
|
|
|
@RequestParam(required = false) String lowLevel) {
|
|
|
|
try {
|
|
|
|
JSONArray result = statisticsService.addLineIndexs(startDate,endDate, area, level, index, timeLevel,interval,lowLevel);
|
|
|
|
return success(result);
|
|
|
|
} catch (Exception e) {
|
|
|
|
return failedListEnvelopException2(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|