Browse Source

qianfan task result add judge update

pull/2/head
qiaozhanwei 6 years ago
parent
commit
b27a080baa
  1. 5
      escheduler-dao/src/main/java/cn/escheduler/dao/TaskRecordDao.java

5
escheduler-dao/src/main/java/cn/escheduler/dao/TaskRecordDao.java

@ -272,8 +272,8 @@ public class TaskRecordDao {
* @return * @return
*/ */
public static TaskRecordStatus getTaskRecordState(String procName,String procDate){ public static TaskRecordStatus getTaskRecordState(String procName,String procDate){
String sql = String.format("SELECT * FROM eamp_hive_log_hd WHERE PROC_NAME='%s' and PROC_DATE='%s'" String sql = String.format("SELECT * FROM eamp_hive_log_hd WHERE PROC_NAME='%s' and PROC_DATE like '%s'"
,procName,procDate); ,procName,procDate + "%");
List<TaskRecord> taskRecordList = getQueryResult(sql); List<TaskRecord> taskRecordList = getQueryResult(sql);
// contains no record and sql exception // contains no record and sql exception
@ -297,5 +297,4 @@ public class TaskRecordDao {
} }
} }
} }

Loading…
Cancel
Save