package com.elephant.framework.galaxy.aroad.module.zhjs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.elephant.framework.galaxy.aroad.module.zhjs.entity.ZhjsToken;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 
 *
 * @author wangjian
 * @date 2019-05-17 17:00:41
 */
public interface ZhjsTokenMapper extends BaseMapper<ZhjsToken> {

    /**
     * 更新token
     */
    @Update(" update t_zhjs_token set deadtime=#{zhjsToken.deadtime},createtime=#{zhjsToken.createtime},token=#{zhjsToken.token} where token=#{token}")
    void setZhjsToken(@Param("token") String token, @Param("zhjsToken") ZhjsToken zhjsToken);
}
