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