Commit 36f85f62 by Water Wang

optimize

parent 40920b80
...@@ -55,6 +55,11 @@ ...@@ -55,6 +55,11 @@
<!-- <if test="isStatement == 0">--> <!-- <if test="isStatement == 0">-->
<choose> <choose>
<when test="type == 1"> <when test="type == 1">
<choose>
<when test="inCommissionStartTime == null and inCommissionEndTime == null and outCommissionStartTime == null and outCommissionEndTime == null">
and receive.mon024_302 is not null or pay.MON025_302 is not null
</when>
<otherwise>
<if test="inCommissionStartTime != null"> <if test="inCommissionStartTime != null">
and CONVERT(receive.mon024_302,signed) &gt;= CONVERT(#{inCommissionStartTime,jdbcType=VARCHAR},signed) and CONVERT(receive.mon024_302,signed) &gt;= CONVERT(#{inCommissionStartTime,jdbcType=VARCHAR},signed)
</if> </if>
...@@ -67,6 +72,8 @@ ...@@ -67,6 +72,8 @@
<if test="outCommissionEndTime != null"> <if test="outCommissionEndTime != null">
and CONVERT(pay.MON025_302,signed) &lt;= CONVERT(#{outCommissionEndTime,jdbcType=VARCHAR},signed) and CONVERT(pay.MON025_302,signed) &lt;= CONVERT(#{outCommissionEndTime,jdbcType=VARCHAR},signed)
</if> </if>
</otherwise>
</choose>
</when> </when>
<otherwise> <otherwise>
<if test="inCommissionStartTime != null"> <if test="inCommissionStartTime != null">
......
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