Jelajahi Sumber

代码修改

liubing 3 tahun lalu
induk
melakukan
ef072a1e7c

+ 6 - 4
business/es-service/src/main/java/com/yihu/jw/es/util/ElasticsearchUtil.java

@ -443,10 +443,12 @@ public class ElasticsearchUtil {
        //时间格式转换  yyyy-MM-dd转成 2017-07-17T00:00:00+0800
        areaLevel="6";
        String sqlArea = " select area_level from wlyy_job_config_new where id='"+index+"' ";
        List<String> areaLevels = jdbcTemplate.queryForList(sqlArea,String.class);
        if (areaLevels.size()>0){
            areaLevel = areaLevels.get(0);
        if (!index.contains(",")){
            String sqlArea = " select area_level from wlyy_job_config_new where id="+index;
            List<String> areaLevels = jdbcTemplate.queryForList(sqlArea,String.class);
            if (areaLevels.size()>0){
                areaLevel = areaLevels.get(0);
            }
        }
        if (StringUtils.isNotEmpty(startDate)) {
            if (startDate.length() > 10) {