package com.gic.haoban.manage.service.dao.mapper;

import java.util.List;

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

import com.gic.haoban.manage.api.dto.SecretSettingDTO;
import com.gic.haoban.manage.service.entity.TabSecretSetting;

@Mapper
public interface SecretSettingMapper {
    /**
     */
    int insert(TabSecretSetting record);

    /**
     */
    TabSecretSetting selectByPrimaryKey(String secretId);

    
    /**
     */
    int updateByPrimaryKeySelective(TabSecretSetting record);

    /**
     * 获取企业secret配置信息
     * @param wxEnterpriseId
     * @return
     */
    List<TabSecretSetting> listSecretSetting(@Param("wxEnterpriseId") String wxEnterpriseId);

    /**
     * 获取配置
     * @param wxEnterpriseId
     * @param secretType
     * @param enterpriseId
     * @return
     */
    TabSecretSetting getSecretSetting(@Param("wxEnterpriseId") String wxEnterpriseId,
                                      @Param("secretType") int secretType,
                                      @Param("enterpriseId") String enterpriseId);
    
    /**
     * 
    * @Title: isExsitGicMemberApp
    * @Description: 是否已经存在配置的gic会员小程序
    * @author xugh
    * @param wxEnterpriseId
    * @param enterpriseId
    * @return
    * @throws
     */
    List<SecretSettingDTO> exsitGicEidMemberApp(@Param("wxEnterpriseId") String wxEnterpriseId);

}