diff --git a/src/main/java/cn/com/tenlion/service/examcheck/IExamCheckService.java b/src/main/java/cn/com/tenlion/service/examcheck/IExamCheckService.java index e83afe2..7e9984d 100644 --- a/src/main/java/cn/com/tenlion/service/examcheck/IExamCheckService.java +++ b/src/main/java/cn/com/tenlion/service/examcheck/IExamCheckService.java @@ -87,6 +87,15 @@ public interface IExamCheckService { */ void update(String examCheckId, ExamCheckVO examCheckVO); + /** + * 修改 + * + * @param classPlanId + * @param examCheckVO + * @return + */ + void updateByClassPlanId(String classPlanId, ExamCheckVO examCheckVO); + /** * 修改 * diff --git a/src/main/java/cn/com/tenlion/service/examcheck/impl/ExamCheckServiceImpl.java b/src/main/java/cn/com/tenlion/service/examcheck/impl/ExamCheckServiceImpl.java index f86f804..0b54ef3 100644 --- a/src/main/java/cn/com/tenlion/service/examcheck/impl/ExamCheckServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/examcheck/impl/ExamCheckServiceImpl.java @@ -105,6 +105,14 @@ public class ExamCheckServiceImpl extends DefaultBaseService implements IExamChe update(null, examCheckId, examCheckVO); } + @Override + public void updateByClassPlanId(String classPlanId, ExamCheckVO examCheckVO) { + Map params = HashMapUtil.beanToMap(examCheckVO); + params.put("classPlanId", classPlanId); + setUpdateInfo(params); + examCheckDao.update(params); + } + @Override public void update(String token, String examCheckId, ExamCheckVO examCheckVO) { Map params = HashMapUtil.beanToMap(examCheckVO); diff --git a/src/main/resources/mybatis/mapper/examcheck/exam-check-mapper.xml b/src/main/resources/mybatis/mapper/examcheck/exam-check-mapper.xml index 1f46638..a564fc5 100644 --- a/src/main/resources/mybatis/mapper/examcheck/exam-check-mapper.xml +++ b/src/main/resources/mybatis/mapper/examcheck/exam-check-mapper.xml @@ -142,7 +142,13 @@ modifier = #{modifier}, exam_check_id = exam_check_id WHERE - exam_check_id = #{examCheckId} + 1 = 1 + + AND exam_check_id = #{examCheckId} + + + AND plan_id = #{classPlanId} +