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