开班计划审核新增修改接口。

This commit is contained in:
Renpc-kilig 2021-05-17 15:48:33 +08:00
parent bf9abf1f83
commit 0e2bc4a41a
3 changed files with 24 additions and 1 deletions

View File

@ -87,6 +87,15 @@ public interface IExamCheckService {
*/
void update(String examCheckId, ExamCheckVO examCheckVO);
/**
* 修改
*
* @param classPlanId
* @param examCheckVO
* @return
*/
void updateByClassPlanId(String classPlanId, ExamCheckVO examCheckVO);
/**
* 修改
*

View File

@ -105,6 +105,14 @@ public class ExamCheckServiceImpl extends DefaultBaseService implements IExamChe
update(null, examCheckId, examCheckVO);
}
@Override
public void updateByClassPlanId(String classPlanId, ExamCheckVO examCheckVO) {
Map<String, Object> params = HashMapUtil.beanToMap(examCheckVO);
params.put("classPlanId", classPlanId);
setUpdateInfo(params);
examCheckDao.update(params);
}
@Override
public void update(String token, String examCheckId, ExamCheckVO examCheckVO) {
Map<String, Object> params = HashMapUtil.beanToMap(examCheckVO);

View File

@ -142,7 +142,13 @@
modifier = #{modifier},
exam_check_id = exam_check_id
WHERE
exam_check_id = #{examCheckId}
1 = 1
<if test="examCheckId != null and examCheckId != ''">
AND exam_check_id = #{examCheckId}
</if>
<if test="classPlanId != null and classPlanId != ''">
AND plan_id = #{classPlanId}
</if>
</update>
<!-- 详情 -->