فهرست منبع

1.增加是否导出标示。

tomatozq 5 سال پیش
والد
کامیت
be8337a349
1فایلهای تغییر یافته به همراه8 افزوده شده و 2 حذف شده
  1. 8 2
      src/main/resources/mapper/base/EmployeeInfo.xml

+ 8 - 2
src/main/resources/mapper/base/EmployeeInfo.xml

@@ -129,12 +129,18 @@
         </foreach>
     </select>
     <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=")">
             ${item}
         </foreach>
     </select>
     <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>
 </mapper>