zouyu
2025-03-19 3647aa5008055528f075ee73002542a1399575ae
cnas-personnel/src/main/java/com/ruoyi/personnel/controller/PersonSupervisionRecordController.java
@@ -1,5 +1,6 @@
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;
@@ -17,6 +18,7 @@
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;
@@ -52,10 +54,10 @@
    }
    @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();
    }
@@ -83,7 +85,7 @@
        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);
        }
@@ -95,7 +97,7 @@
        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);
        }