package com.ibeetl.jlw.service; import com.ibeetl.jlw.dao.CourseLabelDao; import com.ibeetl.jlw.entity.CourseLabel; import com.ibeetl.admin.core.service.CoreBaseService; import com.ibeetl.admin.core.util.PlatformException; import org.beetl.sql.core.engine.PageQuery; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * CourseLabel Service */ @Service @Transactional public class CourseLabelService extends CoreBaseService{ @Autowired private CourseLabelDao courseLabelDao; public PageQueryqueryByCondition(PageQuery query){ PageQuery ret = courseLabelDao.queryByCondition(query); queryListAfter(ret.getList()); return ret; } public void deleteCourseLabel(String ids){ try { courseLabelDao.deleteCourseLabelByIds(ids); } catch (Exception e) { throw new PlatformException("批量删除CourseLabel失败", e); } } public List getValues (Object paras){ return sqlManager.select("jlw.courseLabel.getCourseLabelValues",CourseLabel.class,paras); } }