dao层修改

This commit is contained in:
禾几海
2020-05-26 00:13:57 +08:00
parent d3757c5880
commit 2f27578bb0
5 changed files with 11 additions and 3 deletions

View File

@@ -86,7 +86,8 @@
<select id="count" resultType="java.lang.Long">
select count(*)
from tag_category
where is_category = true;
where is_category = true
and is_delete = false;
</select>
</mapper>

View File

@@ -108,5 +108,9 @@
limit 1
</select>
<select id="count">
select count(*)
from article where is_delete = false;
</select>
</mapper>

View File

@@ -120,6 +120,7 @@
<select id="count" resultType="java.lang.Long">
select count(*)
from user
where status =0;
</select>
<select id="getRoleById" resultType="java.lang.String">
select u_role

View File

@@ -161,7 +161,8 @@
<select id="count" resultType="long">
select count(*)
from article;
from article
where is_delete = false;
</select>
<select id="getPreArticle" resultMap="articleViewResultMap">

View File

@@ -60,6 +60,7 @@
<select id="count" resultType="long">
select count(*)
from tag_category
where is_category = false;;
where is_category = false
and is_delete = false;
</select>
</mapper>