|
|
@@ -156,9 +156,11 @@ public class TaskServiceImpl implements TaskService {
|
|
|
if (task.getId() != null) {
|
|
|
wrapper.ne(Task::getId, task.getId());
|
|
|
}
|
|
|
- Task selectOne = taskMapper.selectOne(wrapper);
|
|
|
- if (selectOne != null) {
|
|
|
- throw BusinessRuntimeException.getInstance("已新增对应的任务");
|
|
|
+ if (!"关注引导".equals(taskType.getName())) {
|
|
|
+ Task selectOne = taskMapper.selectOne(wrapper);
|
|
|
+ if (selectOne != null) {
|
|
|
+ throw BusinessRuntimeException.getInstance("已新增对应的任务");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|