瀏覽代碼

员工绩效工作量保留三位

lamphua 1 天之前
父節點
當前提交
b47824904b

+ 1
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcPerformanceStaffController.java 查看文件

@@ -98,6 +98,7 @@ public class CmcPerformanceStaffController extends BaseController
98 98
             List<CmcPerformanceStaff> performanceStaffList = util.importExcel(file.getInputStream());
99 99
             for (CmcPerformanceStaff performanceStaff : performanceStaffList) {
100 100
                 performanceStaff.setPerformanceId(performanceId);
101
+                performanceStaff.setWorkload(Math.round(performanceStaff.getWorkload() * 1000) / 1000.0);
101 102
                 performanceStaff.setUserId(userService.selectUserByNickName(performanceStaff.getNickName()).getUserId());
102 103
                 CmcProject cmcProject = new CmcProject();
103 104
                 cmcProject.setProjectNumber(performanceStaff.getProjectNumber());

+ 1
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcPerformanceStaffMapper.xml 查看文件

@@ -133,7 +133,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
133 133
             <if test="unit != null">#{unit},</if>
134 134
             <if test="price != null">#{price},</if>
135 135
             <if test="coefficient != null">#{coefficient},</if>
136
-            <if test="producePerformance != null">#{produce_performance},</if>
136
+            <if test="producePerformance != null">#{producePerformance},</if>
137 137
             <if test="performanceMonth != null">#{performanceMonth},</if>
138 138
             <if test="remark != null">#{remark},</if>
139 139
          </trim>

Loading…
取消
儲存