Skip to content
Snippets Groups Projects
Commit add70e57 authored by Haidar's avatar Haidar
Browse files

fix: fix getHistory bug jsonparse

parent 61a51ea1
Branches
Tags
No related merge requests found
Pipeline #59669 canceled with stages
......@@ -77,7 +77,7 @@ public class getHistoryServiceImpl implements getHistoryService {
while (result.next()) {
json += "{\"product_id\": " + result.getInt("product_id") + ", \"quantity\": "
+ result.getInt("quantity") + ", \"timestamp\": "
+ result.getString("timestamp") + ", \"history_id\": \"" + result.getInt("history_id") + "\"},";
+ "\"" + result.getString("timestamp") + "\"" + ", \"history_id\": \"" + result.getInt("history_id") + "\"},";
found = true;
}
json = json.substring(0, json.length() - 1);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment