You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
Java
49 lines
1.2 KiB
Java
3 years ago
|
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<CourseLabel>{
|
||
|
|
||
|
@Autowired private CourseLabelDao courseLabelDao;
|
||
|
|
||
|
public PageQuery<CourseLabel>queryByCondition(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<CourseLabel> getValues (Object paras){
|
||
|
return sqlManager.select("jlw.courseLabel.getCourseLabelValues",CourseLabel.class,paras);
|
||
|
}
|
||
|
}
|