查询物料erp关联拓展关系

This commit is contained in:
liss
2025-10-20 16:08:50 +08:00
parent 5b5ceca41b
commit d365732a0e
2 changed files with 4 additions and 0 deletions

View File

@@ -22,6 +22,9 @@ public class ErpMaterialRespVO {
@ExcelProperty("中铜物料编码;系统使用时使用该编码") @ExcelProperty("中铜物料编码;系统使用时使用该编码")
private String downCenterNumber; private String downCenterNumber;
@Schema(description = "物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
private String materialNumber;
@Schema(description = "中铝物料编码", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "中铝物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("中铝物料编码") @ExcelProperty("中铝物料编码")
private String centerNumber; private String centerNumber;

View File

@@ -161,6 +161,7 @@ public class ErpMaterialServiceImpl implements ErpMaterialService {
PageResult<ErpMaterialDO> pageResult = erpMaterialMapper.selectPage(pageReqVO); PageResult<ErpMaterialDO> pageResult = erpMaterialMapper.selectPage(pageReqVO);
PageResult<ErpMaterialRespVO> pageResultRespVo = BeanUtils.toBean(pageResult, ErpMaterialRespVO.class); PageResult<ErpMaterialRespVO> pageResultRespVo = BeanUtils.toBean(pageResult, ErpMaterialRespVO.class);
for (ErpMaterialRespVO respVO : pageResultRespVo.getList()) { for (ErpMaterialRespVO respVO : pageResultRespVo.getList()) {
respVO.setMaterialNumber(respVO.getDownCenterNumber());
MaterialOtherDTO dto = new MaterialOtherDTO(); MaterialOtherDTO dto = new MaterialOtherDTO();
dto.setMaterialNumber(respVO.getDownCenterNumber()); dto.setMaterialNumber(respVO.getDownCenterNumber());
List<MaterialOtherDTO> dtos = baseApi.getMaterialOtherNoPage(dto); List<MaterialOtherDTO> dtos = baseApi.getMaterialOtherNoPage(dto);