Commit 3b692f2e44305237b2c9fe96e3c24bd4b4606e2a
1 parent
f3486a4f
查询参数优化
Showing
1 changed file
with
4 additions
and
4 deletions
fw-valhalla-dao/src/main/resources/mapper/FollowTaskMapper.xml
... | ... | @@ -91,10 +91,10 @@ |
91 | 91 | ) |
92 | 92 | </if> |
93 | 93 | <if test="condition.closeTime1 !=null"> |
94 | - and t1.close_time >= #{closeTime1} | |
94 | + and t1.close_time >= #{condition.closeTime1} | |
95 | 95 | </if> |
96 | 96 | <if test="condition.closeTime2 !=null"> |
97 | - and t1.close_time <= #{closeTime2} | |
97 | + and t1.close_time <= #{condition.closeTime2} | |
98 | 98 | </if> |
99 | 99 | <if test="condition.state !=null"> |
100 | 100 | and t1.state = #{condition.state} |
... | ... | @@ -182,10 +182,10 @@ |
182 | 182 | ) |
183 | 183 | </if> |
184 | 184 | <if test="condition.closeTime1 !=null"> |
185 | - and t1.close_time >= #{closeTime1} | |
185 | + and t1.close_time >= #{condition.closeTime1} | |
186 | 186 | </if> |
187 | 187 | <if test="condition.closeTime2 !=null"> |
188 | - and t1.close_time <= #{closeTime2} | |
188 | + and t1.close_time <= #{condition.closeTime2} | |
189 | 189 | </if> |
190 | 190 | <if test="condition.state !=null"> |
191 | 191 | and t1.state = #{condition.state} | ... | ... |