Commit 7e63c19d by 程裕兵

feat:sql error

parent 0ddceb8c
...@@ -101,6 +101,12 @@ ...@@ -101,6 +101,12 @@
<if test="query.transState == null or query.transState == ''"> <if test="query.transState == null or query.transState == ''">
and trans_state in ('PAY_SUCCESS', 'PAY_IN', 'REFUNDING', 'REFUND_SUCCESS', 'REFUND_FAIL') and trans_state in ('PAY_SUCCESS', 'PAY_IN', 'REFUNDING', 'REFUND_SUCCESS', 'REFUND_FAIL')
</if> </if>
<if test="query.transStateList != null">
and trans_state in
<foreach collection="query.transStateList" separator="," item="item" open="(" close=")">
item
</foreach>
</if>
<if test="query.orderType != null and query.orderType != ''"> <if test="query.orderType != null and query.orderType != ''">
and order_type = #{query.orderType} and order_type = #{query.orderType}
</if> </if>
...@@ -114,16 +120,16 @@ ...@@ -114,16 +120,16 @@
and studio_name like concat('%', #{query.studioName}, '%') and studio_name like concat('%', #{query.studioName}, '%')
</if> </if>
<if test="query.createStartTime != null"> <if test="query.createStartTime != null">
and studio_id >= #{query.createStartTime} and create_time >= #{query.createStartTime}
</if> </if>
<if test="query.createEndTime != null"> <if test="query.createEndTime != null">
and studio_id &lt;= #{query.createEndTime} and create_time &lt;= #{query.createEndTime}
</if> </if>
<if test="query.successStartTime != null"> <if test="query.successStartTime != null">
and studio_id >= #{query.successStartTime} and success_time >= #{query.successStartTime}
</if> </if>
<if test="query.successEndTime != null"> <if test="query.successEndTime != null">
and studio_id &lt;= #{query.successEndTime} and success_time &lt;= #{query.successEndTime}
</if> </if>
</where> </where>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment