SmartVehicleBlueShareKeyMapper.java 2.15 KB
package cn.com.glsx.smart.modules.mapper;

import cn.com.glsx.smart.modules.entity.SmartShareKeyBlueKey;
import cn.com.glsx.smart.modules.entity.SmartVehicleBlueShareKey;
import cn.com.glsx.smart.modules.entity.SmartVehicleBlueShareKeyExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SmartVehicleBlueShareKeyMapper {
    long countByExample(SmartVehicleBlueShareKeyExample example);

    int deleteByExample(SmartVehicleBlueShareKeyExample example);

    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(SmartVehicleBlueShareKey record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(SmartVehicleBlueShareKey record);

    List<SmartVehicleBlueShareKey> selectByExample(SmartVehicleBlueShareKeyExample example);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    SmartVehicleBlueShareKey selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") SmartVehicleBlueShareKey record, @Param("example") SmartVehicleBlueShareKeyExample example);

    int updateByExample(@Param("record") SmartVehicleBlueShareKey record, @Param("example") SmartVehicleBlueShareKeyExample example);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(SmartVehicleBlueShareKey record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(SmartVehicleBlueShareKey record);

    int updateShareStatusByIds(List<Long> ids);

    List<SmartShareKeyBlueKey> getShareKeyListByUserId(Long userId);

    int closeShareKeyByMainKeyIds(List<Long> keyIds);

    List<SmartShareKeyBlueKey> getShareKeyListByKeyId(Long keyId);
}