package thyyxxk.webserver.controller.zhuyuanyiji;

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

import java.util.List;

/**
 * <p>
 * 描述： 确认医嘱收费
 * </p>
 *
 * @author xc
 * @date 2021-09-27 11:51
 */
@RestController
@RequestMapping("/queRenYiZhuShouFei")
public class QueRenYiZhuShouFeiController {
    private final QueRenYiZhuShouFeiServer server;

    public QueRenYiZhuShouFeiController(QueRenYiZhuShouFeiServer server) {
        this.server = server;
    }

    @PostMapping("/getXuQueFeiYiZhu")
    public ResultVo<IPage<YzActOrder>> getXuQueFeiYiZhu(@RequestBody YzActOrder yzActOrder) {
        return server.getXuQueFeiYiZhu(yzActOrder);
    }

    @GetMapping("/huoQuLiShiQueFeiYiZhu")
    public ResultVo<List<YzActOrder>> huoQuLiShiQueFeiYiZhu(@RequestParam("startTime") String startTime,
                                                            @RequestParam("endTime") String endTime,
                                                            @RequestParam("inpatientNo") String inpatientNo,
                                                            @RequestParam("wardCode") String wardCode,
                                                            @RequestParam("execUnit") String execUnit,
                                                            @RequestParam("paiXu") Integer paiXu,
                                                            @RequestParam("code") String code) {
        return server.huoQuLiShiQueFeiYiZhu(startTime, endTime, inpatientNo, wardCode, execUnit, paiXu, code);
    }


    @PostMapping("/baoCunYiZhuQueFeiShuJu")
    public ResultVo<String> baoCunYiZhuQueFeiShuJu(@RequestBody YzActOrder param) {
        return server.baoCunYiZhuQueFeiShuJu(param);
    }

    @PostMapping("/orderYiZhuQueFeiShuJuOne")
    public ResultVo<Object> orderYiZhuQueFeiShuJuOne(@RequestBody List<Integer> reqNo) {
        return server.orderYiZhuQueFeiShuJuOne(reqNo);
    }


}
