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

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

@@ -312,7 +312,7 @@
   </select>
   <select id="projectAddDuration">
     update project_task
-    set duration=format(duration+#{duration},2)
+    set duration=round(duration+#{duration},2)
     where id =#{pid}
   </select>
   <select id="selectProjectImg" resultType="com.ruoyi.project.domain.ProjectStaffRecord">

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

@@ -368,7 +368,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
 
 	<update id="userAddDuration">
-		update sys_user set duration = format(duration+#{duration},2)
+		update sys_user set duration = round(duration+#{duration},2)
 		where user_id = #{userId}
 	</update>
 	<update id="updateUserProjectSum">