|
@@ -44,10 +44,10 @@ public class PlatformAreaServiceImpl extends AbstractCrudService<PlatformAreaMap
|
|
|
@Override
|
|
|
public void platformAreaAdd(PlatformArea platformArea){
|
|
|
LambdaQueryWrapper<PlatformArea> queryWrapper = Wrappers.lambdaQuery();
|
|
|
- queryWrapper.eq(PlatformArea::getEnable, 1).eq(PlatformArea::getPlatformAreaName, platformArea.getPlatformAreaName());
|
|
|
+ queryWrapper.eq(PlatformArea::getEnable, 1).eq(PlatformArea::getPlatformAreaName, platformArea.getPlatformAreaCode());
|
|
|
List<PlatformArea> platformAreaList = this.list(queryWrapper);
|
|
|
if (platformAreaList!=null&&!platformAreaList.isEmpty()){
|
|
|
- throw new BusinessException("台区名称重复,不可重复添加台区");
|
|
|
+ throw new BusinessException("台区编号重复,不可重复添加台区");
|
|
|
}{
|
|
|
platformArea.setEnable(1);
|
|
|
this.save(platformArea);
|