|
@@ -42,7 +42,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
tdo.order_type = 1
|
|
|
AND tdo.divide_log_id = #{divideLogId}
|
|
|
<if test="startPrice != null and startPrice != ''">
|
|
|
- AND (oo.order_price - oo.brokerage) BETWEEN #{startPrice} and #{endPrice}
|
|
|
+ AND (oo.order_price - oo.brokerage) <![CDATA[ >= ]]> #{startPrice}
|
|
|
+ </if>
|
|
|
+ <if test="endPrice != null and endPrice != ''">
|
|
|
+ AND (oo.order_price - oo.brokerage) <![CDATA[ <= ]]> #{endPrice}
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
@@ -67,7 +70,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
tdo.order_type = 2
|
|
|
AND tdo.divide_log_id = #{divideLogId}
|
|
|
<if test="startPrice != null and startPrice != ''">
|
|
|
- AND (oo.order_price - oo.brokerage) BETWEEN #{startPrice} and #{endPrice}
|
|
|
+ AND (oo.order_price - oo.brokerage) <![CDATA[ >= ]]> #{startPrice}
|
|
|
+ </if>
|
|
|
+ <if test="endPrice != null and endPrice != ''">
|
|
|
+ AND (oo.order_price - oo.brokerage) <![CDATA[ <= ]]> #{endPrice}
|
|
|
</if>
|
|
|
</select>
|
|
|
|