|
@ -18,6 +18,7 @@ import com.yihu.jw.restmodel.web.MixEnvelop;
|
|
|
import com.yihu.jw.util.http.HttpClientUtil;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import iot.device.LocationDataVO;
|
|
|
import netscape.javascript.JSObject;
|
|
|
import org.apache.http.Consts;
|
|
|
import org.apache.http.client.utils.URLEncodedUtils;
|
|
|
import org.apache.http.message.BasicNameValuePair;
|
|
@ -822,6 +823,20 @@ public class MonitorPlatformService {
|
|
|
|
|
|
return new JSONObject();
|
|
|
}
|
|
|
|
|
|
public JSONObject getTotalRange(String startTime, String endTime,
|
|
|
String deviceType, String area, String hospital){
|
|
|
JSONObject result = new JSONObject();
|
|
|
result.put("grant",totalRange(startTime,endTime,deviceType,area,hospital,"85"));
|
|
|
result.put("binding",totalRange(startTime,endTime,deviceType,area,hospital,"86"));
|
|
|
result.put("guide",totalRange(startTime,endTime,deviceType,area,hospital,"88"));
|
|
|
result.put("malfunction",totalRange(startTime,endTime,deviceType,area,hospital,"0"));
|
|
|
result.put("diseaseUsing",diseaseUseRange(startTime,endTime,deviceType,area,hospital));
|
|
|
result.put("diseaseCover",diseaseRange(startTime,endTime,deviceType,area,hospital));
|
|
|
return result;
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 慢病患者设备使用率
|
|
|
* @param startTime
|