ProjectDao.xml 863 B

12345678910111213141516171819202122
  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.ProjectDao">
  4. <select id="findProjectByNameAndType" resultType="platform.modules.government.entity.Project">
  5. SELECT * FROM project p WHERE p.project_name = #{name}
  6. <if test="type != null and type !=''">
  7. and p.project_type=#{type}
  8. </if>
  9. and p.del_flag=0 LIMIT 0 ,1
  10. </select>
  11. <select id="findProjectByYear" resultType="platform.modules.government.entity.Project">
  12. SELECT * FROM project p WHERE p.project_name = #{name} AND p.project_year = #{year}
  13. <if test="type != null and type !=''">
  14. and p.project_type=#{type}
  15. </if>
  16. and p.del_flag=0 LIMIT 0 ,1
  17. </select>
  18. </mapper>