Parcourir la source

新增人员项目数的统计

anderx il y a 4 semaines
Parent
commit
08cc168b7e

+ 4 - 1
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -397,7 +397,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		update sys_user
 		set duration=(select sum(a.duration)
 					  from project_staff_record a
-					  where a.aid = #{aid})
+					  where a.aid = #{aid}),
+		project_quantity=(select count(*)
+						  from project_task a left join project_staff b on a.id =b.pid
+						  where b.aid = #{aid})
 		where user_id = #{aid}
 	</update>