fix: SubjectLabel

This commit is contained in:
2024-02-18 13:49:34 +08:00
parent 59555e6fdf
commit 6b2b032beb
12 changed files with 196 additions and 22 deletions

View File

@@ -28,7 +28,7 @@ public interface SubjectLabelDao {
* @param subjectLabel 分页对象
* @return 对象列表
*/
List<SubjectLabel> queryAllByLimit(SubjectLabel subjectLabel);
List<SubjectLabel> queryByCondition(SubjectLabel subjectLabel);
/**
* 统计总行数

View File

@@ -49,4 +49,6 @@ public interface SubjectLabelService {
boolean deleteById(Long id);
List<SubjectLabel> batchQueryById(@Param("list") List<Long> labelIdList);
List<SubjectLabel> queryByCondition(SubjectLabel subjectLabel);
}

View File

@@ -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);
}
}

View File

@@ -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>
<!--统计总行数-->