|
@@ -106,6 +106,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
+ <select id="getMonthCreditList" parameterType="com.zhongzheng.modules.top.financial.bo.TopDivideOrderQueryBo" resultType="com.zhongzheng.modules.top.financial.vo.TopDivideOrderVo">
|
|
|
+ SELECT
|
|
|
+ v.order_sn,
|
|
|
+ v.divide_company_money,
|
|
|
+ v.divide_seller_money,
|
|
|
+ v.tenant_id,
|
|
|
+ v.create_no,
|
|
|
+ v.create_username,
|
|
|
+ v.brokerage
|
|
|
+ FROM
|
|
|
+ v_top_order v
|
|
|
+ WHERE
|
|
|
+ 1 = 1
|
|
|
+ <if test="accomplishStartTime != null and accomplishStartTime != ''">
|
|
|
+ AND v.credit_time BETWEEN #{accomplishStartTime} and #{accomplishEndTime}
|
|
|
+ </if>
|
|
|
+ <if test="tenantId != null and tenantId != ''">
|
|
|
+ AND v.tenant_id = #{tenantId}
|
|
|
+ </if>
|
|
|
+ <if test="createNo != null and createNo != ''">
|
|
|
+ AND v.create_no = #{createNo}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="getMonthRefundList" parameterType="com.zhongzheng.modules.top.financial.bo.TopDivideOrderQueryBo" resultType="com.zhongzheng.modules.top.financial.vo.TopDivideOrderVo">
|
|
|
SELECT
|
|
|
tor.order_sn,
|
|
@@ -141,11 +165,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
top_old_order too
|
|
|
WHERE
|
|
|
too.status=1
|
|
|
+ AND too.check_status = 1
|
|
|
<if test="buyStartTime != null and buyStartTime != ''">
|
|
|
- AND too.buy_time <![CDATA[ >= ]]> #{buyStartTime}
|
|
|
+ AND too.check_time <![CDATA[ >= ]]> #{buyStartTime}
|
|
|
</if>
|
|
|
<if test="buyEndTime != null and buyEndTime != ''">
|
|
|
- AND too.buy_time <![CDATA[ <= ]]> #{buyEndTime}
|
|
|
+ AND too.check_time <![CDATA[ <= ]]> #{buyEndTime}
|
|
|
</if>
|
|
|
<if test="tenantId != null and tenantId != ''">
|
|
|
AND too.tenant_id = #{tenantId}
|