陶杰
2024-12-16 da12030e9d76e0a1dacea3c3bd612d646f90066e
src/main/resources/mapper/payment/OrderMapper.xml
@@ -68,7 +68,7 @@
                and (oi.status = 'reduce' or oi.status = 'abnormal')
            )
            and q.transfer_id is null
            and q.status in ('COLLECTION', 'SEND')
            and q.status in ('COLLECTION', 'SEND','RECEIVE')
        </if>
        <if test="condition.billId != null and condition.billId != ''">
            AND q.bill_id = #{condition.billId}
@@ -174,7 +174,7 @@
                and (oi.status = 'reduce' or oi.status = 'abnormal')
            )
            and q.transfer_id is null
            and q.status in ('COLLECTION', 'SEND')
            and q.status in ('COLLECTION', 'SEND','RECEIVE')
        </if>
        <if test="condition.billId != null and condition.billId != ''">
            AND q.bill_id = #{condition.billId}
@@ -410,7 +410,7 @@
            and (oi.status = 'reduce' or oi.status = 'abnormal')
            )
            and q.transfer_id is null
            and q.status in ('COLLECTION', 'SEND')
            and q.status in ('COLLECTION', 'SEND','RECEIVE')
        </if>
        <if test="condition.billId != null and condition.billId != ''">
            AND q.bill_id = #{condition.billId}
@@ -510,7 +510,7 @@
        and oi.status in ('abnormal','reduce','lack','back')
        )
        and q.transfer_id is null
        and q.status in ('COLLECTION', 'SEND')
        and q.status in ('COLLECTION', 'SEND','RECEIVE')
        union
@@ -529,7 +529,7 @@
        where oi.order_id = q.id
        and oi.status in ('abnormal','reduce','lack','back')
        and q.transfer_id is null
        and q.status in ('COLLECTION', 'SEND')
        and q.status in ('COLLECTION', 'SEND','RECEIVE')
        )
    </select>
@@ -586,7 +586,7 @@
<!--            and (oi.status = 'reduce' or oi.status = 'abnormal')-->
<!--            )-->
<!--            and q.transfer_id is null-->
<!--            and q.status in ('COLLECTION', 'SEND')-->
<!--            and q.status in ('COLLECTION', 'SEND','RECEIVE')-->
<!--        </if>-->
        <if test="condition.billId != null and condition.billId != ''">
            AND q.bill_id = #{condition.billId}