From 0e2bc4a41aec890ba75fd871b95cb156467114ae Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Mon, 17 May 2021 15:48:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E7=8F=AD=E8=AE=A1=E5=88=92=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E6=96=B0=E5=A2=9E=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/tenlion/service/examcheck/IExamCheckService.java | 9 +++++++++ .../service/examcheck/impl/ExamCheckServiceImpl.java | 8 ++++++++ .../mybatis/mapper/examcheck/exam-check-mapper.xml | 8 +++++++- 3 files changed, 24 insertions(+), 1 deletion(-) 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} +