Commit 163d557b authored by zhangjianqian's avatar zhangjianqian

单一培训,完成修改状态

parent fcefa992
......@@ -129,6 +129,14 @@ public class TTrainCourseServiceImpl implements ITTrainCourseService
@Override
public int updateTTrainUserCourse(TTrainUserCourse tTrainUserCourse)
{
//判断有没有考试
if(tTrainUserCourse.getTrainState()==1){
List<TTrainCourseTopic> topicList = tTrainCourseTopicMapper.selectCourseTopicList(tTrainUserCourse.getCourseId());
if(topicList.size()==0){
tTrainUserCourse.setState(2);
}
}
return tTrainUserCourseMapper.updateTTrainUserCourse(tTrainUserCourse);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment