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 id="count" resultType="java.lang.Long">
select count(*) select count(*)
from tag_category from tag_category
where is_category = true; where is_category = true
and is_delete = false;
</select> </select>
</mapper> </mapper>

View File

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

View File

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

View File

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

View File

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