liujie
2026-01-23 5c48e484d754b94cab218473d1284101108d0746
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/EntrustProjectController.java
@@ -12,8 +12,6 @@
import com.ruoyi.system.vo.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.models.auth.In;
import lombok.var;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -166,18 +164,18 @@
        recordService.updateById(record);
        return R.ok();
    }
    @ApiOperation(value = "隐患详情")
    @GetMapping("/errorDetail")
    public R errorDetail(Integer id) {
        Record record = recordService.getById(id);
        return R.ok();
    }
//    @ApiOperation(value = "隐患详情")
//    @GetMapping("/errorDetail")
//    public R errorDetail(Integer id) {
//        Record record = recordService.getById(id);
//
//        return R.ok();
//    }
    @ApiOperation(value = "获取隐患详情")
    @GetMapping("/getHiddenDangerDetail/{problemId}")
    public R<?> getHiddenDangerDetail(@PathVariable Integer problemId) {
        var record = recordService.getHiddenDangerDetail(problemId);
    @GetMapping("/getHiddenDangerDetail/{id}")
    public R<?> getHiddenDangerDetail(@PathVariable Integer id) {
        var record = recordService.getHiddenDangerDetail(id);
        return R.ok(record);
    }