|
@@ -129,12 +129,18 @@
|
|
</foreach>
|
|
</foreach>
|
|
</select>
|
|
</select>
|
|
<select id="findByArray" resultMap="EmployeeInfoMap">
|
|
<select id="findByArray" resultMap="EmployeeInfoMap">
|
|
- select * from base_employee_info where id_ in
|
|
|
|
|
|
+ select e.*,c.name_ as 'company_name'
|
|
|
|
+ from base_employee_info e,base_company_info c
|
|
|
|
+ where e.company_id = c.id_
|
|
|
|
+ and e.id_ in
|
|
<foreach item="item" collection="array" open="(" separator="," close=")">
|
|
<foreach item="item" collection="array" open="(" separator="," close=")">
|
|
${item}
|
|
${item}
|
|
</foreach>
|
|
</foreach>
|
|
</select>
|
|
</select>
|
|
<select id="findByOpenId" resultMap="EmployeeInfoMap" parameterType="string">
|
|
<select id="findByOpenId" resultMap="EmployeeInfoMap" parameterType="string">
|
|
- select * from base_employee_info where open_id=#{openId}
|
|
|
|
|
|
+ select e.*,c.name_ as 'company_name'
|
|
|
|
+ from base_employee_info e,base_company_info c
|
|
|
|
+ where e.company_id = c.id_
|
|
|
|
+ and e.open_id=#{openId}
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|