|
|
@@ -165,7 +165,7 @@ public class CoinServiceImpl implements CoinService {
|
|
|
try {
|
|
|
response = requestApi4Common("/api/mix/v1/order/historyProductType", signQueryString, null, JsoupUtil.HTTP_GET, paramMap);
|
|
|
JSONArray orderList = response.getJSONObject("data").getJSONArray("orderList");
|
|
|
- if (orderList.size() > 0) {
|
|
|
+ if (orderList != null && orderList.size() > 0) {
|
|
|
coinMapper.insertHistoryOrderList(JSONArray.parseArray(orderList.toJSONString(), CoinHistoryOrder.class));
|
|
|
log.warn("syncData->insertHistoryOrderList,startTime={},endTime={},size={}", startTime, endTime, orderList.size());
|
|
|
}
|
|
|
@@ -845,7 +845,7 @@ public class CoinServiceImpl implements CoinService {
|
|
|
}
|
|
|
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
- params.put("sortField", "create_time");
|
|
|
+ params.put("sortField", Collections.singletonList("create_time"));
|
|
|
params.put("sort", "desc");
|
|
|
List<CoinWatchlist> watchlistList = coinMapper.findWatchlistList(params);
|
|
|
|
|
|
@@ -1983,7 +1983,7 @@ public class CoinServiceImpl implements CoinService {
|
|
|
@Override
|
|
|
public void debugTest() {
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
- params.put("sortField", "create_time");
|
|
|
+ params.put("sortField", Collections.singletonList("create_time"));
|
|
|
params.put("sort", "desc");
|
|
|
List<CoinWatchlist> watchlistList = coinMapper.findWatchlistList(params);
|
|
|
|