王燏镕 hai 8 meses
pai
achega
6104895a12
Modificáronse 1 ficheiros con 12 adicións e 7 borrados
  1. 12 7
      pms-service/src/main/resources/mapper/ProjectWMapper.xml

+ 12 - 7
pms-service/src/main/resources/mapper/ProjectWMapper.xml

@@ -30,12 +30,17 @@
     </select>
     </select>
     <select id="getUserVoByUserId" resultType="com.tofly.pms.fegin.vo.UserVo">
     <select id="getUserVoByUserId" resultType="com.tofly.pms.fegin.vo.UserVo">
         select
         select
-            id,
+        id,
-            username,
+        username,
-            real_name
+        real_name
-        from public.sys_user where id in
+        from public.sys_user
-      <foreach collection="userIdList" item="userId" separator="," open="(" close=")">
+        <where>
-          #{userId}
+            <if test="userIdList != null and userIdList.size() > 0">
-      </foreach>
+                id in
+                <foreach collection="userIdList" item="userId" separator="," open="(" close=")">
+                    #{userId}
+                </foreach>
+            </if>
+        </where>
     </select>
     </select>
 </mapper>
 </mapper>