cloudroam
2024-12-04 6c823dd44dbde79f008001a2a11e7bf9bc6bf8cc
src/main/resources/mapper/payment/DeliveryOrderMapper.xml
@@ -17,11 +17,17 @@
                #{item}
            </foreach>
        </if>
<!--        <if test="condition.startDate != null">-->
<!--            AND q.create_time &gt; #{condition.startDate}-->
<!--        </if>-->
<!--        <if test="condition.endDate != null">-->
<!--            AND q.create_time &lt;= #{condition.endDate}-->
<!--        </if>-->
        <if test="condition.startDate != null">
            AND q.create_time &gt; #{condition.startDate}
            AND o.payment_time &gt; #{condition.startDate}
        </if>
        <if test="condition.endDate != null">
            AND q.create_time &lt;= #{condition.endDate}
            AND o.payment_time &lt;= #{condition.endDate}
        </if>
        ORDER BY o.payment_time
    </select>
@@ -130,11 +136,17 @@
            AND o.warehouse_location_code LIKE concat('%', #{condition.warehouseLocationCode},'%')
        </if>
<!--        <if test="condition.startDate != null">-->
<!--            AND q.create_time &gt; #{condition.startDate}-->
<!--        </if>-->
<!--        <if test="condition.endDate != null">-->
<!--            AND q.create_time &lt;= #{condition.endDate}-->
<!--        </if>-->
        <if test="condition.startDate != null">
            AND q.create_time &gt; #{condition.startDate}
            AND o.payment_time &gt; #{condition.startDate}
        </if>
        <if test="condition.endDate != null">
            AND q.create_time &lt;= #{condition.endDate}
            AND o.payment_time &lt;= #{condition.endDate}
        </if>
        ) tt
        GROUP BY tt.id, tt.supplierName, tt.supplierTel, tt.stationName
@@ -177,11 +189,17 @@
            AND o.warehouse_location_code LIKE concat('%', #{condition.warehouseLocationCode},'%')
        </if>
<!--        <if test="condition.startDate != null">-->
<!--            AND q.create_time &gt; #{condition.startDate}-->
<!--        </if>-->
<!--        <if test="condition.endDate != null">-->
<!--            AND q.create_time &lt;= #{condition.endDate}-->
<!--        </if>-->
        <if test="condition.startDate != null">
            AND q.create_time &gt; #{condition.startDate}
            AND o.payment_time &gt; #{condition.startDate}
        </if>
        <if test="condition.endDate != null">
            AND q.create_time &lt;= #{condition.endDate}
            AND o.payment_time &lt;= #{condition.endDate}
        </if>
        ORDER BY q.arrive_time
@@ -213,11 +231,17 @@
            t.warehouse_location_code LIKE concat('%', #{name},'%')
            )
        </if>
<!--        <if test="startDate != null">-->
<!--            AND o.create_time &gt; #{startDate}-->
<!--        </if>-->
<!--        <if test="endDate != null">-->
<!--            AND o.create_time &lt;= #{endDate}-->
<!--        </if>-->
        <if test="startDate != null">
            AND o.create_time &gt; #{startDate}
            AND t.payment_time &gt; #{startDate}
        </if>
        <if test="endDate != null">
            AND o.create_time &lt;= #{endDate}
            AND t.payment_time &lt;= #{endDate}
        </if>
        <if test="statusList != null and statusList.size > 0">