Pārlūkot izejas kodu

修复解冻查询

简德馨 2 gadi atpakaļ
vecāks
revīzija
4d20430af8

+ 2 - 2
src/main/java/org/springblade/modules/api/task/GrantSchedulingTask.java

@@ -62,7 +62,7 @@ public class GrantSchedulingTask implements SchedulingConfigurer {
 				//0/5 * * * * ?
 				//0 0 1 * * ?
 				//String cron = "0 0/5 * * * ?";
-				int taskTime = Integer.parseInt(ParamCache.getValue(CommonConstant.TASK_GRANT_TIME));//分钟
+				int taskTime = 1;//分钟
 				if(StringUtil.isEmpty(taskTime)){
 					taskTime = 10;
 				}
@@ -81,7 +81,7 @@ public class GrantSchedulingTask implements SchedulingConfigurer {
 			.eq(OrderGrant::getStatus, 1)
 			//.eq(OrderGrant::getDataDate, ymd)
 			.gt(OrderGrant::getNowNum, 0)
-			.last(" AND EXISTS (select 1 from t_consign_config f where f.is_enabled = 1 and f.id = bat_no and f.end_time < NOW()) ")
+			.last(" AND EXISTS (select 1 from t_consign f where f.consign_config_id = bat_no  AND f.end_time < NOW()) ")
 		);
 		log.info("已授权冻结的数据:" + list.size());
 		if (list.size() > 0){