|
@@ -1,9 +1,8 @@
|
|
|
<?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 * from pc_institution where 1=1
|
|
|
+ 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>
|
|
@@ -11,7 +10,7 @@
|
|
|
and szcompanyname like Concat('%',#{companyName},'%')
|
|
|
</if>
|
|
|
<if test="companyAddress!='' and companyAddress!=null">
|
|
|
- and szcomaddress = #{companyAddress}
|
|
|
+ and szcomaddress like Concat('%',#{companyAddress},'%')
|
|
|
</if>
|
|
|
<if test="dutyUserName!='' and dutyUserName!=null">
|
|
|
and szcomusername like Concat('%',#{dutyUserName},'%')
|