oms配置表添加shipperid;
This commit is contained in:
+4
-4
@@ -61,8 +61,8 @@ public class SysTableConfigServiceImpl extends ServiceImpl<SysTableConfigMapper,
|
|||||||
if (organizationId == null) {
|
if (organizationId == null) {
|
||||||
throw new ServiceException("组织 ID 不能为空");
|
throw new ServiceException("组织 ID 不能为空");
|
||||||
}
|
}
|
||||||
if (warehouseId == null) {
|
if (warehouseId == null && shipperId == null) {
|
||||||
throw new ServiceException("仓库 ID 不能为空");
|
throw new ServiceException("仓库或客户 ID 不能为空");
|
||||||
}
|
}
|
||||||
return sysTableConfigMapper.listByOrgId(organizationId, warehouseId, shipperId);
|
return sysTableConfigMapper.listByOrgId(organizationId, warehouseId, shipperId);
|
||||||
}
|
}
|
||||||
@@ -79,8 +79,8 @@ public class SysTableConfigServiceImpl extends ServiceImpl<SysTableConfigMapper,
|
|||||||
if (StringUtils.isBlank(sysTableConfigDTO.getValue())) {
|
if (StringUtils.isBlank(sysTableConfigDTO.getValue())) {
|
||||||
throw new ServiceException("配置值不能为空");
|
throw new ServiceException("配置值不能为空");
|
||||||
}
|
}
|
||||||
if (sysTableConfigDTO.getWarehouseId() == null) {
|
if (sysTableConfigDTO.getWarehouseId() == null && sysTableConfigDTO.getShipperId() == null) {
|
||||||
throw new ServiceException("仓库 ID 不能为空");
|
throw new ServiceException("仓库或客户 ID 不能为空");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取登录人信息
|
// 获取登录人信息
|
||||||
|
|||||||
Reference in New Issue
Block a user