陶杰
2024-12-25 51eac60f5d04af43f93590ad2219f9bdda313745
src/main/resources/mapper/statisticsAnalysis/SalesStatisticsAnalysisMapper.xml
@@ -62,6 +62,9 @@
        <if test="dto.registerTel!=null and dto.registerTel!=''">
            AND si.contact_tel LIKE CONCAT('%',#{dto.registerTel}, '%')
        </if>
        <if test="dto.contactTel!=null and dto.contactTel!=''">
            AND si.contact_tel LIKE CONCAT('%',#{dto.contactTel}, '%')
        </if>
        <if test="dto.stationId != null">
            AND oi.station_id = #{dto.stationId}
        </if>
@@ -90,6 +93,9 @@
        <if test="dto.createEndDate != null">
            AND o.payment_time &lt; #{dto.createEndDate}
        </if>
        <if test="dto.orderField !=null and dto.orderField !=''">
            order by ${dto.orderField} ${dto.orderType}
        </if>
</sql>