fix: SubjectLabel
This commit is contained in:
@@ -28,7 +28,7 @@ public interface SubjectLabelDao {
|
||||
* @param subjectLabel 分页对象
|
||||
* @return 对象列表
|
||||
*/
|
||||
List<SubjectLabel> queryAllByLimit(SubjectLabel subjectLabel);
|
||||
List<SubjectLabel> queryByCondition(SubjectLabel subjectLabel);
|
||||
|
||||
/**
|
||||
* 统计总行数
|
||||
|
@@ -49,4 +49,6 @@ public interface SubjectLabelService {
|
||||
boolean deleteById(Long id);
|
||||
|
||||
List<SubjectLabel> batchQueryById(@Param("list") List<Long> labelIdList);
|
||||
|
||||
List<SubjectLabel> queryByCondition(SubjectLabel subjectLabel);
|
||||
}
|
||||
|
@@ -71,4 +71,9 @@ public class SubjectLabelServiceImpl implements SubjectLabelService {
|
||||
public List<SubjectLabel> batchQueryById(List<Long> labelIdList) {
|
||||
return this.subjectLabelDao.batchQueryById(labelIdList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SubjectLabel> queryByCondition(SubjectLabel subjectLabel) {
|
||||
return this.subjectLabelDao.queryByCondition(subjectLabel);
|
||||
}
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@
|
||||
</select>
|
||||
|
||||
<!--查询指定行数据-->
|
||||
<select id="queryAllByLimit" resultMap="SubjectLabelMap">
|
||||
<select id="queryByCondition" resultMap="SubjectLabelMap">
|
||||
select
|
||||
id,label_name,sort_num,category_id,created_by,created_time,update_by,update_time,is_deleted
|
||||
from subject_label
|
||||
@@ -55,7 +55,6 @@
|
||||
and is_deleted = #{isDeleted}
|
||||
</if>
|
||||
</where>
|
||||
limit #{pageable.offset}, #{pageable.pageSize}
|
||||
</select>
|
||||
|
||||
<!--统计总行数-->
|
||||
|
Reference in New Issue
Block a user