|
|
@ -11,9 +11,9 @@ public interface MatrixAdvRecordMapper extends BaseMapper<MatrixAdvRecord> { |
|
|
|
@Select("select * from matrix_app where code = #{code}") |
|
|
|
MatrixApp queryApp(String code); |
|
|
|
|
|
|
|
@Select("select count(*) from matrix_white_device where channel = #{channel} and device_id = #{deviceId}") |
|
|
|
Integer queryWhitelist(String channel, String deviceId); |
|
|
|
@Select("select count(*) from matrix_white_device where device_id = #{deviceId}") |
|
|
|
Integer queryWhitelist(String deviceId); |
|
|
|
|
|
|
|
@Insert("insert ignore into matrix_white_device (channel, device_id) values (#{channel}, #{deviceId})") |
|
|
|
void insertWhiteList(String channel, String deviceId); |
|
|
|
@Insert("insert ignore into matrix_white_device (device_id) values (#{deviceId})") |
|
|
|
void insertWhiteList(String deviceId); |
|
|
|
} |
|
|
|