|
|
@@ -14,7 +14,6 @@ import kd.bos.servicehelper.QueryServiceHelper;
|
|
|
import kd.hr.haos.business.domain.adminorg.service.impl.AdminOrgQueryServiceHelper;
|
|
|
import kd.hr.hbp.common.util.HRDateTimeUtils;
|
|
|
import kd.hr.hbp.common.util.HRStringUtils;
|
|
|
-import kd.wtc.wtbs.common.helper.WTCAppContextHelper;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
|
|
|
import java.time.LocalDate;
|
|
|
@@ -115,15 +114,7 @@ public class WtcUtils {
|
|
|
Date beginDate = model.getDataEntity().getDate(beginDateKer);
|
|
|
Date endDate = model.getDataEntity().getDate(endDateKer);
|
|
|
if (beginDate != null && endDate != null) {
|
|
|
- int addMonth;
|
|
|
- try {
|
|
|
- addMonth = WTCAppContextHelper.getWTCParamWithSystemCompat().getIntValue("kd.wtc.wtte.attreport.queryRangeMonth", 1);
|
|
|
- if (addMonth <= 0) {
|
|
|
- addMonth = 1;
|
|
|
- }
|
|
|
- } catch (Exception var9) {
|
|
|
- addMonth = 1;
|
|
|
- }
|
|
|
+ int addMonth = 1;
|
|
|
|
|
|
Date date = HRDateTimeUtils.addMonth(beginDate, addMonth);
|
|
|
if (!endDate.before(date)) {
|