Parcourir la source

修改导入打卡项目人员,处理人员过多sql不支持

anderx il y a 1 an
Parent
commit
bee9c7c260

+ 6 - 4
ruoyi-system/src/main/resources/mapper/project/ProjectTaskMapper.xml

@@ -215,10 +215,7 @@
     where id = #{id,jdbcType=BIGINT}
   </update>
 
-  <update id="updateStaffName">
-    select pid ,group_concat(name)name from project_staff
-      where pid = #{pid} group by  pid
-  </update>
+
   <update id="updateDuration">
     update project_task
     set duration=(select sum(a.duration)
@@ -331,4 +328,9 @@
     from project_task
     where project_status =0
   </select>
+
+  <select id="updateStaffName"  resultType="java.lang.String">
+    select group_concat(name)name from project_staff
+    where pid = #{pid} group by  pid
+  </select>
 </mapper>