|
@@ -122,8 +122,7 @@ public class ApplyAreasServiceImpl extends ServiceImpl<ApplyAreasMapper, ApplyAr
|
|
|
|
|
|
private boolean checkNameUnique(ApplyAreas entity) {
|
|
|
ApplyAreas info = getOne(new LambdaQueryWrapper<ApplyAreas>()
|
|
|
- .eq(ApplyAreas::getAreaName,entity.getAreaName())
|
|
|
- .last("limit 1"));
|
|
|
+ .eq(ApplyAreas::getAreaName,entity.getAreaName()).eq(false,ApplyAreas::getStatus,-1).last("limit 1"));
|
|
|
if (Validator.isNotNull(info)) {
|
|
|
return true;
|
|
|
}
|