oms配置表添加shipperid;

This commit is contained in:
王奎兴
2026-05-08 10:11:34 +08:00
parent c62ccf943e
commit e8b4201a1c
@@ -61,8 +61,8 @@ public class SysTableConfigServiceImpl extends ServiceImpl<SysTableConfigMapper,
if (organizationId == null) {
throw new ServiceException("组织 ID 不能为空");
}
if (warehouseId == null) {
throw new ServiceException("仓库 ID 不能为空");
if (warehouseId == null && shipperId == null) {
throw new ServiceException("仓库或客户 ID 不能为空");
}
return sysTableConfigMapper.listByOrgId(organizationId, warehouseId, shipperId);
}
@@ -79,8 +79,8 @@ public class SysTableConfigServiceImpl extends ServiceImpl<SysTableConfigMapper,
if (StringUtils.isBlank(sysTableConfigDTO.getValue())) {
throw new ServiceException("配置值不能为空");
}
if (sysTableConfigDTO.getWarehouseId() == null) {
throw new ServiceException("仓库 ID 不能为空");
if (sysTableConfigDTO.getWarehouseId() == null && sysTableConfigDTO.getShipperId() == null) {
throw new ServiceException("仓库或客户 ID 不能为空");
}
// 获取登录人信息