|
@ -24,10 +24,13 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParametersFactory;
|
|
|
import org.omg.CORBA.OBJ_ADAPTER;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.transaction.Transactional;
|
|
|
import javax.xml.soap.SAAJMetaFactory;
|
|
|
import java.security.acl.LastOwnerException;
|
|
|
import java.text.DecimalFormat;
|
|
@ -39,8 +42,11 @@ import java.util.*;
|
|
|
* Created by wangzhinan on 2019/12/3.
|
|
|
*/
|
|
|
@Service
|
|
|
@Transactional
|
|
|
public class StatisticsEsService {
|
|
|
|
|
|
Logger logger = LoggerFactory.getLogger(StatisticsEsService.class);
|
|
|
|
|
|
@Autowired
|
|
|
private ElasticsearchUtil elasticsearchUtil;
|
|
|
@Autowired
|
|
@ -150,6 +156,7 @@ public class StatisticsEsService {
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public JSONObject getOutPatientLine(String startDate, String endDate, String area, int level, String index,int interval, String level2_type) throws Exception {
|
|
|
logger.info("service index:"+index+" and level2_type:"+level2_type+" and level:"+level);
|
|
|
//问诊量
|
|
|
JSONObject object = new JSONObject();
|
|
|
if (interval==1){
|
|
@ -426,6 +433,7 @@ public class StatisticsEsService {
|
|
|
|
|
|
|
|
|
public JSONObject getOutPatientPriceLine(String startDate, String endDate, String area, int level, String index,int interval, String level2_type) throws Exception {
|
|
|
logger.info("service index:"+index+" and level2_type:"+level2_type+" and level:"+level);
|
|
|
//问诊量
|
|
|
JSONObject object = new JSONObject();
|
|
|
if (interval==1){
|