|
|
@@ -30,6 +30,7 @@ import com.template.services.*;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
@@ -376,6 +377,21 @@ public class SmartAttendanceController implements SmartAttendanceControllerAPI {
|
|
|
return CommonResult.ok(result);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ @DESRespondSecret(validated = true)
|
|
|
+ public CommonResult verification(String id) {
|
|
|
+ SmartAttendance attendance = smartAttendanceService.getById(id);
|
|
|
+ if (ObjectUtils.isEmpty(attendance)) {
|
|
|
+ return CommonResult.fail("该id不存在");
|
|
|
+ }
|
|
|
+ attendance.setIfVerification(1);
|
|
|
+ boolean update = smartAttendanceService.updateById(attendance);
|
|
|
+ if (update) {
|
|
|
+ return CommonResult.ok();
|
|
|
+ }
|
|
|
+ return CommonResult.fail();
|
|
|
+ }
|
|
|
+
|
|
|
public PersonalLeaveListSchoolPeriodRecordsResult getXwAttendance(String startDate, String endDate, Integer currentPage, Integer pageSize) {
|
|
|
//初始化客户端
|
|
|
SeewoClient seewoClient = new DefaultSeewoClient(new Account(seewoConfig.getAppId(), seewoConfig.getAppSecret()));
|