一处SQL语法错误

This commit is contained in:
QAIU
2024-10-24 10:48:36 +08:00
parent 502de1a5d0
commit cd4b208be9

View File

@@ -59,7 +59,7 @@ public class CacheManager {
MERGE INTO `api_statistics_info` (`pan_type`, `share_key`, `{field}`, `update_ts`) MERGE INTO `api_statistics_info` (`pan_type`, `share_key`, `{field}`, `update_ts`)
KEY (`share_key`) KEY (`share_key`)
VALUES (#{panType}, #{shareKey}, #{total}, #{ts}) VALUES (#{panType}, #{shareKey}, #{total}, #{ts})
""".replace("field", fieldLower); """.replace("{field}", fieldLower);
getShareKeyTotal(shareKey, fieldLower).onSuccess(total -> { getShareKeyTotal(shareKey, fieldLower).onSuccess(total -> {
Integer newTotal = (total == null ? 0 : total) + 1; Integer newTotal = (total == null ? 0 : total) + 1;