|
|
@@ -1,6 +1,7 @@
|
|
|
package com.xjrsoft.module.job;
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
+import cn.hutool.extra.spring.SpringUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.google.gson.JsonArray;
|
|
|
import com.google.gson.JsonObject;
|
|
|
@@ -41,7 +42,11 @@ public class StudentFaceTask {
|
|
|
@Async
|
|
|
@Scheduled(cron = "0 */20 * * * ?")
|
|
|
public void addSubmitRecord() {
|
|
|
-
|
|
|
+ String active = SpringUtil.getActiveProfile();
|
|
|
+ if (!"prod".equals(active)) {
|
|
|
+ log.info("非正式环境,无法执行数据推送");
|
|
|
+ return;
|
|
|
+ }
|
|
|
List<StundentFaceProcess> list = stundentFaceProcessService.list(
|
|
|
new QueryWrapper<StundentFaceProcess>().lambda()
|
|
|
.eq(StundentFaceProcess::getDeleteMark, DeleteMark.NODELETE.getCode())
|