Browse Source

库位新增修改

master
wenkuan.shi 2 years ago
parent
commit
6e16fcc309
  1. 2
      src/main/java/com/spring/modules/warehouse/service/Impl/LocationServiceImpl.java

2
src/main/java/com/spring/modules/warehouse/service/Impl/LocationServiceImpl.java

@ -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();

Loading…
Cancel
Save