xiaoyong931011
2022-12-22 c16f945a56dbedbfd5778a6de7b124298588607c
src/main/resources/mapper/modules/MallOrderInfoMapper.xml
@@ -111,6 +111,7 @@
        <result column="remark" property="remark" />
        <result column="del_flag" property="delFlag" />
        <result column="deliver_type" property="deliverType" />
        <result column="shop_id" property="shopId" />
        <collection property="items" ofType="cc.mrbird.febs.mall.entity.MallOrderItem">
            <id property="id" column="item_id" />
            <result property="orderId" column="order_id" />
@@ -162,6 +163,12 @@
            </if>
            <if test="record.orderType != null">
                and a.order_type=#{record.orderType}
            </if>
            <if test="record.allStatus == 2">
                and a.status <![CDATA[<= ]]> 4
            </if>
            <if test="record.allStatus == 3">
                and a.status <![CDATA[>= ]]> 4
            </if>
        </where>
        order by a.created_time desc
@@ -308,4 +315,13 @@
            #{item}
        </foreach>
    </select>
    <select id="selectCountByCreateTimeAndMemberId" resultType="java.lang.Integer">
        select
            count(a.id)
        from mall_order_info a
        where
            date_format(a.CREATED_TIME, '%Y-%m-%d') = #{createdTime}
            and a.member_id = #{memberId}
    </select>
</mapper>