oms配置表添加shipperid;

This commit is contained in:
王奎兴
2026-05-08 09:57:31 +08:00
parent e467193f03
commit c62ccf943e
@@ -50,8 +50,8 @@ public class SysTableConfigServiceImpl extends ServiceImpl<SysTableConfigMapper,
if (organizationId == null || StringUtils.isBlank(key)) {
throw new ServiceException("组织 ID 和键不能为空");
}
if (warehouseId == null) {
throw new ServiceException("仓库 ID 不能为空");
if (warehouseId == null && shipperId == null) {
throw new ServiceException("仓库或客户 ID 不能为空");
}
return sysTableConfigMapper.getByOrgIdAndKey(organizationId, key, warehouseId, shipperId);
}