|
|
@@ -13,6 +13,7 @@ import com.seewo.open.sdk.DefaultSeewoClient;
|
|
|
import com.seewo.open.sdk.SeewoClient;
|
|
|
import com.seewo.open.sdk.auth.Account;
|
|
|
import com.template.annotation.DESRespondSecret;
|
|
|
+import com.template.annotation.PassToken;
|
|
|
import com.template.api.SmartAttendanceControllerAPI;
|
|
|
import com.template.common.utils.*;
|
|
|
import com.template.config.ControlConfig;
|
|
|
@@ -29,6 +30,7 @@ import com.template.model.seewo.PersonalLeaveListSchoolPeriodRecordsRequest;
|
|
|
import com.template.model.seewo.PersonalLeaveListSchoolPeriodRecordsResult;
|
|
|
import com.template.model.vo.*;
|
|
|
import com.template.services.*;
|
|
|
+import com.tencentcloudapi.tci.v20190318.models.Person;
|
|
|
import org.apache.poi.ss.usermodel.Row;
|
|
|
import org.apache.poi.ss.usermodel.Sheet;
|
|
|
import org.apache.poi.ss.usermodel.Workbook;
|
|
|
@@ -136,7 +138,7 @@ public class SmartAttendanceController implements SmartAttendanceControllerAPI {
|
|
|
public CommonResult queryLeaveRecords() {
|
|
|
int findPageSize = 20;
|
|
|
|
|
|
- PersonalLeaveListSchoolPeriodRecordsResult result = getXwAttendance(TimeExchange.getDate(), TimeExchange.getDate(), 1, findPageSize);
|
|
|
+ PersonalLeaveListSchoolPeriodRecordsResult result = getXwAttendance("2024-05-23", "2024-05-23", 1, findPageSize);
|
|
|
if (result == null) {
|
|
|
return CommonResult.fail("当天不存在请假数据!");
|
|
|
}
|
|
|
@@ -407,6 +409,7 @@ public class SmartAttendanceController implements SmartAttendanceControllerAPI {
|
|
|
|
|
|
@Override
|
|
|
@DESRespondSecret(validated = true)
|
|
|
+ @PassToken
|
|
|
public CommonResult verification(String id) {
|
|
|
SmartAttendance attendance = smartAttendanceService.getById(id);
|
|
|
if (ObjectUtils.isEmpty(attendance)) {
|
|
|
@@ -484,6 +487,7 @@ public class SmartAttendanceController implements SmartAttendanceControllerAPI {
|
|
|
|
|
|
@Override
|
|
|
@DESRespondSecret(validated = true)
|
|
|
+ @PassToken
|
|
|
public CommonResult askForLeaveScreenPage(int currentPage, int pageCount, String cardNo, String ifVerification) {
|
|
|
PageUtils<AskForLeaveScreenVo> result = smartAttendanceService.askForLeaveScreenPage(currentPage, pageCount, cardNo, ifVerification);
|
|
|
|