xiaoyong931011
2022-09-19 6b5123a406f250f3ae469dead435a206148017c1
src/main/resources/mapper/modules/MallOrderInfoMapper.xml
@@ -67,6 +67,12 @@
                <if test="record.name != null and record.name != ''">
                    and b.name like CONCAT('%', CONCAT(#{record.name}, '%'))
                </if>
                <if test="record.startTime != null and record.startTime != ''">
                    and a.order_time &gt;= #{record.startTime}
                </if>
                <if test="record.endTime != null and record.endTime != ''">
                    and a.order_time &lt;= #{record.endTime}
                </if>
            </if>
        </where>
        order by a.created_time desc