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
             </trim>
157
             </trim>
158
             <trim prefix="answertime = CASE " suffix="END,">
158
             <trim prefix="answertime = CASE " suffix="END,">
159
                 <foreach collection="list" index="index" item="item">
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
                 </foreach>
162
                 </foreach>
162
             </trim>
163
             </trim>
163
             <trim prefix="stuscore = CASE " suffix="END,">
164
             <trim prefix="stuscore = CASE " suffix="END,">
180
                     when pssid = #{item.pssid} then ifnull(#{item.checktime},checktime)
181
                     when pssid = #{item.pssid} then ifnull(#{item.checktime},checktime)
181
                 </foreach>
182
                 </foreach>
182
             </trim>
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
         </trim>
184
         </trim>
189
         where
185
         where
190
         <foreach collection="list" item="item" index="index" separator="or">
186
         <foreach collection="list" item="item" index="index" separator="or">

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

266
             </trim>
266
             </trim>
267
             <trim prefix="answertime = CASE " suffix="END,">
267
             <trim prefix="answertime = CASE " suffix="END,">
268
                 <foreach collection="list" index="index" item="item">
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
                 </foreach>
271
                 </foreach>
271
             </trim>
272
             </trim>
272
             <trim prefix="stuscore = CASE " suffix="END,">
273
             <trim prefix="stuscore = CASE " suffix="END,">
289
                     when psqid=#{item.psqid} then ifnull(#{item.checktime},checktime)
290
                     when psqid=#{item.psqid} then ifnull(#{item.checktime},checktime)
290
                 </foreach>
291
                 </foreach>
291
             </trim>
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
         </trim>
293
         </trim>
298
         where
294
         where
299
         <foreach collection="list" item="item" index="index" separator="or">
295
         <foreach collection="list" item="item" index="index" separator="or">

Loading…
Cancel
Save