package thyyxxk.webserver.dao.his.medicaladvice.nursing;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import thyyxxk.webserver.entity.medicaladvice.medicamanage.YzHlMb;

import java.util.List;

/**
 * @Description:
 * @Author:lihong
 * @Date: 2023/5/9
 */
@Mapper
public interface YzHlMbDao extends BaseMapper<YzHlMb> {
    @Select(" SELECT a.*,rtrim(b.name) opName  FROM yz_hl_mb a left join a_employee_mi b on a.op_id=b.code  ${ew.customSqlSegment}  ")
    List<YzHlMb> listHlmb(@Param(Constants.WRAPPER)QueryWrapper queryWrapper);
}
