chenrui
2025-04-09 00c23dd7d4a8f229d5c7fbe3439c6ea230fa7f48
inspect-server/src/main/resources/mapper/InsProductMapper.xml
@@ -141,4 +141,20 @@
        where io2.id = #{orderId}
        and ip.is_binding != 1
    </select>
    <!-- 根据订单查询产品id -->
    <select id="selectProductByOrderId" resultType="com.ruoyi.inspect.pojo.InsProduct">
        select ip.*, is2.sample_code
        from ins_product ip
                 left join ins_sample is2 on is2.id = ip.ins_sample_id
        where is2.ins_order_id = #{orderId}
    </select>
    <update id="batchUpdateInsProductCheckUserId">
        UPDATE ins_product SET check_user_id = #{checkUserId}
        WHERE ID IN
        <foreach collection="insProductIds" open="(" close=")" item="item" separator=",">
            #{item}
        </foreach>
    </update>
</mapper>