|
|
@@ -9,6 +9,7 @@ import org.springframework.data.repository.query.Param;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
|
import com.uas.platform.b2c.prod.product.component.modal.Component;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
@Repository
|
|
|
public interface ComponentDao extends JpaSpecificationExecutor<Component>, JpaRepository<Component, Long> {
|
|
|
@@ -126,6 +127,7 @@ public interface ComponentDao extends JpaSpecificationExecutor<Component>, JpaRe
|
|
|
* @return
|
|
|
*/
|
|
|
@Modifying
|
|
|
+ @Transactional
|
|
|
@Query(value = "update Component c set c.visitCount = c.visitCount+1 where c.uuid = :uuid")
|
|
|
public void addVisitCount(@Param("uuid") String uuid);
|
|
|
}
|