package com.rongwei.bsserver.controller;

import com.rongwei.bscommon.sys.service.impl.ReportCheckServiceImpl;
import com.rongwei.rwcommon.base.R;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * ReportCheckController class
 *
 * @author XH
 * @date 2024/03/19
 */
@RestController
@RequestMapping("/report-check")
public class ReportCheckController {
    private final Logger log = LoggerFactory.getLogger(this.getClass().getName());

    @Autowired
    private ReportCheckServiceImpl reportCheckService;

    /**
     * 保存检验结果后更新相关信息
     *
     * @param reportCheckId
     * @return
     */
    @PostMapping("/save/postposition")
    public R updateRelevantInformation(@RequestParam(name = "reportCheckId", required = true) String reportCheckId) {
        return reportCheckService.updateRelevantInformation(reportCheckId);
    }
}
