package thyyxxk.webserver.controller.zhuyuanyiji;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import thyyxxk.webserver.entity.ResultVo;
import thyyxxk.webserver.entity.inpatient.ZyActpatient;
import thyyxxk.webserver.service.zhuyuanyiji.YiJiFeiYongLuRuServer;

/**
 * <p>
 * 描述： 医技科室的项目录入
 * </p>
 *
 * @author xc
 * @date 2021-09-13 15:39
 */
@RequestMapping("/yiJiFeiYongLuRu")
@RestController
public class YiJiFeiYongLuRuController {

    @Autowired
    private final YiJiFeiYongLuRuServer server;

    public YiJiFeiYongLuRuController(YiJiFeiYongLuRuServer server) {
        this.server = server;
    }

    @GetMapping("/getHuanZheXinXi")
    public ResultVo<ZyActpatient> getHuanZheXinXi(@RequestParam("inpatientNo") String inpatientNo,
                                                  @RequestParam("zaiYuanChuYuan") Integer zaiYuanChuYuan,
                                                  @RequestParam("admissTimes") Integer admissTimes) {
        return server.getHuanZheXinXi(inpatientNo, zaiYuanChuYuan, admissTimes);
    }

 
}
