package com.xxfc.platform.app.mapper;

import com.xxfc.platform.app.entity.Cofig;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;

/**
 * 系统配置表
 * 
 * @author zjw
 * @email nishijjo@qq.com
 * @date 2019-06-03 15:57:13
 */
public interface CofigMapper extends Mapper<Cofig> {

    public List<Cofig> getAllByType(@Param("typeList")List<Integer> list);

    /**
     * 更新配置
     * @param cofig
     * @return
     */
    @Update("update config set `title`=#{title},`value`=#{value}`,`type`=#{type},`upd_time`=#{updTime} where `id`=#{id}")
    int updateConfig(Cofig cofig);
}
