|
@@ -23,5 +23,10 @@ public interface CollectionPrivilegeRepo extends JpaRepository<CollectionPrivile
|
|
|
@Query(value = "update collection_privilege c set c.collection_id = ?2, c.head_bg = ?3, c.max_collection = ?4, " +
|
|
@Query(value = "update collection_privilege c set c.collection_id = ?2, c.head_bg = ?3, c.max_collection = ?4, " +
|
|
|
"c.showroom_bg = ?5, c.vip = ?6 where c.id = ?1", nativeQuery = true)
|
|
"c.showroom_bg = ?5, c.vip = ?6 where c.id = ?1", nativeQuery = true)
|
|
|
@CacheEvict(value = {"collectionInfo"}, allEntries = true)
|
|
@CacheEvict(value = {"collectionInfo"}, allEntries = true)
|
|
|
- void update(@Nonnull Long id, Long collectionId, String headBg, Integer maxCollection, String showroomBg, Boolean vip);
|
|
|
|
|
|
|
+ void update(@Nonnull Long id, Long collectionId, String headBg, Integer maxCollection, String showroomBg, boolean vip);
|
|
|
|
|
+
|
|
|
|
|
+ @Transactional
|
|
|
|
|
+ @Modifying
|
|
|
|
|
+ @CacheEvict(value = {"collectionInfo"}, allEntries = true)
|
|
|
|
|
+ CollectionPrivilege save(CollectionPrivilege record);
|
|
|
}
|
|
}
|