package com.fs.his.controller;

import com.fs.common.core.controller.BaseController;
import com.fs.common.core.domain.R;
import com.fs.his.param.PrescribeStatParam;
import com.fs.his.service.IFsPrescribeService;
import com.fs.his.vo.DoctorOperateStatVO;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 医生开方时长Controller
 */
@RestController
@RequestMapping("/his/duration")
public class FsPrescribeDurationController extends BaseController {

    @Autowired
    private IFsPrescribeService fsPrescribeService;

    //查询医生开方时长列表
    @PostMapping("/list")
    public R getDurationList(@RequestBody PrescribeStatParam param) {
        PageInfo<DoctorOperateStatVO> page = fsPrescribeService.getDurationList(param);
        return R.ok().put("data", page);
    }
}
