package thyyxxk.webserver.controller.inpatient;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import thyyxxk.webserver.entity.ResultVo;
import thyyxxk.webserver.entity.datamodify.YzActOrder;
import thyyxxk.webserver.service.inpatient.ZhuYuanYiZhuServer;

/**
 * <p>
 * 描述： 医嘱退费
 * </p>
 *
 * @author xc
 * @date 2021-09-17 10:26
 */
@RestController
@RequestMapping("/zhuYuanYiZhu")
public class ZhuYuanYiZhuController {

    private final ZhuYuanYiZhuServer server;

    public ZhuYuanYiZhuController(ZhuYuanYiZhuServer server) {
        this.server = server;
    }

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

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