Browse Source

员工绩效工作量保留三位

lamphua 1 month ago
parent
commit
b47824904b

+ 1
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcPerformanceStaffController.java View File

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

+ 1
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcPerformanceStaffMapper.xml View File

133
             <if test="unit != null">#{unit},</if>
133
             <if test="unit != null">#{unit},</if>
134
             <if test="price != null">#{price},</if>
134
             <if test="price != null">#{price},</if>
135
             <if test="coefficient != null">#{coefficient},</if>
135
             <if test="coefficient != null">#{coefficient},</if>
136
-            <if test="producePerformance != null">#{produce_performance},</if>
136
+            <if test="producePerformance != null">#{producePerformance},</if>
137
             <if test="performanceMonth != null">#{performanceMonth},</if>
137
             <if test="performanceMonth != null">#{performanceMonth},</if>
138
             <if test="remark != null">#{remark},</if>
138
             <if test="remark != null">#{remark},</if>
139
          </trim>
139
          </trim>

Loading…
Cancel
Save