|
|
@@ -1,5 +1,6 @@
|
|
|
package com.xunmei.core.resumption.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.collection.CollectionUtil;
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
@@ -375,7 +376,7 @@ public class AppPlanServiceImpl extends ServiceImpl<AppPlanMapper, AppPlan> impl
|
|
|
}
|
|
|
|
|
|
List<RuleItemVo> itemList = app.getItemList();
|
|
|
- if (itemList.size() == 0) {
|
|
|
+ if (CollectionUtil.isEmpty(itemList)) {
|
|
|
throw new RuntimeException("请选择履职要点");
|
|
|
}
|
|
|
|
|
|
@@ -446,7 +447,7 @@ public class AppPlanServiceImpl extends ServiceImpl<AppPlanMapper, AppPlan> impl
|
|
|
.filter(e -> e.getOfOrgId().equals(app.getPlanCreateOrgId()))
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
|
- if (valitemList.size() == 0) {
|
|
|
+ if (CollectionUtil.isEmpty(valitemList)) {
|
|
|
throw new RuntimeException("请选择履职要点");
|
|
|
}
|
|
|
AppPlanToPoint item = null;
|
|
|
@@ -508,7 +509,7 @@ public class AppPlanServiceImpl extends ServiceImpl<AppPlanMapper, AppPlan> impl
|
|
|
List<RuleItemVo> valitemList = app.getItemList();
|
|
|
List<RuleItemVo> itemList = valitemList.stream().filter(e -> e.getOfOrgId().equals(app.getPlanCreateOrgId())).collect(Collectors.toList());
|
|
|
|
|
|
- if (valitemList.size() == 0) {
|
|
|
+ if (CollectionUtil.isEmpty(valitemList)) {
|
|
|
throw new RuntimeException("请选择履职要点");
|
|
|
}
|
|
|
AppPlanToPoint item = null;
|