|
@@ -401,7 +401,7 @@ class ProjectService extends Service
|
|
->where('title',$data['title'])
|
|
->where('title',$data['title'])
|
|
->exists();
|
|
->exists();
|
|
}
|
|
}
|
|
- if(! $bool) return [false, '项目阶段名已存在'];
|
|
|
|
|
|
+ if($bool) return [false, '项目阶段名已存在'];
|
|
|
|
|
|
return [true, ''];
|
|
return [true, ''];
|
|
}
|
|
}
|
|
@@ -550,7 +550,7 @@ class ProjectService extends Service
|
|
->where('title',$data['title'])
|
|
->where('title',$data['title'])
|
|
->exists();
|
|
->exists();
|
|
}
|
|
}
|
|
- if(! $bool) return [false, '项目阶段节点名已存在'];
|
|
|
|
|
|
+ if($bool) return [false, '项目阶段节点名已存在'];
|
|
|
|
|
|
return [true, ''];
|
|
return [true, ''];
|
|
}
|
|
}
|
|
@@ -697,7 +697,7 @@ class ProjectService extends Service
|
|
->where('title',$data['title'])
|
|
->where('title',$data['title'])
|
|
->exists();
|
|
->exists();
|
|
}
|
|
}
|
|
- if(! $bool) return [false, '节点任务名称已存在'];
|
|
|
|
|
|
+ if($bool) return [false, '节点任务名称已存在'];
|
|
|
|
|
|
return [true, ''];
|
|
return [true, ''];
|
|
}
|
|
}
|