NavigationDao.xml 1008 B

123456789101112131415161718192021222324252627
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="platform.modules.government.dao.NavigationDao">
  4. <select id="getName" resultType="string">
  5. select name from z_navigation where id=#{id}
  6. </select>
  7. <select id="findListLimit" resultType="platform.modules.government.entity.Navigation">
  8. select * from z_navigation where del_flag=0 and is_start=1 order by sort asc,create_time desc
  9. limit 8
  10. </select>
  11. <select id="findByName" resultType="platform.modules.government.entity.Navigation">
  12. SELECT * FROM z_navigation u WHERE u.name = #{name}
  13. and u.del_flag=0 limit 0,1
  14. </select>
  15. <select id="countNavigationByStart" resultType="int">
  16. SELECT count(id) FROM z_navigation u WHERE u.is_start = true
  17. and u.del_flag=0
  18. <if test="id!=null and id!=''">
  19. and id!=#{id}
  20. </if>
  21. </select>
  22. </mapper>