Browse Source

批量删除绩效

lamphua 6 months ago
parent
commit
0d3a5e0a73

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

158
      * 删除cmc员工绩效
158
      * 删除cmc员工绩效
159
      */
159
      */
160
     @Log(title = "cmc员工绩效", businessType = BusinessType.DELETE)
160
     @Log(title = "cmc员工绩效", businessType = BusinessType.DELETE)
161
-	@DeleteMapping("/{performanceStaffIds}")
162
-    public AjaxResult remove(@PathVariable Long[] performanceStaffIds)
161
+	@DeleteMapping("/{performanceId}")
162
+    public AjaxResult remove(@PathVariable String[] performanceId)
163
     {
163
     {
164
-        return success(cmcPerformanceStaffService.deleteCmcPerformanceStaffByPerformanceStaffIds(performanceStaffIds));
164
+        return success(cmcPerformanceStaffService.deleteCmcPerformanceStaffByPerformanceId(performanceId));
165
     }
165
     }
166
 }
166
 }

+ 2
- 2
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcPerformanceStaffMapper.java View File

63
     /**
63
     /**
64
      * 批量删除cmc员工绩效
64
      * 批量删除cmc员工绩效
65
      * 
65
      * 
66
-     * @param performanceStaffIds 需要删除的数据主键集合
66
+     * @param performanceId 需要删除的cmc绩效审批id集合
67
      * @return 结果
67
      * @return 结果
68
      */
68
      */
69
-    public int deleteCmcPerformanceStaffByPerformanceStaffIds(Long[] performanceStaffIds);
69
+    public int deleteCmcPerformanceStaffByPerformanceId(String[] performanceId);
70
 }
70
 }

+ 2
- 2
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcPerformanceStaffService.java View File

55
     /**
55
     /**
56
      * 批量删除cmc员工绩效
56
      * 批量删除cmc员工绩效
57
      * 
57
      * 
58
-     * @param performanceStaffIds 需要删除的cmc员工绩效主键集合
58
+     * @param performanceId 需要删除的cmc绩效审批id集合
59
      * @return 结果
59
      * @return 结果
60
      */
60
      */
61
-    public int deleteCmcPerformanceStaffByPerformanceStaffIds(Long[] performanceStaffIds);
61
+    public int deleteCmcPerformanceStaffByPerformanceId(String[] performanceId);
62
 
62
 
63
     /**
63
     /**
64
      * 删除cmc员工绩效信息
64
      * 删除cmc员工绩效信息

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcPerformanceStaffServiceImpl.java View File

83
     /**
83
     /**
84
      * 批量删除cmc员工绩效
84
      * 批量删除cmc员工绩效
85
      * 
85
      * 
86
-     * @param performanceStaffIds 需要删除的cmc员工绩效主键
86
+     * @param performanceId 需要删除的cmc绩效审批id集合
87
      * @return 结果
87
      * @return 结果
88
      */
88
      */
89
     @Override
89
     @Override
90
-    public int deleteCmcPerformanceStaffByPerformanceStaffIds(Long[] performanceStaffIds)
90
+    public int deleteCmcPerformanceStaffByPerformanceId(String[] performanceId)
91
     {
91
     {
92
-        return cmcPerformanceStaffMapper.deleteCmcPerformanceStaffByPerformanceStaffIds(performanceStaffIds);
92
+        return cmcPerformanceStaffMapper.deleteCmcPerformanceStaffByPerformanceId(performanceId);
93
     }
93
     }
94
 
94
 
95
     /**
95
     /**

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

175
         delete from cmc_performance_staff where performance_staff_id = #{performanceStaffId}
175
         delete from cmc_performance_staff where performance_staff_id = #{performanceStaffId}
176
     </delete>
176
     </delete>
177
 
177
 
178
-    <delete id="deleteCmcPerformanceStaffByPerformanceStaffIds" parameterType="String">
179
-        delete from cmc_performance_staff where performance_staff_id in 
180
-        <foreach item="performanceStaffId" collection="array" open="(" separator="," close=")">
181
-            #{performanceStaffId}
178
+    <delete id="deleteCmcPerformanceStaffByPerformanceId" parameterType="String">
179
+        delete from cmc_performance_staff where performance_id in
180
+        <foreach item="performanceId" collection="array" open="(" separator="," close=")">
181
+            #{performanceId}
182
         </foreach>
182
         </foreach>
183
     </delete>
183
     </delete>
184
 </mapper>
184
 </mapper>

+ 1
- 1
oa-ui-app/pages/form/declare/declare.vue View File

141
 				workItem: '',
141
 				workItem: '',
142
 				workContent: '',
142
 				workContent: '',
143
 				workLoad: '',
143
 				workLoad: '',
144
-				price: 216,
144
+				price: 200,
145
 				submitTime: '',
145
 				submitTime: '',
146
 				coefficient: undefined,
146
 				coefficient: undefined,
147
 			},
147
 			},

+ 4
- 4
oa-ui/src/views/flowable/form/work/declareForm.vue View File

1
 <!--
1
 <!--
2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-08-16 09:16:36
3
  * @Date: 2024-08-16 09:16:36
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2025-02-17 14:11:13
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2025-06-09 08:51:49
6
 -->
6
 -->
7
 <template>
7
 <template>
8
   <div>
8
   <div>
155
       form: {
155
       form: {
156
         workLoad: 1,
156
         workLoad: 1,
157
         coefficient: 1,
157
         coefficient: 1,
158
-        price: 216,
158
+        price: 200,
159
         userId: undefined,
159
         userId: undefined,
160
         submitTime: undefined,
160
         submitTime: undefined,
161
       },
161
       },
195
       getDeclare(this.taskForm.formId).then(res => {
195
       getDeclare(this.taskForm.formId).then(res => {
196
         if (res.data) {
196
         if (res.data) {
197
           this.form = res.data;
197
           this.form = res.data;
198
-          this.form.price = 216;
198
+          this.form.price = 200;
199
           this.hasForm = true;
199
           this.hasForm = true;
200
           this.countMoney();
200
           this.countMoney();
201
           if (!res.data.projectId) {
201
           if (!res.data.projectId) {

Loading…
Cancel
Save