1
0
mirror of synced 2025-12-22 18:08:12 +08:00

🆕 #2213【企业微信】 增加获取企业所有打卡规则的接口

This commit is contained in:
longliveh
2021-07-22 13:54:15 +08:00
committed by GitHub
parent e53733b842
commit 497a0b7017
5 changed files with 843 additions and 1 deletions

View File

@@ -53,7 +53,7 @@ public class WxCpOaServiceImplTest {
@Test
public void testGetCheckinDayData() throws ParseException, WxErrorException {
Date startTime = DateFormatUtils.ISO_8601_EXTENDED_DATE_FORMAT.parse("2021-07-01");
Date startTime = DateFormatUtils.ISO_8601_EXTENDED_DATE_FORMAT.parse("2021-06-30");
Date endTime = DateFormatUtils.ISO_8601_EXTENDED_DATE_FORMAT.parse("2021-07-31");
List<WxCpCheckinDayData> results = wxService.getOaService()
@@ -103,6 +103,16 @@ public class WxCpOaServiceImplTest {
System.out.println(gson.toJson(results));
}
@Test
public void testGetCropCheckinOption() throws WxErrorException {
Date now = new Date();
List<WxCpCropCheckinOption> results = wxService.getOaService().getCropCheckinOption();
assertThat(results).isNotNull();
System.out.println("results ");
System.out.println(gson.toJson(results));
}
@Test
public void testGetApprovalInfo() throws WxErrorException, ParseException {
Date startTime = DateFormatUtils.ISO_8601_EXTENDED_DATE_FORMAT.parse("2019-12-01");