|
@@ -529,6 +529,6 @@ public interface GoodsDao extends JpaSpecificationExecutor<Goods>, JpaRepository
|
|
|
*/
|
|
*/
|
|
|
@Modifying
|
|
@Modifying
|
|
|
@Transactional
|
|
@Transactional
|
|
|
- @Query(value = "update Goods g set g.visitCount = g.visitCount+1 where g.uuid = :batchCode")
|
|
|
|
|
|
|
+ @Query( nativeQuery = true, value = "update trade$goods set go_visit_count = ifnull(go_visit_count, 0) + 1 where uuid = :batchCode")
|
|
|
public void addVisitCount(@Param("batchCode") String batchCode);
|
|
public void addVisitCount(@Param("batchCode") String batchCode);
|
|
|
}
|
|
}
|