Parcourir la source

【数据中心】修改索引长度

zhouy il y a 1 jour
Parent
commit
160dae9f75

+ 1 - 1
src/main/java/com/uas/eis/core/TableCreator.java

@@ -46,7 +46,7 @@ public class TableCreator {
      * 构建创建索引SQL
      */
     private String buildCreateIndexSql(String tableName) {
-        return "CREATE INDEX idx_" + tableName.toLowerCase() + "_wafer_id ON " +
+        return "CREATE INDEX idx_" + tableName.toLowerCase() + " ON " +
                 tableName + "(\"WAFER_ID\")";
     }
 

+ 1 - 1
src/main/java/com/uas/eis/task/FileParseTask.java

@@ -31,7 +31,7 @@ public class FileParseTask {
     private FileParseService fileParseService;
     @Autowired
     private TableCreator tableCreator;
-   @Scheduled(fixedRate = 600000)
+   //@Scheduled(fixedRate = 600000)
     public void dataDeal(){
         logger.info("开始解析文件");
         List<DataChipTestLog> dataChipTestLogs = baseDao.getJdbcTemplate().query("select wafer_id,lot_id,status,data_path,counter_path,dbid_ from (select wafer_id,lot_id,status,data_path,counter_path,dbid_ from " +