소스 검색

导入公出统计做新增防止丢精度

anderx 1 일 전
부모
커밋
fdd36787ca

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

@@ -178,7 +178,7 @@
 
     <update id="updateDuration">
         update project_task
-        set duration=(select sum(a.duration)
+        set duration=(select ROUND(sum(a.duration), 4)
                       from project_staff_record a
                       where a.pid= #{pid})
         where id = #{pid}

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

@@ -395,7 +395,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 	</update>
     <update id="updateDuration">
 		update sys_user
-		set duration=(select sum(a.duration)
+		set duration=(select ROUND(sum(a.duration), 4)
 					  from project_staff_record a
 					  where a.aid = #{aid}),
 		project_quantity=(select count(*)