he2802 há 2 anos atrás
pai
commit
1576e7038b

+ 6 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/top/financial/bo/TopDivideOrderQueryBo.java

@@ -96,4 +96,10 @@ public class TopDivideOrderQueryBo extends BaseEntity {
 
 	@ApiModelProperty("角色ID")
 	private Long roleId;
+
+	@ApiModelProperty("起始金额")
+	private BigDecimal startPrice;
+
+	@ApiModelProperty("结束金额")
+	private BigDecimal endPrice;
 }

+ 5 - 2
zhongzheng-system/src/main/resources/mapper/modules/top/TopDivideOrderMapper.xml

@@ -40,8 +40,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         WHERE
             tdo.order_type = 1
           AND tdo.divide_log_id = #{divideLogId}
-        <if test="roleId != null and roleId != ''">
-            AND cl.role_id = #{roleId}
+        <if test="startPrice != null and startPrice != ''">
+            AND (tdo.order_price - tdo.brokerage) BETWEEN #{startPrice} and #{endPrice}
         </if>
     </select>
 
@@ -63,6 +63,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         WHERE
             tdo.order_type = 2
           AND tdo.divide_log_id = #{divideLogId}
+        <if test="startPrice != null and startPrice != ''">
+            AND (tdo.order_price - tdo.brokerage) BETWEEN #{startPrice} and #{endPrice}
+        </if>
     </select>
 
     <select id="getMonthFinishAllTenant" parameterType="com.zhongzheng.modules.top.financial.bo.TopDivideOrderQueryBo"  resultType="String">