yuan
7 天以前 6a51d31790f3ca0e521e9f801b52d4846049143d
src/main/resources/mapper/production/ProductWorkOrderMapper.xml
@@ -46,6 +46,9 @@
        LEFT JOIN product_model pm ON pm.id = ppri.product_model_id
        LEFT JOIN product p ON p.id = pm.product_id
        where 1=1
        <if test="c.currentUserId != null">
            and (pwo.worker_id = #{c.currentUserId} or pwo.handover_user_id = #{c.currentUserId})
        </if>
        <if test="c.workOrderNo != null and c.workOrderNo != ''">
            and pwo.work_order_no like concat('%',#{c.workOrderNo},'%')
        </if>