This commit is contained in:
jack ning
2025-07-14 10:00:22 +08:00
parent 9e37bda6f7
commit d3c2ca916e
2 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
* @Author: jackning 270580156@qq.com
* @Date: 2024-05-11 18:25:55
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-06-20 12:52:47
* @LastEditTime: 2025-07-14 09:57:58
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -29,7 +29,7 @@ public interface RelationRepository extends JpaRepository<RelationEntity, Long>,
Boolean existsByUid(String uid);
Optional<RelationEntity> findByNameAndOrgUidAndTypeAndDeletedFalse(String name, String orgUid, String type);
// Optional<RelationEntity> findByNameAndOrgUidAndTypeAndDeletedFalse(String name, String orgUid, String type);
// ==================== 社交关系查询方法 ====================

View File

@@ -2,7 +2,7 @@
* @Author: jackning 270580156@qq.com
* @Date: 2024-05-11 18:25:45
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-07-14 09:52:31
* @LastEditTime: 2025-07-14 09:58:07
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -89,10 +89,10 @@ public class RelationRestService extends BaseRestServiceWithExcel<RelationEntity
return relationRepository.findByUid(uid);
}
@Cacheable(value = "relation", key = "#name + '_' + #orgUid + '_' + #type", unless="#result==null")
public Optional<RelationEntity> findByNameAndOrgUidAndType(String name, String orgUid, String type) {
return relationRepository.findByNameAndOrgUidAndTypeAndDeletedFalse(name, orgUid, type);
}
// @Cacheable(value = "relation", key = "#name + '_' + #orgUid + '_' + #type", unless="#result==null")
// public Optional<RelationEntity> findByNameAndOrgUidAndType(String name, String orgUid, String type) {
// return relationRepository.findByNameAndOrgUidAndTypeAndDeletedFalse(name, orgUid, type);
// }
public Boolean existsByUid(String uid) {
return relationRepository.existsByUid(uid);