Commit f943af3f70618509d9585c555678147dd80ec296

Authored by 张志伟
1 parent a4a33c06

:construction: 跟进池查询参数修改

fw-valhalla-dao/src/main/resources/mapper/FollowTaskMapper.xml
@@ -137,27 +137,11 @@ @@ -137,27 +137,11 @@
137 <if test="condition.startTime2 !=null"> 137 <if test="condition.startTime2 !=null">
138 and t1.create_time &lt;= #{condition.startTime2} 138 and t1.create_time &lt;= #{condition.startTime2}
139 </if> 139 </if>
140 - <if test="condition.completeTime1 !=null or condition.completeTime2 !=null">  
141 - and (  
142 - t1.state = 2  
143 - <if test="condition.completeTime1 !=null">  
144 - and t1.close_time >= #{condition.completeTime1}  
145 - </if>  
146 - <if test="condition.completeTime2 !=null">  
147 - and t1.close_time &lt;= #{condition.completeTime2}  
148 - </if>  
149 - )  
150 - </if>  
151 - <if test="condition.defeatTime1 !=null or condition.defeatTime2 !=null">  
152 - and (  
153 - t1.state = 3  
154 - <if test="condition.defeatTime1 !=null">  
155 - and t1.close_time >= #{condition.defeatTime1}  
156 - </if>  
157 - <if test="condition.defeatTime2 !=null">  
158 - and t1.close_time &lt;= #{condition.defeatTime2}  
159 - </if>  
160 - ) 140 + <if test="condition.closeTime1 !=null">
  141 + and t1.close_time >= #{closeTime1}
  142 + </if>
  143 + <if test="condition.closeTime2 !=null">
  144 + and t1.close_time &lt;= #{closeTime2}
161 </if> 145 </if>
162 <if test="condition.state !=null"> 146 <if test="condition.state !=null">
163 and t1.state = #{condition.state} 147 and t1.state = #{condition.state}