|
|
@@ -8,6 +8,7 @@ import kd.bos.orm.query.QCP;
|
|
|
import kd.bos.orm.query.QFilter;
|
|
|
import kd.bos.servicehelper.QueryServiceHelper;
|
|
|
import kd.hr.hbp.business.servicehelper.HRMServiceHelper;
|
|
|
+import kd.hr.hbp.common.util.HRDateTimeUtils;
|
|
|
import kd.sdk.wtc.wtp.business.attfile.AttFileVersion;
|
|
|
import nckd.jxccl.hr.htm.common.quitapply.QuitApplyConstant;
|
|
|
|
|
|
@@ -79,7 +80,8 @@ public class QuitApplyFormPlugin extends AbstractFormPlugin {
|
|
|
private void setUnUsedAnnualLeave(Long employeeId, Date contractEndDate) {
|
|
|
// from: kd.sdk.wtc.wtp.business.helper.WTPServiceHelper.getAttFile
|
|
|
// 获取人员考勤档案
|
|
|
- AttFileVersion attFile = HRMServiceHelper.invokeBizService(QuitApplyConstant.WTC_CLOUD, QuitApplyConstant.WTBS_APP, "IAttFileQueryService", "attFileQuery", new Object[]{contractEndDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate(), employeeId});
|
|
|
+
|
|
|
+ AttFileVersion attFile = HRMServiceHelper.invokeBizService(QuitApplyConstant.WTC_CLOUD, QuitApplyConstant.WTBS_APP, "IAttFileQueryService", "attFileQuery", new Object[]{HRDateTimeUtils.localDate2Date(contractEndDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate()), employeeId});
|
|
|
if (attFile == null) {
|
|
|
getView().showTipNotification("未获取到应休未休剩余年假,请检查离职人员是否存在离职时间内有效的考勤档案");
|
|
|
return;
|