| | |
| | | package com.ruoyi.personnel.controller; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.spring.web.json.Json; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.time.LocalDate; |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "批量删除 监督记录") |
| | | @ApiImplicitParam(name = "ids", dataType = "array", allowMultiple = true, paramType = "query") |
| | | @DeleteMapping("deletePersonSupervisionRecord") |
| | | public Result<?> deletePersonSupervisionRecord(@RequestParam("ids") List<Integer> ids) { |
| | | personSupervisionRecordService.deletePersonSupervisionRecord(ids); |
| | | public Result<?> deletePersonSupervisionRecord(@RequestParam("ids") String ids) { |
| | | List<Integer> id = JSON.parseArray(ids, Integer.class); |
| | | personSupervisionRecordService.deletePersonSupervisionRecord(id); |
| | | return Result.success(); |
| | | } |
| | | |
| | |
| | | PersonSupervisionControlSheet byId = personSupervisionControlSheetService.getOne(Wrappers.<PersonSupervisionControlSheet>lambdaQuery() |
| | | .eq(PersonSupervisionControlSheet::getSupervisionRecordId, id)); |
| | | if (ObjectUtils.isEmpty(byId)) { |
| | | return Result.fail(202); |
| | | return Result.success(); |
| | | } else { |
| | | return Result.success(byId); |
| | | } |
| | |
| | | PersonSupervisionProcessingSheet byId = personSupervisionProcessingSheetService.getOne(Wrappers.<PersonSupervisionProcessingSheet>lambdaQuery() |
| | | .eq(PersonSupervisionProcessingSheet::getSupervisionRecordId, id)); |
| | | if (ObjectUtils.isEmpty(byId)) { |
| | | return Result.fail(202); |
| | | return Result.success(); |
| | | } else { |
| | | return Result.success(byId); |
| | | } |