| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | return CommonResult.success(null); |
| | | } |
| | | |
| | | /** |
| | | * @Description batch deletion departments |
| | | * @Param [ids] |
| | | * @return com.ycl.api.CommonResult<java.lang.Void> |
| | | **/ |
| | | @ApiOperation("删除") |
| | | @PostMapping(value = "/batch_deletion)") |
| | | public CommonResult<Void> delete(@RequestParam String[] ids) { |
| | | departService.removeBatchByIds(Arrays.asList(ids)); |
| | | return CommonResult.success(null); |
| | | } |
| | | |
| | | @ApiOperation("详情") |
| | | @PostMapping(value = "/detail") |
| | | public CommonResult<UmsDepart> detail(@Validated @RequestBody DepartVO.IdDepartVO params) { |