HcgOptionsMapper.java 679 Bytes
package cn.csbr.springboot.dao.mapper;

import cn.csbr.springboot.dao.model.CabinetDodetail;
import cn.csbr.springboot.dao.model.HcgOptions;
import com.csbr.mybatis.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface HcgOptionsMapper extends MyMapper<HcgOptions> {
    @Select("SELECT optionvalue FROM hcg_options where optiontype=#{type}")
    String getHcgOptionValue(@Param("type") String type);
    @Update("update hcg_options set optionvalue=#{value} where optiontype=#{type}")
    void setHcgOptionValue(@Param("type") String type,@Param("value") String value);
}