mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-05 17:38:05 +08:00
🐛 修复OA获取打卡月报数据时间月跨度问题
This commit is contained in:
parent
1af394cdd9
commit
6f23c5e289
@ -29,7 +29,7 @@ import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Oa.*;
|
||||
public class WxCpOaServiceImpl implements WxCpOaService {
|
||||
private final WxCpService mainService;
|
||||
|
||||
private static final int MONTH_SECONDS = 30 * 24 * 60 * 60;
|
||||
private static final int MONTH_SECONDS = 31 * 24 * 60 * 60;
|
||||
private static final int USER_IDS_LIMIT = 100;
|
||||
|
||||
@Override
|
||||
@ -49,7 +49,7 @@ public class WxCpOaServiceImpl implements WxCpOaService {
|
||||
long endTimestamp = endTime.getTime() / 1000L;
|
||||
long startTimestamp = startTime.getTime() / 1000L;
|
||||
|
||||
if (endTimestamp - startTimestamp < 0 || endTimestamp - startTimestamp >= MONTH_SECONDS) {
|
||||
if (endTimestamp - startTimestamp < 0 || endTimestamp - startTimestamp > MONTH_SECONDS) {
|
||||
throw new WxRuntimeException("获取记录时间跨度不超过一个月");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user