liyong
2026-04-25 ffb54de25930d00f6224596c64a51541b0ffb8e9
feat(mapper): 添加工单ID筛选条件

- 在ProductionProductMainMapper.xml中添加workOrderId筛选条件
- 根据工单ID过滤生产产品主数据
- 优化查询逻辑以支持工单维度的数据检索
已修改1个文件
3 ■■■■■ 文件已修改
src/main/resources/mapper/production/ProductionProductMainMapper.xml 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/production/ProductionProductMainMapper.xml
@@ -51,6 +51,9 @@
            <if test="c.auditStatus != null">
                and ppm.audit_status = #{c.auditStatus}
            </if>
            <if test="c.workOrderId != ''">
                and pot.work_order_id = #{c.workOrderId}
            </if>
        </where>
        order by ppm.id