|
@@ -857,11 +857,6 @@ public class TimingTask {
|
|
// if (!isPrivateDeploy) {
|
|
// if (!isPrivateDeploy) {
|
|
// checkDingDingSuiteTicket();
|
|
// checkDingDingSuiteTicket();
|
|
// }
|
|
// }
|
|
-
|
|
|
|
- //判断是否是工作日,非工作日不提醒
|
|
|
|
- if (!WorkDayCalculateUtils.isWorkDay(localDate)) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
DateTimeFormatter dt = DateTimeFormatter.ofPattern("HH:mm");
|
|
DateTimeFormatter dt = DateTimeFormatter.ofPattern("HH:mm");
|
|
String str = dt.format(now);
|
|
String str = dt.format(now);
|
|
String date = DateTimeFormatter.ofPattern("yyyy-MM-dd").format(localDate);
|
|
String date = DateTimeFormatter.ofPattern("yyyy-MM-dd").format(localDate);
|
|
@@ -869,6 +864,13 @@ public class TimingTask {
|
|
.ge("alert_time", str));
|
|
.ge("alert_time", str));
|
|
typeList.forEach(t->{
|
|
typeList.forEach(t->{
|
|
if (str.equals(t.getAlertTime())) {
|
|
if (str.equals(t.getAlertTime())) {
|
|
|
|
+ //节假日是否提醒
|
|
|
|
+ if (t.getAlertNonWorkday().equals(0)){
|
|
|
|
+ //判断是否是工作日,非工作日不提醒
|
|
|
|
+ if (!WorkDayCalculateUtils.isWorkDay(localDate)) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
//发送推送提醒
|
|
//发送推送提醒
|
|
Company company = companyMapper.selectById(t.getCompanyId());
|
|
Company company = companyMapper.selectById(t.getCompanyId());
|
|
//开通了OA功能,有请假模块的,需要把当前请假的排除掉
|
|
//开通了OA功能,有请假模块的,需要把当前请假的排除掉
|