|
@@ -48,7 +48,7 @@ public class DeptInfoFacade extends DeptInfoServiceImpl {
|
|
|
QueryWrapper<DeptInfo> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
queryWrapper.eq("name", addDeptInfoVO.getName());
|
|
|
- if (this.count(queryWrapper) > 1) {
|
|
|
+ if (this.count(queryWrapper) > 0) {
|
|
|
throw new CommonException(CommonErrorCode.IS_EXISTS, "添加失败,科室已存在");
|
|
|
}
|
|
|
//添加科室
|