|
@@ -6,7 +6,7 @@
|
|
<resultMap id="PersonInfoMap" type="com.jpsoft.smart.modules.base.entity.PersonInfo">
|
|
<resultMap id="PersonInfoMap" type="com.jpsoft.smart.modules.base.entity.PersonInfo">
|
|
<id property="id" column="id_"/>
|
|
<id property="id" column="id_"/>
|
|
<result property="companyId" column="company_id"/>
|
|
<result property="companyId" column="company_id"/>
|
|
- <result property="companyName" column="company_name" />
|
|
|
|
|
|
+ <result property="companyName" column="company_name"/>
|
|
<result property="name" column="name_"/>
|
|
<result property="name" column="name_"/>
|
|
<result property="phone" column="phone_"/>
|
|
<result property="phone" column="phone_"/>
|
|
<result property="idCard" column="id_card"/>
|
|
<result property="idCard" column="id_card"/>
|
|
@@ -184,7 +184,7 @@
|
|
and a.name_ like #{searchParams.name}
|
|
and a.name_ like #{searchParams.name}
|
|
</if>
|
|
</if>
|
|
<if test="searchParams.nameList != null">
|
|
<if test="searchParams.nameList != null">
|
|
- <foreach item="name" collection="searchParams.nameList" open="and (" separator="or" close=")">
|
|
|
|
|
|
+ <foreach item="name" collection="searchParams.nameList" open="and (" separator="or" close=")">
|
|
a.name_ like #{name}
|
|
a.name_ like #{name}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
@@ -264,7 +264,7 @@
|
|
and b.code_ like #{code}
|
|
and b.code_ like #{code}
|
|
<if test="personId!=null">
|
|
<if test="personId!=null">
|
|
or b.id_ in (
|
|
or b.id_ in (
|
|
- select c.company_id from base_person_company c where c.person_id = #{personId}
|
|
|
|
|
|
+ select c.company_id from base_person_company c where c.person_id = #{personId}
|
|
)
|
|
)
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
@@ -275,7 +275,7 @@
|
|
where a.del_flag = 0
|
|
where a.del_flag = 0
|
|
and b.code_ like #{searchParams.code}
|
|
and b.code_ like #{searchParams.code}
|
|
<if test="searchParams.nameList != null">
|
|
<if test="searchParams.nameList != null">
|
|
- <foreach item="name" collection="searchParams.nameList" open="and (" separator="or" close=")">
|
|
|
|
|
|
+ <foreach item="name" collection="searchParams.nameList" open="and (" separator="or" close=")">
|
|
a.name_ like #{name}
|
|
a.name_ like #{name}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
@@ -306,10 +306,18 @@
|
|
<select id="countByCompanyListAndPopedom" resultType="Long">
|
|
<select id="countByCompanyListAndPopedom" resultType="Long">
|
|
select count(*) from base_person_info where del_flag = 0
|
|
select count(*) from base_person_info where del_flag = 0
|
|
and popedom_ like #{type}
|
|
and popedom_ like #{type}
|
|
- and
|
|
|
|
- company_id in
|
|
|
|
- <foreach collection="list" index="index" item="item" open="(" separator="," close=")">
|
|
|
|
|
|
+
|
|
|
|
+ <foreach collection="list" index="index" item="item" open="and company_id in(" separator="," close=")">
|
|
#{item.id}
|
|
#{item.id}
|
|
</foreach>
|
|
</foreach>
|
|
</select>
|
|
</select>
|
|
|
|
+
|
|
|
|
+ <select id="countStudentByCompanyListAndPopedom" resultType="Long">
|
|
|
|
+ select count(*) from base_person_info where del_flag = 0
|
|
|
|
+ and popedom_ = #{type}
|
|
|
|
+ <foreach collection="list" index="index" item="item" open="and company_id in(" separator="," close=")">
|
|
|
|
+ #{item.id}
|
|
|
|
+ </foreach>
|
|
|
|
+
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|