Browse Source

学生网页端提交作业完善

tags/正式3.10.0
雍文秀 1 year ago
parent
commit
29ca70808c

+ 2
- 6
sstudy/src/main/resources/mapper/paperstudent/PaperStudedntScantronMapper.xml View File

@@ -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">

+ 2
- 6
sstudy/src/main/resources/mapper/paperstudent/PaperStudentMapper.xml View File

@@ -266,7 +266,8 @@
266 266
             </trim>
267 267
             <trim prefix="answertime = CASE " suffix="END,">
268 268
                 <foreach collection="list" index="index" item="item">
269
-                    when psqid=#{item.psqid} then #{item.answertime}
269
+                    when psqid=#{item.psqid} then if(#{item.answertime} is null
270
+                    or #{item.answertime}=0,answertime,#{item.answertime})
270 271
                 </foreach>
271 272
             </trim>
272 273
             <trim prefix="stuscore = CASE " suffix="END,">
@@ -289,11 +290,6 @@
289 290
                     when psqid=#{item.psqid} then ifnull(#{item.checktime},checktime)
290 291
                 </foreach>
291 292
             </trim>
292
-            <trim prefix="checkcomm = CASE " suffix="END,">
293
-                <foreach collection="list" index="index" item="item" >
294
-                    when psqid = #{item.psqid} then #{item.checkcomm}
295
-                </foreach>
296
-            </trim>
297 293
         </trim>
298 294
         where
299 295
         <foreach collection="list" item="item" index="index" separator="or">

Loading…
Cancel
Save