From e40517c88ba0d7f5f3ff8748195f1887f49b7ab7 Mon Sep 17 00:00:00 2001 From: Singh Date: Tue, 25 Apr 2023 17:32:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20v3=E5=B7=B2=E7=BB=8F=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E4=BA=86=20real=5Fview=5Fcount=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../product/service/task/ProductViewsCountUpdateTask.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/module-product/module-product-service-provider/src/main/java/io/jpress/module/product/service/task/ProductViewsCountUpdateTask.java b/module-product/module-product-service-provider/src/main/java/io/jpress/module/product/service/task/ProductViewsCountUpdateTask.java index caee2bc35..822dc6ac0 100644 --- a/module-product/module-product-service-provider/src/main/java/io/jpress/module/product/service/task/ProductViewsCountUpdateTask.java +++ b/module-product/module-product-service-provider/src/main/java/io/jpress/module/product/service/task/ProductViewsCountUpdateTask.java @@ -56,9 +56,6 @@ public class ProductViewsCountUpdateTask implements Runnable { countsMap.clear(); for (Map.Entry entry : articleViews.entrySet()) { - Db.update("update product set real_view_count = real_view_count + " - + entry.getValue().get() - + " where id = ? ", entry.getKey()); Db.update("update product set view_count = view_count + " + entry.getValue().get() + " where id = ? ", entry.getKey()); -- Gitee