|
|
@ -67,7 +67,7 @@ public class LocationServiceImpl extends ServiceImpl<LocationMapper, LocationEnt |
|
|
queryWrapper.eq(LocationEntity::getSite,locationEntity.getSite()); |
|
|
queryWrapper.eq(LocationEntity::getSite,locationEntity.getSite()); |
|
|
queryWrapper.eq(LocationEntity::getLocationId,locationEntity.getLocationId()); |
|
|
queryWrapper.eq(LocationEntity::getLocationId,locationEntity.getLocationId()); |
|
|
List<LocationEntity> houses = this.list(queryWrapper); |
|
|
List<LocationEntity> houses = this.list(queryWrapper); |
|
|
if (CollectionUtils.isEmpty(houses)){ |
|
|
|
|
|
|
|
|
if (CollectionUtils.isNotEmpty(houses)){ |
|
|
throw new RuntimeException("该工厂下已有此库位编码"); |
|
|
throw new RuntimeException("该工厂下已有此库位编码"); |
|
|
} |
|
|
} |
|
|
SysUserEntity sysUserEntity = (SysUserEntity) SecurityUtils.getSubject().getPrincipal(); |
|
|
SysUserEntity sysUserEntity = (SysUserEntity) SecurityUtils.getSubject().getPrincipal(); |
|
|
|