@@ -16,6 +16,14 @@ public interface PaperPhotoMapper {
@Delete("delete from paper_photo where paperId = #{paperId} and questionType = #{questionType} and questionId = #{questionId}")
intdeletePaperPhoto(PaperPhotopaperPhoto);
/**
* 编辑的时候根据img去删除对应的数据
* @param img
* @return
*/
@Delete("delete from paper_photo where img = #{img}")
intupdatePaperPhoto(Stringimg);
@Delete("delete from paper_photo where questionid = #{questionid} and questionType = #{questionType} and paperid = (select paperid from exam_manage where type = #{subject})")