瀏覽代碼

名字重置BUG修复

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>