Skip to content

Commit

Permalink
一处SQL语法错误
Browse files Browse the repository at this point in the history
  • Loading branch information
qaiu committed Oct 24, 2024
1 parent 502de1a commit cd4b208
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public Future<Integer> updateTotalByField(String shareKey, CacheTotalField field
MERGE INTO `api_statistics_info` (`pan_type`, `share_key`, `{field}`, `update_ts`)
KEY (`share_key`)
VALUES (#{panType}, #{shareKey}, #{total}, #{ts})
""".replace("field", fieldLower);
""".replace("{field}", fieldLower);

getShareKeyTotal(shareKey, fieldLower).onSuccess(total -> {
Integer newTotal = (total == null ? 0 : total) + 1;
Expand Down

0 comments on commit cd4b208

Please sign in to comment.