소스 검색

【BI商业智能】【饼图排序】【大小写区分】

zhaoy 6 년 전
부모
커밋
a153b03806
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      bi-server/src/main/java/com/usoftchina/bi/server/dao/chart/ShowChartsMapper.java

+ 1 - 1
bi-server/src/main/java/com/usoftchina/bi/server/dao/chart/ShowChartsMapper.java

@@ -61,7 +61,7 @@ public interface ShowChartsMapper {
     /*
     查询筛选列信息
      */
-    @Select("select * from (select distinct ${columnName} from ${tableName} )where ${columnName} like '%'||#{keyword,jdbcType=VARCHAR}||'%' and rownum <= #{count, jdbcType=INTEGER}")
+    @Select("select * from (select distinct ${columnName} from ${tableName} )where upper(${columnName}) like upper('%'||#{keyword,jdbcType=VARCHAR}||'%') and rownum <= #{count, jdbcType=INTEGER}")
     List<Object> getScreenData(@Param("columnName") String columnName, @Param("tableName") String tableName, @Param("keyword") String keyword, @Param("count") int count);
 
     /**