InspectionEyasOrgMapper.xml 1011 B

123456789101112131415161718192021222324252627282930
  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="cn.ubitech.ttc.dao.InspectionEyasOrgMapper">
  4. <select id="getInspectList" resultType="cn.ubitech.ttc.entity.InspectionEyasOrg">
  5. select
  6. *
  7. from
  8. inspection_eyas_org a
  9. <where>
  10. <if test="userid != null">
  11. and a.creator = #{userid}
  12. </if>
  13. <if test='orgname != "0" and orgname != ""'>
  14. and a.orgname like '%${orgname}%'
  15. </if>
  16. <if test="declaredate != 0">
  17. and a.declaredate like '${declaredate}%'
  18. </if>
  19. <if test='isQualified == "0"'>
  20. and a.inconformity is not null
  21. </if>
  22. <if test='isQualified == "1"'>
  23. and a.inconformity is null
  24. </if>
  25. </where>
  26. order by a.createtime desc
  27. </select>
  28. </mapper>