liyong
2026-04-27 ebf08431bb703086da2129f59d11d5bce25ffb49
fix(mapper): 修正生产产品主表查询中的工单ID关联字段

- 将查询条件中的pot.work_order_id更正为ppm.work_order_id
- 确保工单ID过滤条件正确关联到生产产品主表
已修改1个文件
2 ■■■ 文件已修改
src/main/resources/mapper/production/ProductionProductMainMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/production/ProductionProductMainMapper.xml
@@ -52,7 +52,7 @@
                and ppm.audit_status = #{c.auditStatus}
            </if>
            <if test="c.workOrderId != ''">
                and pot.work_order_id = #{c.workOrderId}
                and ppm.work_order_id = #{c.workOrderId}
            </if>
        </where>
        order by ppm.id