package thyyxxk.webserver.controller.datamodify;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.*;
import thyyxxk.webserver.entity.ResultVo;
import thyyxxk.webserver.entity.datamodify.TYzActOrderModify;
import thyyxxk.webserver.service.datamodify.YzActOrderModifyVerifyService;

import java.math.BigDecimal;

/**
 * <p>
 * 描述
 * </p>
 *
 * @author xc
 * @date 2021-04-09 08:38
 */
@RestController
@RequestMapping("/yzActOrderModifyVerify")
public class YzActOrderModifyVerifyController {

    private final YzActOrderModifyVerifyService service;


    public YzActOrderModifyVerifyController(YzActOrderModifyVerifyService service) {
        this.service = service;
    }

    @PostMapping("/chaKanZhuangTai")
    public ResultVo<IPage<TYzActOrderModify>> chaKanZhuangTai(@RequestBody TYzActOrderModify param) {
        return service.chaKanZhuangTai(param);
    }

    @GetMapping("/shenHeXinXi")
    public ResultVo<TYzActOrderModify> shenHeXinXi(@RequestParam("actOrderNo") BigDecimal actOrderNo) {
        return service.shenHeXinXi(actOrderNo);
    }

    @GetMapping("/shenHePanDuan")
    public ResultVo<Boolean> shenHePanDuan(@RequestParam("auditFlag") Integer auditFlag,
                                           @RequestParam("actOrderNo") BigDecimal actOrderNo,
                                           @RequestParam(value = "auditRemark", required = false) String auditRemark) {
        return service.shenHePanDuan(auditFlag, actOrderNo, auditRemark);
    }
}
