wangdy 8 лет назад
Родитель
Сommit
8e821ce27d

+ 1 - 1
src/main/java/com/uas/platform/b2c/prod/commodity/dao/GoodsDao.java

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

+ 1 - 1
src/main/java/com/uas/platform/b2c/prod/product/brand/dao/BrandDao.java

@@ -88,6 +88,6 @@ public interface BrandDao extends JpaSpecificationExecutor<Brand>, JpaRepository
 	 */
 	 */
 	@Modifying
 	@Modifying
 	@Transactional
 	@Transactional
-	@Query( nativeQuery = true, value = "update product$brand b set b.br_visit_count = ifnull(b.br_visit_count, 0) + 1 where b.uuid = :uuid")
+	@Query( nativeQuery = true, value = "update product$brand b set b.br_visit_count = ifnull(b.br_visit_count, 0) + 1 where b.br_uuid = :uuid")
 	public void addVisitCount(@Param("uuid") String uuid);
 	public void addVisitCount(@Param("uuid") String uuid);
 }
 }

+ 1 - 1
src/main/java/com/uas/platform/b2c/prod/product/component/dao/ComponentDao.java

@@ -128,6 +128,6 @@ public interface ComponentDao extends JpaSpecificationExecutor<Component>, JpaRe
 	 */
 	 */
 	@Modifying
 	@Modifying
 	@Transactional
 	@Transactional
-	@Query( nativeQuery = true, value = "update product$component set cmp_visit_count = ifnull(cmp_visit_count, 0) + 1 where uuid = :uuid")
+	@Query( nativeQuery = true, value = "update product$component set cmp_visit_count = ifnull(cmp_visit_count, 0) + 1 where cmp_uuid = :uuid")
 	public void addVisitCount(@Param("uuid") String uuid);
 	public void addVisitCount(@Param("uuid") String uuid);
 }
 }