|
@ -78,6 +78,8 @@ public class StatisticsEsService {
|
|
JSONObject object = new JSONObject();
|
|
JSONObject object = new JSONObject();
|
|
object.put("outPatientCount",saveModel.getResult2().longValue());//问诊量
|
|
object.put("outPatientCount",saveModel.getResult2().longValue());//问诊量
|
|
object.put("prescriptionCount",saveModel1.getResult2().longValue());//开方量
|
|
object.put("prescriptionCount",saveModel1.getResult2().longValue());//开方量
|
|
|
|
String prescriptionRate = baseEvaluateScoreService.getPercentage(saveModel1.getResult2().floatValue(), saveModel.getResult2().floatValue());
|
|
|
|
object.put("prescriptionRate",prescriptionRate);//开方率
|
|
String startTime = DateUtil.getStringDateShort()+" 00:00:00";
|
|
String startTime = DateUtil.getStringDateShort()+" 00:00:00";
|
|
String endTime = DateUtil.getStringDateShort() +" 23:59:59";
|
|
String endTime = DateUtil.getStringDateShort() +" 23:59:59";
|
|
String sql = "select count(*) as total from base.wlyy_outpatient o where o.status=2 and o.create_time >='"+startTime+"' and o.create_time <='"+endTime+"'";
|
|
String sql = "select count(*) as total from base.wlyy_outpatient o where o.status=2 and o.create_time >='"+startTime+"' and o.create_time <='"+endTime+"'";
|
|
@ -218,6 +220,29 @@ public class StatisticsEsService {
|
|
return object;
|
|
return object;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 开方量按日期柱状图
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param startDate
|
|
|
|
* @param endDate
|
|
|
|
* @param area
|
|
|
|
* @param level
|
|
|
|
* @param index
|
|
|
|
* @param level2_type
|
|
|
|
* @return
|
|
|
|
* @throws Exception
|
|
|
|
*/
|
|
|
|
public JSONObject getPrescriptionLine(String startDate, String endDate, String area, int level, String index,int interval, String level2_type) throws Exception {
|
|
|
|
JSONObject object = new JSONObject();
|
|
|
|
//开方量增量曲线
|
|
|
|
JSONArray array = dateTotalStatistics2(startDate,endDate,area,level,index,null,SaveModel.timeLevel_ZL,null);
|
|
|
|
object.put("prescriptionLine",array);
|
|
|
|
return object;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
* 门诊圆形图
|
|
* 门诊圆形图
|