mitao
2025-03-21 c29811a8e8e6fe8166283f498609f84ca9533249
medicalWaste-admin/src/main/java/com/sinata/web/controller/backend/MwWarningRecordController.java
@@ -7,8 +7,11 @@
import com.sinata.system.service.MwWarningRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -45,6 +48,18 @@
        return R.ok(mwWarningRecordService.pageList(query));
    }
    /**
     * 解除预警
     *
     * @param id
     * @return
     */
    @ApiOperation("解除预警")
    @GetMapping("/relieve/{id}")
    public R<?> relieve(@ApiParam(name = "id", value = "预警记录id", required = true) @PathVariable("id") Long id) {
        mwWarningRecordService.relieve(id);
        return R.ok();
    }
    @ApiOperation("预警信息导出")
    @PostMapping("/export")
    public void export(@RequestBody MwWarningRecordQuery query) {
@@ -54,4 +69,5 @@
            throw new RuntimeException(e);
        }
    }
}