修改BOM查询逻辑联查name和code

This commit is contained in:
2025-07-19 17:21:33 +08:00
parent 245bc4973b
commit e05a0476b2
4 changed files with 39 additions and 1 deletions

View File

@@ -20,5 +20,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and del_flag = 0
</select>
<!-- 分页联查产品和原材料名称编码支持Wrapper动态条件返回Page<WmsProductBomVo> -->
<select id="selectVoPagePlus" resultType="com.klp.domain.vo.WmsProductBomVo">
SELECT
b.*,
p.product_name AS productName,
p.product_code AS productCode,
r.raw_material_name AS rawMaterialName,
r.raw_material_code AS rawMaterialCode
FROM wms_product_bom b
LEFT JOIN wms_product p ON b.product_id = p.product_id
LEFT JOIN wms_raw_material r ON b.raw_material_id = r.raw_material_id
${ew.customSqlSegment}
</select>
</mapper>