|
@@ -8,6 +8,7 @@ import com.xjrsoft.common.enums.ArchivesStatusEnum;
|
|
import com.xjrsoft.common.utils.VoToColumnUtil;
|
|
import com.xjrsoft.common.utils.VoToColumnUtil;
|
|
import com.xjrsoft.module.hikvision.util.ApiUtil;
|
|
import com.xjrsoft.module.hikvision.util.ApiUtil;
|
|
import com.xjrsoft.module.personnel.entity.StundentFaceProcess;
|
|
import com.xjrsoft.module.personnel.entity.StundentFaceProcess;
|
|
|
|
+import com.xjrsoft.module.personnel.service.IFaceManagementService;
|
|
import com.xjrsoft.module.personnel.service.IStundentFaceProcessService;
|
|
import com.xjrsoft.module.personnel.service.IStundentFaceProcessService;
|
|
import com.xjrsoft.module.student.entity.BaseStudentSchoolRoll;
|
|
import com.xjrsoft.module.student.entity.BaseStudentSchoolRoll;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -28,6 +29,9 @@ public class StudentDropOutTask {
|
|
@Autowired
|
|
@Autowired
|
|
private IStundentFaceProcessService stundentFaceProcessService;
|
|
private IStundentFaceProcessService stundentFaceProcessService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private IFaceManagementService faceManagementService;
|
|
|
|
+
|
|
@Scheduled(cron = "0 */30 * * * ?")
|
|
@Scheduled(cron = "0 */30 * * * ?")
|
|
public void execute() {
|
|
public void execute() {
|
|
String active = SpringUtil.getActiveProfile();
|
|
String active = SpringUtil.getActiveProfile();
|
|
@@ -71,6 +75,7 @@ public class StudentDropOutTask {
|
|
JsonObject resultJson = parser.parse(doPost).getAsJsonObject();
|
|
JsonObject resultJson = parser.parse(doPost).getAsJsonObject();
|
|
if(resultJson.get("code").getAsInt() == 0){
|
|
if(resultJson.get("code").getAsInt() == 0){
|
|
stundentFaceProcessService.removeById(user);
|
|
stundentFaceProcessService.removeById(user);
|
|
|
|
+ faceManagementService.clearRegisterBase64ByUserId(user.getUserId());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|