ソースを参照

批量删除绩效

lamphua 18時間前
コミット
0d3a5e0a73

+ 3
- 3
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcPerformanceStaffController.java ファイルの表示

@@ -158,9 +158,9 @@ public class CmcPerformanceStaffController extends BaseController
158 158
      * 删除cmc员工绩效
159 159
      */
160 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 ファイルの表示

@@ -63,8 +63,8 @@ public interface CmcPerformanceStaffMapper
63 63
     /**
64 64
      * 批量删除cmc员工绩效
65 65
      * 
66
-     * @param performanceStaffIds 需要删除的数据主键集合
66
+     * @param performanceId 需要删除的cmc绩效审批id集合
67 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 ファイルの表示

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

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcPerformanceStaffServiceImpl.java ファイルの表示

@@ -83,13 +83,13 @@ public class CmcPerformanceStaffServiceImpl implements ICmcPerformanceStaffServi
83 83
     /**
84 84
      * 批量删除cmc员工绩效
85 85
      * 
86
-     * @param performanceStaffIds 需要删除的cmc员工绩效主键
86
+     * @param performanceId 需要删除的cmc绩效审批id集合
87 87
      * @return 结果
88 88
      */
89 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 ファイルの表示

@@ -175,10 +175,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
175 175
         delete from cmc_performance_staff where performance_staff_id = #{performanceStaffId}
176 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 182
         </foreach>
183 183
     </delete>
184 184
 </mapper>

+ 1
- 1
oa-ui-app/pages/form/declare/declare.vue ファイルの表示

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

+ 4
- 4
oa-ui/src/views/flowable/form/work/declareForm.vue ファイルの表示

@@ -1,8 +1,8 @@
1 1
 <!--
2 2
  * @Author: ysh
3 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 7
 <template>
8 8
   <div>
@@ -155,7 +155,7 @@ export default {
155 155
       form: {
156 156
         workLoad: 1,
157 157
         coefficient: 1,
158
-        price: 216,
158
+        price: 200,
159 159
         userId: undefined,
160 160
         submitTime: undefined,
161 161
       },
@@ -195,7 +195,7 @@ export default {
195 195
       getDeclare(this.taskForm.formId).then(res => {
196 196
         if (res.data) {
197 197
           this.form = res.data;
198
-          this.form.price = 216;
198
+          this.form.price = 200;
199 199
           this.hasForm = true;
200 200
           this.countMoney();
201 201
           if (!res.data.projectId) {

読み込み中…
キャンセル
保存