<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.oroqen.mapper.OroqenOrderItemMapper">

    <!-- 根据订单ID查询订单项 -->
    <select id="selectByOrderId" resultType="org.jeecg.modules.oroqen.entity.OroqenOrderItem">
        SELECT * FROM oroqen_order_item 
        WHERE order_id = #{orderId} 
        AND del_flag = 0
        ORDER BY create_time ASC
    </select>

</mapper>