package thyyxxk.webserver.controller.executeItem;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.beans.factory.annotation.Autowired;
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.executeItem.YzChangeParam;
import thyyxxk.webserver.service.executeItem.YzExecuteSignService;
import thyyxxk.webserver.utils.ResultVoUtil;

/**
 * @Description:医嘱变更
 * @Author:lihong
 * @Date: 2023/11/6
 */
@RestController
@RequestMapping("/yzExecuteSign")
public class YzExecuteSignController {
    @Autowired
    private YzExecuteSignService service;

    @PostMapping("/queryYzSign")
    public ResultVo<IPage> queryYzSign(@RequestBody YzChangeParam param){
       return ResultVoUtil.success(service.queryYzSign(param));
    }

    @PostMapping("/saveYzSign")
    public ResultVo<String> saveYzChange(@RequestBody YzChangeParam param){
        return service.saveYzSign(param);
    }



}
