|
|
@@ -1,9 +1,11 @@
|
|
|
package com.ktg.iscs.mapper;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-import org.apache.ibatis.annotations.Mapper;
|
|
|
import com.ktg.common.mapper.BaseMapperX;
|
|
|
+import com.ktg.common.query.LambdaQueryWrapperX;
|
|
|
import com.ktg.iscs.domain.IsKey;
|
|
|
+import org.apache.ibatis.annotations.Mapper;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* 钥匙Mapper接口
|
|
|
@@ -22,6 +24,13 @@ public interface IsKeyMapper extends BaseMapperX<IsKey>
|
|
|
*/
|
|
|
IsKey selectIsKeyByKeyId(Long keyId);
|
|
|
|
|
|
+ /**
|
|
|
+ * 通过NFC编号查询钥匙
|
|
|
+ */
|
|
|
+ default IsKey selectIsKeyByNfc(String nfc) {
|
|
|
+ return selectOne(new LambdaQueryWrapperX<IsKey>().eq(IsKey::getKeyNfc, nfc));
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 查询钥匙列表
|
|
|
*
|