| | |
| | | import com.qxueyou.scc.teach.subject.model.SubjectChapter; |
| | | |
| | | /** |
| | | * 项目服务类 |
| | | * 项目服务类 |
| | | * |
| | | * @author 岩龙 |
| | | * @author 岩龙 |
| | | * @createtime 2017-10-31 |
| | | */ |
| | | @Service |
| | |
| | | public Result deleteChapter(String chapterId) { |
| | | this.bulkUpdate("update SchChapter set deleteFlag is true where chapterId=?", new Object[] { chapterId }); |
| | | |
| | | return new Result(true, "操作成功!"); |
| | | return new Result(true, "操作成功!"); |
| | | } |
| | | |
| | | // 显示有过班级的项目名称 |
| | | // 显示有过班级的项目名称 |
| | | @Override |
| | | public List<Map<String, Object>> queryCourseName() { |
| | | String hql = "select collegeCourseId as id , name as name from OrgCollegeCourse where deleteFlag is false order by createTime asc"; |
| | |
| | | return findListWithMapByHql(hql, null); |
| | | } |
| | | |
| | | // PC端首页显示有过班级的项目名称 |
| | | // PC端首页显示有过班级的项目名称 |
| | | @Override |
| | | public List<Map<String, Object>> findclassNameByCourse(String mode) { |
| | | String hql = "select distinct c.collegeCourseId as id , c.name as name from OrgCollegeCourse c ,ClsClass o where o.deleteFlag is false and c.deleteFlag is false and o.collegeCourseId =c.collegeCourseId "; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 删除科目下的项目 |
| | | * 删除科目下的项目 |
| | | * |
| | | * @param categoryId |
| | | * @return |
| | |
| | | } |
| | | |
| | | /** |
| | | * 删除项目下的课程 |
| | | * 删除项目下的课程 |
| | | * |
| | | * @param courseId |
| | | * @return |
| | |
| | | } |
| | | |
| | | /** |
| | | * 删除节 |
| | | * 删除节 |
| | | * |
| | | * @param chapterId |
| | | * @return |
| | |
| | | } |
| | | |
| | | /** |
| | | * 删除树节点 |
| | | * 删除树节点 |
| | | */ |
| | | public Result deleteNode(String id, String type) { |
| | | if (type.equals("category")) { |