mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
Merge branch 'pr-archibald-nice-empty-job-notifyuserids' into 4.3.4
This commit is contained in:
commit
6bcc275a70
@ -89,9 +89,13 @@ public class JobServiceImpl implements JobService {
|
|||||||
fillDefaultValue(jobInfoDO);
|
fillDefaultValue(jobInfoDO);
|
||||||
|
|
||||||
// 转化报警用户列表
|
// 转化报警用户列表
|
||||||
if (!CollectionUtils.isEmpty(request.getNotifyUserIds())) {
|
if (request.getNotifyUserIds() != null) {
|
||||||
|
if (request.getNotifyUserIds().size() == 0) {
|
||||||
|
jobInfoDO.setNotifyUserIds(null);
|
||||||
|
} else {
|
||||||
jobInfoDO.setNotifyUserIds(SJ.COMMA_JOINER.join(request.getNotifyUserIds()));
|
jobInfoDO.setNotifyUserIds(SJ.COMMA_JOINER.join(request.getNotifyUserIds()));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
LifeCycle lifecycle = Optional.ofNullable(request.getLifeCycle()).orElse(LifeCycle.EMPTY_LIFE_CYCLE);
|
LifeCycle lifecycle = Optional.ofNullable(request.getLifeCycle()).orElse(LifeCycle.EMPTY_LIFE_CYCLE);
|
||||||
jobInfoDO.setLifecycle(JSON.toJSONString(lifecycle));
|
jobInfoDO.setLifecycle(JSON.toJSONString(lifecycle));
|
||||||
// 检查定时策略
|
// 检查定时策略
|
||||||
|
Loading…
x
Reference in New Issue
Block a user