|
@@ -12,7 +12,7 @@ import com.rongwei.training.domain.TrainingDemandSurveyBackupsDo;
|
|
|
import com.rongwei.trainingcommon.sys.service.EmpExamService;
|
|
|
import com.rongwei.trainingcommon.sys.service.PlanPaperService;
|
|
|
import com.rongwei.trainingcommon.sys.service.PlanService;
|
|
|
-import com.rongwei.trainingcommon.sys.service.SendNotifyService;
|
|
|
+import com.rongwei.trainingcommon.sys.service.TrainingSendNotifyService;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -23,8 +23,10 @@ import java.util.concurrent.ThreadPoolExecutor;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
-import static com.rongwei.safecommon.utils.SaveConstans.NotifyType.TRAINING;
|
|
|
-import static com.rongwei.safecommon.utils.SaveConstans.NotifyType.TRAININGFORM;
|
|
|
+import static com.rongwei.safecommon.utils.SaveConstans.DEFAULT_SEPARATOR;
|
|
|
+import static com.rongwei.safecommon.utils.SaveConstans.NotifyContent.*;
|
|
|
+import static com.rongwei.safecommon.utils.SaveConstans.NotifyTitle.*;
|
|
|
+import static com.rongwei.safecommon.utils.SaveConstans.NotifyType.*;
|
|
|
|
|
|
/**
|
|
|
* SendNotifyService class
|
|
@@ -33,7 +35,7 @@ import static com.rongwei.safecommon.utils.SaveConstans.NotifyType.TRAININGFORM;
|
|
|
* @date 2023/12/15
|
|
|
*/
|
|
|
@Service
|
|
|
-public class SendNotifyServiceImpl implements SendNotifyService {
|
|
|
+public class TrainingSendNotifyServiceImpl implements TrainingSendNotifyService {
|
|
|
private final Logger log = LoggerFactory.getLogger(this.getClass().getName());
|
|
|
public static final ThreadPoolExecutor threadPool = ExecutorBuilder.create()
|
|
|
.setCorePoolSize(8)
|
|
@@ -49,16 +51,7 @@ public class SendNotifyServiceImpl implements SendNotifyService {
|
|
|
private SendMailServiceImpl sendMailService;
|
|
|
@Autowired
|
|
|
private EmpExamService empExamService;
|
|
|
- public static final String CUT_OFF_TRAIN_TITLE = "培训截止提醒";
|
|
|
- public static final String CUT_OFF_TRAIN_CONTENT = "培训考试将于%tF截止,请尽快参加考试。";
|
|
|
- public static final String TRAIN_NOTIFY_TITLE = "我的培训";
|
|
|
- public static final String TRAIN_NOTIFY_CONTENT = "%s,培训时间:%tF至%tF";
|
|
|
|
|
|
- public static final String CANCEL_TRAIN_TITLE = "培训取消提醒";
|
|
|
- public static final String CANCEL_TRAIN_CONTENT = "%s已取消";
|
|
|
-
|
|
|
- public static final String QUESTIONNAIRE_SURVEY_TITLE="培训需求调查提醒";
|
|
|
- public static final String QUESTIONNAIRE_SURVEY_CONTENT="%s年%s培训需求,已发布";
|
|
|
|
|
|
// 培训计划已发布
|
|
|
private static final String TRAINING_PLAN_PUBLISH = "y";
|
|
@@ -123,7 +116,7 @@ public class SendNotifyServiceImpl implements SendNotifyService {
|
|
|
/**
|
|
|
* 问卷调查提现
|
|
|
*
|
|
|
- * @param planAndUserIdMap
|
|
|
+ * @param
|
|
|
*/
|
|
|
public void sendQuestionnaireSurveyNotify(List<TrainingDemandSurveyBackupsDo> saveDemandSurveyBackupsDos) {
|
|
|
// 获取用户id
|
|
@@ -161,4 +154,6 @@ public class SendNotifyServiceImpl implements SendNotifyService {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
}
|