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

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @Description:
 * @Author:lihong
 * @Date: 2024/1/30
 */
@Mapper
public interface DictDataDao {
    @Select("select dict_value from   t_dict_data where dict_type=#{dictType} and dict_name=#{dictName} and status='0'")
    String getDictValueByDictName(@Param("dictType") String dictType, @Param("dictName")String dictName);
    @Update(" update t_dict_data set dict_value =#{dictValue} where dict_type=#{dictType} and dict_name=#{dictName} ")
    int updateDictValue(@Param("dictValue") String dictValue,@Param("dictType") String dictType, @Param("dictName") String dictName);
}
