package com.imdroid.secapi.dto;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface GnssDeviceMapper extends BaseMapper<GnssDevice> {
    @Select({"select * from gnssdevices where deviceid = #{deviceId} limit 1"})
    GnssDevice queryByDeviceId(String deviceId);

    @Update({"update gnssdevices set syn=false where group_id=#{group_id}"})
    int setSynFlagByGroupId(int group_id);
}
