Commit c578c103 by 梅存智

增加删除条件

parent 3a1536ee
......@@ -74,7 +74,7 @@
<select id="selectClassification" resultType="com.yizhi.site.application.vo.domain.DataClassificationVo">
select id, name, create_time as createTime
from data_classification where parent_id=#{parentId} and site_id=#{siteId}
from data_classification where parent_id=#{parentId} and site_id=#{siteId} AND state=1
order by sort
</select>
</mapper>
......@@ -43,7 +43,7 @@
<select id="getSiteNewsDicListByCode" resultType="com.yizhi.site.application.domain.SiteDic">
SELECT a.id,a.id AS relationId,a.parent_id,a.name,'news' AS code,a.description AS des,a.state AS status,0 AS type,a.create_time,a.update_time,a.sort
FROM data_classification a
WHERE a.parent_id=0
WHERE a.parent_id=0 AND a.state=1
ORDER BY a.sort
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment