src/main/resources/mapper/ExamPaperDepartment.xml
@@ -35,6 +35,10 @@ where exam_paper_id = #{id} and deleted = 0 </select> <select id="selectByUserId" resultType="java.lang.String"> SELECT b.name FROM t_user_department a INNER JOIN t_department b ON a.department_id = b.id WHERE a.user_id = #{userId} </select> <delete id="removeByExamPaperId" parameterType="java.lang.Integer"> delete from t_exam_paper_department where exam_paper_id = #{id}