Commit ebe8b345 authored by fangxinjiang's avatar fangxinjiang

调整批量删除接口

parent bfc226d9
...@@ -138,7 +138,7 @@ public class TEmpDisabilityInfoController { ...@@ -138,7 +138,7 @@ public class TEmpDisabilityInfoController {
@SysLog("通过ids删除员工伤残信息表" ) @SysLog("通过ids删除员工伤残信息表" )
@DeleteMapping("/removeByIds" ) @DeleteMapping("/removeByIds" )
@PreAuthorize("@pms.hasPermission('archives_tempdisabilityinfo_del_batch')" ) @PreAuthorize("@pms.hasPermission('archives_tempdisabilityinfo_del_batch')" )
public R<Boolean> removeByIds(@RequestParam String ids) { public R<Boolean> removeByIds(@RequestBody(required = true) String ids) {
List<String> idList = Common.getList(ids); List<String> idList = Common.getList(ids);
return R.ok(tEmpDisabilityInfoService.removeByIds(idList)); return R.ok(tEmpDisabilityInfoService.removeByIds(idList));
} }
......
...@@ -136,7 +136,7 @@ public class TEmpEducationController { ...@@ -136,7 +136,7 @@ public class TEmpEducationController {
@SysLog("通过id删除员工学历信息表" ) @SysLog("通过id删除员工学历信息表" )
@DeleteMapping("/removeByIds" ) @DeleteMapping("/removeByIds" )
@PreAuthorize("@pms.hasPermission('archives_education_del_batch')" ) @PreAuthorize("@pms.hasPermission('archives_education_del_batch')" )
public R<Boolean> removeByIds(String ids) { public R<Boolean> removeByIds(@RequestBody(required = true) String ids) {
List<String> idList = null; List<String> idList = null;
if (Common.isNotNull(ids)){ if (Common.isNotNull(ids)){
idList = Common.initStrToList(ids, CommonConstants.COMMA_STRING); idList = Common.initStrToList(ids, CommonConstants.COMMA_STRING);
......
...@@ -146,28 +146,11 @@ public class TEmpFamilyController { ...@@ -146,28 +146,11 @@ public class TEmpFamilyController {
@SysLog("通过id删除员工家庭信息表" ) @SysLog("通过id删除员工家庭信息表" )
@DeleteMapping("/removeByIds" ) @DeleteMapping("/removeByIds" )
@PreAuthorize("@pms.hasPermission('archives-family-batch-delete')" ) @PreAuthorize("@pms.hasPermission('archives-family-batch-delete')" )
public R<Boolean> removeByIds(String ids) { public R<Boolean> removeByIds(@RequestBody(required = true) String ids) {
List<String> idList = Common.getList(ids); List<String> idList = Common.getList(ids);
return tEmpFamilyService.removeByIdsDiy(idList); return tEmpFamilyService.removeByIdsDiy(idList);
} }
/* *//**
* 批量新增员工家庭信息
*
* @param excelVOList
* @return
* @Author fxj
* @Date 2019-08-16
**/
/* @Operation(description = "批量新增员工家庭信息 hasPermission('archives-family-batch-import')")
@SysLog("批量新增员工家庭信息")
@PostMapping("/importListAdd")
@PreAuthorize("@pms.hasPermission('archives-family-batch-import')")
public R<List<ErrorMessage>> importListAdd(@RequestExcel List<EmpFamilyExcelVO> excelVOList, BindingResult bindingResult) {
return tEmpFamilyService.importEmpFamily(excelVOList, bindingResult);
}*/
/** /**
* 批量新增员工家庭信息 * 批量新增员工家庭信息
* *
......
...@@ -135,7 +135,7 @@ public class TEmpProfessionalQualificationController { ...@@ -135,7 +135,7 @@ public class TEmpProfessionalQualificationController {
@SysLog("通过ids删除员工职业资格信息表" ) @SysLog("通过ids删除员工职业资格信息表" )
@DeleteMapping("/removeByIds" ) @DeleteMapping("/removeByIds" )
@PreAuthorize("@pms.hasPermission('archives_tempprofessionalqualification_del_batch')" ) @PreAuthorize("@pms.hasPermission('archives_tempprofessionalqualification_del_batch')" )
public R removeByIds(@RequestParam String ids) { public R removeByIds(@RequestBody(required = true) String ids) {
List<String> idList = Common.getList(ids); List<String> idList = Common.getList(ids);
return R.ok(qualificationService.removeByIds(idList)); return R.ok(qualificationService.removeByIds(idList));
} }
......
...@@ -136,7 +136,7 @@ public class TEmpWorkRecordingController { ...@@ -136,7 +136,7 @@ public class TEmpWorkRecordingController {
@SysLog("通过id删除员工家工作息表" ) @SysLog("通过id删除员工家工作息表" )
@DeleteMapping("/removeByIds" ) @DeleteMapping("/removeByIds" )
@PreAuthorize("@pms.hasPermission('archives_tempworkrecording_del_batch')" ) @PreAuthorize("@pms.hasPermission('archives_tempworkrecording_del_batch')" )
public R<Boolean> removeByIds(String ids) { public R<Boolean> removeByIds(@RequestBody(required = true) String ids) {
List<String> idList = Common.getList(ids); List<String> idList = Common.getList(ids);
return R.ok(tEmpWorkRecordingService.removeByIds(idList)); return R.ok(tEmpWorkRecordingService.removeByIds(idList));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment