package thyyxxk.webserver.dao.his.zhuyuanyisheng;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.*;
import thyyxxk.webserver.entity.datamodify.GetDropdownBox;
import thyyxxk.webserver.entity.dictionary.CodeName;
import thyyxxk.webserver.entity.zhuyuanyisheng.shoushu.OpRecord;
import thyyxxk.webserver.entity.zhuyuanyisheng.shoushu.ShouShuFanHui;
import thyyxxk.webserver.entity.zhuyuanyisheng.shoushu.TReqSurgicalDiag;
import thyyxxk.webserver.entity.zhuyuanyisheng.shoushu.ZdIcd9Cm3;
import thyyxxk.webserver.entity.zhuyuanyisheng.yizhuluru.XinZhenYiZhu;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
/**
*
* 描述: 手术申请
*
*
* @author xc
* @date 2022-02-22 15:45
*/
@Mapper
public interface ShouShuShenQingDao extends BaseMapper {
@Select("")
List obtainSurgicalItems(String name,
Integer type);
@Select("select a.code as code,\n" +
" name_doctor as name\n" +
"from op_level_management a,\n" +
" a_employee_mi b\n" +
"where a.code = b.code\n" +
" and code_op = #{code}\n" +
" and isnull(del_flag, '0') <> '1'")
List getDoctorByOpCode(String code);
@Select("select rtrim(op_name) as value " +
"from op_record with (NOLOCK) " +
"where inpatient_no = #{patNo} " +
" and admiss_times = #{times}" +
" and op_name like #{name} ")
List