anderx 1 год назад
Родитель
Сommit
13cae7eeda

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

@@ -338,8 +338,10 @@
     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>
+  <update id="updateStaffName"  >
+    update project_task
+    set staff_name=(select group_concat(name)name from project_staff
+    where pid = #{pid} group by  pid)
+    where id= #{pid}
+  </update>
 </mapper>