package thyyxxk.webserver.dao.his.medicalinsurance;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import thyyxxk.webserver.entity.medicalinsurance.manage.dismissrules.MedinsDismissRules;
import thyyxxk.webserver.entity.medicalinsurance.manage.dismissrules.RuleElement;

import java.util.List;

@Mapper
public interface DismissRulesDao extends BaseMapper<MedinsDismissRules> {

    @Select("select code,name from t_operator_symbols order by sort_no")
    List<RuleElement> selectOperatorSymbols();

    @Select("select code,name from t_medins_dismiss_rule_element " +
            "where type=#{type} order by sort_no")
    List<RuleElement> selectAttributeOrComparison(String type);
}
