|
|
@@ -30,10 +30,10 @@ public class JianyuekbScheduleTask {
|
|
|
@Scheduled(cron = "0 */10 * * * ?")
|
|
|
public void RefreshConnectionPool() throws SQLException, InterruptedException {
|
|
|
String active = SpringUtil.getActiveProfile();
|
|
|
-// if(!"prod".equals(active)){
|
|
|
-// log.info("非正式环境,无法执行获取课表数据");
|
|
|
-// return;
|
|
|
-// }
|
|
|
+ if(!"prod".equals(active)){
|
|
|
+ log.info("非正式环境,无法执行获取课表数据");
|
|
|
+ return;
|
|
|
+ }
|
|
|
DataSource datasource = DatasourceUtil.getDataSource(GlobalConstant.DEFAULT_DATASOURCE_KEY);
|
|
|
Db use = Db.use(datasource);
|
|
|
String sql = "SELECT * FROM course_receive_msg WHERE delete_mark = 0 AND is_callback IS NULL";
|