anderx преди 1 година
родител
ревизия
13cae7eeda
променени са 1 файла, в които са добавени 6 реда и са изтрити 4 реда
  1. 6 4
      ruoyi-system/src/main/resources/mapper/project/ProjectTaskMapper.xml

+ 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>