Browse Source

完善修改状态

ywx
王宁 2 months ago
parent
commit
c0fd4e1f29

+ 1
- 1
smarking/src/main/java/com/xhkjedu/smarking/service/paper/MsPaperService.java View File

@@ -56,7 +56,7 @@ public class MsPaperService {
56 56
         paperBack.setCreatetime(timestamp);
57 57
         msPaperBackMapper.insertUseGeneratedKeys(paperBack);
58 58
         //更改试卷科目状态
59
-        msSubjectMapper.updatePstateByMpid(3, paperBack.getMpid());
59
+        msSubjectMapper.updatePstateByMpid(paperBack.getMpid(), 3);
60 60
     }
61 61
 
62 62
     /*

+ 1
- 1
smarking/src/main/resources/mapper/exam/MsSubjectMapper.xml View File

@@ -53,7 +53,7 @@
53 53
 
54 54
     <!--更改科目试卷设置状态-->
55 55
     <update id="updatePstateByMpid">
56
-        update ms_subject s,ms_paper p set s.pstate=#{pstate} where s.msid=p.msid and p.mpid=#{mpid}
56
+        update ms_subject s inner join ms_paper p on s.msid=p.msid set s.pstate=#{pstate} where p.mpid=#{mpid}
57 57
     </update>
58 58
 
59 59
     <!--获取考试下学科组长权限科目-->

Loading…
Cancel
Save