Hentua
2023-06-15 7f55c18d7db36c9cad2ac96e481680bc1107e51c
src/main/resources/mapper/modules/MallOrderInfoMapper.xml
@@ -319,4 +319,14 @@
            #{item}
        </foreach>
    </select>
    <select id="selectScoreOrderListInDate" resultType="cc.mrbird.febs.mall.entity.MallOrderInfo">
        select * from mall_order_info orderInfo
            inner join mall_order_item orderItem on orderInfo.id=orderItem.order_id
            inner join mall_goods goodsInfo on orderItem.goods_id=goodsInfo.ID and goodsInfo.goods_type = 2 and goodsInfo.id=#{goodsId}
        where orderInfo.order_time >= #{startDate}
            and orderInfo.order_time &lt;= #{endDate}
            and orderInfo.status in (2,3,4,5)
            and orderInfo.member_id=#{memberId}
    </select>
</mapper>