src/main/resources/mapper/report/OrderReportMapper.xml
@@ -47,9 +47,7 @@
            and o.payment_time < #{dto.endDate}
        </if>
        <if test="dto.partnerId != null">
            and o.create_by in (
            select user_id from t_customer_info where partner_id=#{dto.partnerId}
            )
            and o.partner_id=#{dto.partnerId}
        </if>
        ) t
@@ -96,9 +94,7 @@
                    and o.payment_time &lt; #{dto.endDate}
                </if>
                <if test="dto.partnerId != null">
                    and o.create_by in (
                        select user_id from t_customer_info where partner_id=#{dto.partnerId}
                    )
                    and o.partner_id=#{dto.partnerId}
                </if>
        ) t
@@ -130,9 +126,7 @@
            and o.payment_time &lt; #{dto.endDate}
        </if>
        <if test="dto.partnerId != null">
            and o.create_by in (
            select user_id from t_customer_info where partner_id=#{dto.partnerId}
            )
            and o.partner_id=#{dto.partnerId}
        </if>
    </select>
@@ -159,9 +153,7 @@
            and o.payment_time &lt; #{dto.endDate}
        </if>
        <if test="dto.partnerId != null">
            and o.create_by in (
            select user_id from t_customer_info where partner_id=#{dto.partnerId}
            )
            and o.partner_id=#{dto.partnerId}
        </if>
    </select>