1234567891011121314151617181920 |
- <?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="com.hz.employmentsite.mapper.cquery.InstitutionCQuery">
- <select id="getList" resultType="com.hz.employmentsite.vo.baseSettings.InstitutionModel">
- select A.*,Count(B.szkey)as SiteCount from pc_institution A,pc_site_institution B where A.szkey = B.szinstitutionkey and 1=1
- <if test="primaryKey!='' and primaryKey!=null">
- and szkey in (${primaryKey})
- </if>
- <if test="companyName!='' and companyName!=null">
- and szcompanyname like Concat('%',#{companyName},'%')
- </if>
- <if test="companyAddress!='' and companyAddress!=null">
- and szcomaddress like Concat('%',#{companyAddress},'%')
- </if>
- <if test="dutyUserName!='' and dutyUserName!=null">
- and szcomusername like Concat('%',#{dutyUserName},'%')
- </if>
- </select>
- </mapper>
|