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