diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electronicassets/ElectronicAssetsController.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electronicassets/ElectronicAssetsController.java index fdf13e66..aaaffd1a 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electronicassets/ElectronicAssetsController.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electronicassets/ElectronicAssetsController.java @@ -56,7 +56,7 @@ public class ElectronicAssetsController { @Operation(summary = "删除资产档案") @Parameter(name = "id", description = "编号", required = true) @PreAuthorize("@ss.hasPermission('ea:electronic:delete')") - public CommonResult deleteElectronicAssets(@RequestParam("id") Long id) { + public CommonResult deleteElectronicAssets(@RequestParam("id") Long[] id) { electronicAssetsService.deleteElectronicAssets(id); return success(true); } diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electronicconsultation/ElectronicConsultationController.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electronicconsultation/ElectronicConsultationController.java index 993efcb7..6537216e 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electronicconsultation/ElectronicConsultationController.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electronicconsultation/ElectronicConsultationController.java @@ -56,7 +56,7 @@ public class ElectronicConsultationController { @Operation(summary = "删除咨询档案") @Parameter(name = "id", description = "编号", required = true) @PreAuthorize("@ss.hasPermission('ea:electronic-consultation:delete')") - public CommonResult deleteElectronicConsultation(@RequestParam("id") Long id) { + public CommonResult deleteElectronicConsultation(@RequestParam("id") Long[] id) { electronicConsultationService.deleteElectronicConsultation(id); return success(true); } diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electroniccontracts/ElectronicContractsController.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electroniccontracts/ElectronicContractsController.java index 0133120c..154835b5 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electroniccontracts/ElectronicContractsController.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electroniccontracts/ElectronicContractsController.java @@ -56,7 +56,7 @@ public class ElectronicContractsController { @Operation(summary = "删除合同档案") @Parameter(name = "id", description = "编号", required = true) @PreAuthorize("@ss.hasPermission('ea:electronic-contracts:delete')") - public CommonResult deleteElectronicContracts(@RequestParam("id") Long id) { + public CommonResult deleteElectronicContracts(@RequestParam("id") Long[] id) { electronicContractsService.deleteElectronicContracts(id); return success(true); } diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electroniccustomercomplaint/ElectronicCustomerComplaintController.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electroniccustomercomplaint/ElectronicCustomerComplaintController.java index bb20690b..49af3da7 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electroniccustomercomplaint/ElectronicCustomerComplaintController.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electroniccustomercomplaint/ElectronicCustomerComplaintController.java @@ -56,7 +56,7 @@ public class ElectronicCustomerComplaintController { @Operation(summary = "删除客诉档案") @Parameter(name = "id", description = "编号", required = true) @PreAuthorize("@ss.hasPermission('ea:electronic-customer-complaint:delete')") - public CommonResult deleteElectronicCustomerComplaint(@RequestParam("id") Long id) { + public CommonResult deleteElectronicCustomerComplaint(@RequestParam("id") Long[] id) { electronicCustomerComplaintService.deleteElectronicCustomerComplaint(id); return success(true); } diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electronicemployee/ElectronicEmployeeController.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electronicemployee/ElectronicEmployeeController.java index 9c5b2b1c..04fffdd4 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electronicemployee/ElectronicEmployeeController.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electronicemployee/ElectronicEmployeeController.java @@ -53,7 +53,7 @@ public class ElectronicEmployeeController { @Operation(summary = "删除员工档案") @Parameter(name = "id", description = "编号", required = true) @PreAuthorize("@ss.hasPermission('ea:electronic-employee:delete')") - public CommonResult deleteElectronicEmployee(@RequestParam("id") Long id) { + public CommonResult deleteElectronicEmployee(@RequestParam("id") Long[] id) { electronicEmployeeService.deleteElectronicEmployee(id); return success(true); } diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electronicother/ElectronicOtherController.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electronicother/ElectronicOtherController.java index 7571c695..adb3f3ff 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electronicother/ElectronicOtherController.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/controller/admin/electronicother/ElectronicOtherController.java @@ -56,7 +56,7 @@ public class ElectronicOtherController { @Operation(summary = "删除其他档案") @Parameter(name = "id", description = "编号", required = true) @PreAuthorize("@ss.hasPermission('ea:electronic-other:delete')") - public CommonResult deleteElectronicOther(@RequestParam("id") Long id) { + public CommonResult deleteElectronicOther(@RequestParam("id") Long[] id) { electronicOtherService.deleteElectronicOther(id); return success(true); } diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicassets/ElectronicAssetsService.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicassets/ElectronicAssetsService.java index 499f980e..72bd92ae 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicassets/ElectronicAssetsService.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicassets/ElectronicAssetsService.java @@ -33,7 +33,7 @@ public interface ElectronicAssetsService { * * @param id 编号 */ - void deleteElectronicAssets(Long id); + void deleteElectronicAssets(Long[] id); /** * 获得资产档案 diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicassets/ElectronicAssetsServiceImpl.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicassets/ElectronicAssetsServiceImpl.java index 08daed62..40f99ab1 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicassets/ElectronicAssetsServiceImpl.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicassets/ElectronicAssetsServiceImpl.java @@ -98,11 +98,10 @@ public class ElectronicAssetsServiceImpl implements ElectronicAssetsService { } @Override - public void deleteElectronicAssets(Long id) { - // 校验存在 - validateElectronicAssetsExists(id); + public void deleteElectronicAssets(Long[] id) { // 删除 - electronicAssetsMapper.deleteById(id); + ArrayList listId = new ArrayList(Arrays.asList(id)) ; + electronicAssetsMapper.deleteBatchIds(listId); } private void validateElectronicAssetsExists(Long id) { diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicconsultation/ElectronicConsultationService.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicconsultation/ElectronicConsultationService.java index 4e3613c2..64c8ae4d 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicconsultation/ElectronicConsultationService.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicconsultation/ElectronicConsultationService.java @@ -33,7 +33,7 @@ public interface ElectronicConsultationService { * * @param id 编号 */ - void deleteElectronicConsultation(Long id); + void deleteElectronicConsultation(Long[] id); /** * 获得咨询档案 diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicconsultation/ElectronicConsultationServiceImpl.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicconsultation/ElectronicConsultationServiceImpl.java index a3d32d04..3bbbeef8 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicconsultation/ElectronicConsultationServiceImpl.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicconsultation/ElectronicConsultationServiceImpl.java @@ -97,11 +97,10 @@ public class ElectronicConsultationServiceImpl implements ElectronicConsultation } @Override - public void deleteElectronicConsultation(Long id) { - // 校验存在 - validateElectronicConsultationExists(id); + public void deleteElectronicConsultation(Long[] id) { // 删除 - electronicConsultationMapper.deleteById(id); + ArrayList listId = new ArrayList(Arrays.asList(id)) ; + electronicConsultationMapper.deleteBatchIds(listId); } private void validateElectronicConsultationExists(Long id) { diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electroniccontracts/ElectronicContractsService.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electroniccontracts/ElectronicContractsService.java index 90592a45..35323a36 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electroniccontracts/ElectronicContractsService.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electroniccontracts/ElectronicContractsService.java @@ -33,7 +33,7 @@ public interface ElectronicContractsService { * * @param id 编号 */ - void deleteElectronicContracts(Long id); + void deleteElectronicContracts(Long[] id); /** * 获得合同档案 diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electroniccontracts/ElectronicContractsServiceImpl.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electroniccontracts/ElectronicContractsServiceImpl.java index 31d1500a..d4a497db 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electroniccontracts/ElectronicContractsServiceImpl.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electroniccontracts/ElectronicContractsServiceImpl.java @@ -97,11 +97,10 @@ public class ElectronicContractsServiceImpl implements ElectronicContractsServic } @Override - public void deleteElectronicContracts(Long id) { - // 校验存在 - validateElectronicContractsExists(id); + public void deleteElectronicContracts(Long[] id) { // 删除 - electronicContractsMapper.deleteById(id); + ArrayList listId = new ArrayList(Arrays.asList(id)) ; + electronicContractsMapper.deleteBatchIds(listId); } private void validateElectronicContractsExists(Long id) { diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electroniccustomercomplaint/ElectronicCustomerComplaintService.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electroniccustomercomplaint/ElectronicCustomerComplaintService.java index 2127e88a..29d95b9f 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electroniccustomercomplaint/ElectronicCustomerComplaintService.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electroniccustomercomplaint/ElectronicCustomerComplaintService.java @@ -33,7 +33,7 @@ public interface ElectronicCustomerComplaintService { * * @param id 编号 */ - void deleteElectronicCustomerComplaint(Long id); + void deleteElectronicCustomerComplaint(Long[] id); /** * 获得客诉档案 diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electroniccustomercomplaint/ElectronicCustomerComplaintServiceImpl.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electroniccustomercomplaint/ElectronicCustomerComplaintServiceImpl.java index 925ae86f..c015f715 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electroniccustomercomplaint/ElectronicCustomerComplaintServiceImpl.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electroniccustomercomplaint/ElectronicCustomerComplaintServiceImpl.java @@ -97,11 +97,9 @@ public class ElectronicCustomerComplaintServiceImpl implements ElectronicCustome } @Override - public void deleteElectronicCustomerComplaint(Long id) { - // 校验存在 - validateElectronicCustomerComplaintExists(id); - // 删除 - electronicCustomerComplaintMapper.deleteById(id); + public void deleteElectronicCustomerComplaint(Long[] id) { + ArrayList listId = new ArrayList(Arrays.asList(id)) ; + electronicCustomerComplaintMapper.deleteBatchIds(listId); } private void validateElectronicCustomerComplaintExists(Long id) { diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicemployee/ElectronicEmployeeService.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicemployee/ElectronicEmployeeService.java index 35fabf96..981a3d0d 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicemployee/ElectronicEmployeeService.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicemployee/ElectronicEmployeeService.java @@ -33,7 +33,7 @@ public interface ElectronicEmployeeService { * * @param id 编号 */ - void deleteElectronicEmployee(Long id); + void deleteElectronicEmployee(Long[] id); /** * 获得员工档案 diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicemployee/ElectronicEmployeeServiceImpl.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicemployee/ElectronicEmployeeServiceImpl.java index 663a36c7..08744e03 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicemployee/ElectronicEmployeeServiceImpl.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicemployee/ElectronicEmployeeServiceImpl.java @@ -96,11 +96,9 @@ public class ElectronicEmployeeServiceImpl implements ElectronicEmployeeService } @Override - public void deleteElectronicEmployee(Long id) { - // 校验存在 - validateElectronicEmployeeExists(id); - // 删除 - electronicEmployeeMapper.deleteById(id); + public void deleteElectronicEmployee(Long[] id) { + ArrayList listId = new ArrayList(Arrays.asList(id)) ; + electronicEmployeeMapper.deleteBatchIds(listId); } private void validateElectronicEmployeeExists(Long id) { diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicother/ElectronicOtherService.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicother/ElectronicOtherService.java index 3d6d76a7..2a4687c7 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicother/ElectronicOtherService.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicother/ElectronicOtherService.java @@ -33,7 +33,7 @@ public interface ElectronicOtherService { * * @param id 编号 */ - void deleteElectronicOther(Long id); + void deleteElectronicOther(Long[] id); /** * 获得其他档案 diff --git a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicother/ElectronicOtherServiceImpl.java b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicother/ElectronicOtherServiceImpl.java index a1245fd9..89d7399e 100644 --- a/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicother/ElectronicOtherServiceImpl.java +++ b/yudao-module-electronic/yudao-module-ea-biz/src/main/java/cn/iocoder/yudao/module/ea/service/electronicother/ElectronicOtherServiceImpl.java @@ -97,11 +97,9 @@ public class ElectronicOtherServiceImpl implements ElectronicOtherService { } @Override - public void deleteElectronicOther(Long id) { - // 校验存在 - validateElectronicOtherExists(id); - // 删除 - electronicOtherMapper.deleteById(id); + public void deleteElectronicOther(Long[] id) { + ArrayList listId = new ArrayList(Arrays.asList(id)) ; + electronicOtherMapper.deleteBatchIds(listId); } private void validateElectronicOtherExists(Long id) {