فهرست منبع

[task-4878] 管理体系岗位说明书关联到人员档案卡

xiexh 8 ماه پیش
والد
کامیت
de872f9576

+ 4 - 5
ibps-provider-root/modules/provider-business/src/main/resources/com/lc/ibps/klimsibps/mapping/PersonnelManagementMapper.xml

@@ -3,11 +3,10 @@
 <mapper namespace="com.lc.ibps.hrm.dao.PersonnelManagementDao">
 <mapper namespace="com.lc.ibps.hrm.dao.PersonnelManagementDao">
 
 
     <select id="querySnapshoot" parameterType="java.util.Map" resultType="java.util.Map">
     <select id="querySnapshoot" parameterType="java.util.Map" resultType="java.util.Map">
-      select  id_,
-              gang_wei_,
-              kuai_zhao_
-             from  t_gltxgwsms
-             where
+      select
+             TRIM(BOTH ',' FROM GROUP_CONCAT(DISTINCT kuai_zhao_ SEPARATOR ',')) AS kuai_zhao_combined
+         from  t_gltxgwsms
+         where
         <foreach item="id" index="index" collection="map.gangWei" open="(" separator="OR" close=")">
         <foreach item="id" index="index" collection="map.gangWei" open="(" separator="OR" close=")">
             gang_wei_ LIKE CONCAT('%', #{id}, '%')
             gang_wei_ LIKE CONCAT('%', #{id}, '%')
         </foreach>
         </foreach>