开班计划审核新增修改接口。
This commit is contained in:
parent
bf9abf1f83
commit
0e2bc4a41a
@ -87,6 +87,15 @@ public interface IExamCheckService {
|
||||
*/
|
||||
void update(String examCheckId, ExamCheckVO examCheckVO);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param classPlanId
|
||||
* @param examCheckVO
|
||||
* @return
|
||||
*/
|
||||
void updateByClassPlanId(String classPlanId, ExamCheckVO examCheckVO);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
|
@ -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);
|
||||
|
@ -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>
|
||||
|
||||
<!-- 详情 -->
|
||||
|
Loading…
Reference in New Issue
Block a user