|
@@ -157,7 +157,8 @@
|
157
|
157
|
</trim>
|
158
|
158
|
<trim prefix="answertime = CASE " suffix="END,">
|
159
|
159
|
<foreach collection="list" index="index" item="item">
|
160
|
|
- when pssid = #{item.pssid} then #{item.answertime}
|
|
160
|
+ when pssid = #{item.pssid} then if(#{item.answertime} is null
|
|
161
|
+ or #{item.answertime}=0,answertime,#{item.answertime})
|
161
|
162
|
</foreach>
|
162
|
163
|
</trim>
|
163
|
164
|
<trim prefix="stuscore = CASE " suffix="END,">
|
|
@@ -180,11 +181,6 @@
|
180
|
181
|
when pssid = #{item.pssid} then ifnull(#{item.checktime},checktime)
|
181
|
182
|
</foreach>
|
182
|
183
|
</trim>
|
183
|
|
- <trim prefix="checkcomm = CASE " suffix="END,">
|
184
|
|
- <foreach collection="list" index="index" item="item" >
|
185
|
|
- when pssid = #{item.pssid} then #{item.checkcomm}
|
186
|
|
- </foreach>
|
187
|
|
- </trim>
|
188
|
184
|
</trim>
|
189
|
185
|
where
|
190
|
186
|
<foreach collection="list" item="item" index="index" separator="or">
|