调整数据库字段,优化部分接口 #1
@@ -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>
|
||||||
@@ -108,5 +108,9 @@
|
|||||||
limit 1
|
limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="count">
|
||||||
|
select count(*)
|
||||||
|
from article where is_delete = false;
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user