#
mrzhssss
2022-03-18 727ca8cec69ad6305f78ad1b432f01fd2601d925
src/main/resources/mapper/OrderDetlMapper.xml
@@ -28,8 +28,8 @@
        <result column="update_by" property="updateBy" />
        <result column="update_time" property="updateTime" />
        <result column="memo" property="memo" />
    </resultMap>
    <select id="selectByOrderNo" resultMap="BaseResultMap">
        select
@@ -40,5 +40,11 @@
        and mo.order_no = #{orderNo}
        and mo.host_id = #{hostId}
    </select>
    <select id="selectBatchByOrderNo" resultMap="BaseResultMap">
        SELECT * FROM man_order_detl WHERE 1 = 1 AND
        <foreach collection="list" index="index" item="orders" open="(" close=")" separator="or">
            order_no = #{orders.orderNo}
        </foreach>
    </select>
</mapper>