123456789101112131415161718192021222324252627282930 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="cn.ubitech.ttc.dao.InspectionEyasOrgMapper">
- <select id="getInspectList" resultType="cn.ubitech.ttc.entity.InspectionEyasOrg">
- select
- *
- from
- inspection_eyas_org a
- <where>
- <if test="userid != null">
- and a.creator = #{userid}
- </if>
- <if test='orgname != "0" and orgname != ""'>
- and a.orgname like '%${orgname}%'
- </if>
- <if test="declaredate != 0">
- and a.declaredate like '${declaredate}%'
- </if>
- <if test='isQualified == "0"'>
- and a.inconformity is not null
- </if>
- <if test='isQualified == "1"'>
- and a.inconformity is null
- </if>
- </where>
- order by a.createtime desc
- </select>
- </mapper>
|