소스 검색

fix 资料审核

he2802 3 년 전
부모
커밋
bc1db384e4
1개의 변경된 파일16개의 추가작업 그리고 0개의 파일을 삭제
  1. 16 0
      zhongzheng-system/src/main/resources/mapper/modules/base/ProfileTpMapper.xml

+ 16 - 0
zhongzheng-system/src/main/resources/mapper/modules/base/ProfileTpMapper.xml

@@ -25,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="keyValue" column="key_value"/>
         <result property="userIds" column="user_ids"/>
         <collection property="businessList" column="profile_tp_id" select="findBusinessList"/>
+        <collection property="userList" column="user_ids" select="findUserList"/>
     </resultMap>
 
     <resultMap type="com.zhongzheng.modules.base.vo.ProfileTpBusinessVo" id="ProfileTpBusiness">
@@ -38,6 +39,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="businessName" column="business_name"/>
     </resultMap>
 
+    <resultMap type="com.zhongzheng.common.core.domain.entity.SysUser" id="ProfileTpSysUser">
+        <result property="userId" column="user_id"/>
+        <result property="nickName" column="nick_name"/>
+    </resultMap>
+
+    <select id="findUserList" resultMap="ProfileTpSysUser">
+        SELECT
+            u.nick_name,
+            u.user_id
+        FROM
+            sys_user u
+        WHERE
+            FIND_IN_SET( u.user_id, #{user_ids})
+    </select>
+
     <select id="findBusinessList" resultMap="ProfileTpBusiness">
         SELECT
             b.education_type_id,