1
xiaoyong931011
2023-02-01 e7163ceea7970a5022da2f45b51edd0c749ad14e
src/main/resources/mapper/modules/MallOrderInfoMapper.xml
@@ -152,12 +152,12 @@
                and (b.goods_name like CONCAT('%', CONCAT(#{record.query}, '%')) or b.style_name like CONCAT('%', CONCAT(#{record.query}, '%')) or b.sku_name like CONCAT('%', CONCAT(#{record.query}, '%')))
            </if>
            <if test="record.status == 6 and record.status != 0">
                and a.status = 4 and a.comment_state = 1
                and a.status = 4 and a.comment_state = 2
            </if>
            <if test="record.status == 4 and record.status != 0">
                and a.status = 4
                and a.status = 4 and a.comment_state != 2
            </if>
            <if test="record.status != 4 and record.status != 0 and record.status != 5">
            <if test="record.status != 4 and record.status != 0 and record.status != 5 and record.status != 6">
                and a.status = #{record.status}
            </if>
            <if test="record.status == 5">
@@ -170,7 +170,7 @@
                and a.order_type=#{record.orderType}
            </if>
            <if test="record.allStatus == 2">
                and a.status <![CDATA[< ]]> 4 and a.comment_state = 1
                and a.status <![CDATA[<= ]]> 4 and a.comment_state != 2
            </if>
            <if test="record.allStatus == 3">
                and a.status = 4 and a.comment_state = 2
@@ -359,4 +359,17 @@
        a.status <![CDATA[< ]]> 4
        and a.member_id = #{memberId}
    </select>
    <select id="selectCountByCreateTime" resultType="java.lang.Integer">
        select
        count(a.id)
        from mall_order_info a
        where
        a.status = 4
        and a.comment_state = 2
        <if test="createdTime != null">
            and date_format(a.CREATED_TIME, '%Y-%m-%d') = #{createdTime}
        </if>
    </select>
</mapper>