|
|
@ -49,6 +49,14 @@ public class PartAttributeServiceImpl extends ServiceImpl<PartAttributeMapper, P |
|
|
throw new XJException("查询物料资料必须指定当前工厂"); |
|
|
throw new XJException("查询物料资料必须指定当前工厂"); |
|
|
} |
|
|
} |
|
|
queryDto.setSite(queryDto.getSite().trim()); |
|
|
queryDto.setSite(queryDto.getSite().trim()); |
|
|
|
|
|
// 子工厂为空时保留全部查询;传入编码先去空白,禁止借筛选条件读取其他工厂的资料 - rqrq |
|
|
|
|
|
queryDto.setSubSite(queryDto.getSubSite() == null ? "" : queryDto.getSubSite().trim()); |
|
|
|
|
|
if (!queryDto.getSubSite().isEmpty()) { |
|
|
|
|
|
// 按当前大site与所选子site核对配置归属,未配置或跨工厂时中止查询,避免伪造下拉参数 - rqrq |
|
|
|
|
|
if (siteMapper.selectSiteSubDataByKey(queryDto.getSite(), queryDto.getSubSite()) == null) { |
|
|
|
|
|
throw new XJException("所选子工厂不属于当前工厂,请重新选择"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
// 以请求工厂查询其小site资料并兼容原站点记录,分页查询失败直接抛出,不返回其他工厂数据 - rqrq |
|
|
// 以请求工厂查询其小site资料并兼容原站点记录,分页查询失败直接抛出,不返回其他工厂数据 - rqrq |
|
|
IPage<PartAttribute> page = partAttributeMapper.getPartAttributeList( |
|
|
IPage<PartAttribute> page = partAttributeMapper.getPartAttributeList( |
|
|
new Page<>(queryDto.getPage(), queryDto.getSize()), queryDto); |
|
|
new Page<>(queryDto.getPage(), queryDto.getSize()), queryDto); |
|
|
|