|
|
@@ -7,6 +7,7 @@ import java.util.List;
|
|
7
|
7
|
import java.util.stream.Collectors;
|
|
8
|
8
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
9
|
9
|
import org.springframework.stereotype.Service;
|
|
|
10
|
+import com.github.pagehelper.PageHelper;
|
|
10
|
11
|
import com.ruoyi.common.utils.StringUtils;
|
|
11
|
12
|
import com.ruoyi.web.modules.trading.domain.AppYakMarketQuoteRow;
|
|
12
|
13
|
import com.ruoyi.web.modules.trading.domain.BizMarketDailyQuote;
|
|
|
@@ -53,6 +54,7 @@ public class AppYakMarketServiceImpl implements IAppYakMarketService
|
|
53
|
54
|
@Override
|
|
54
|
55
|
public AppYakMarketStats7Vo selectStats7()
|
|
55
|
56
|
{
|
|
|
57
|
+ PageHelper.clearPage();
|
|
56
|
58
|
LocalDate end = YakMarketDateSupport.yesterday();
|
|
57
|
59
|
LocalDate begin = end.minusDays(6);
|
|
58
|
60
|
List<AppYakMarketQuoteRow> rows = appYakMarketQuoteMapper.selectByQuoteDateRange(
|
|
|
@@ -64,6 +66,7 @@ public class AppYakMarketServiceImpl implements IAppYakMarketService
|
|
64
|
66
|
@Override
|
|
65
|
67
|
public List<AppYakMarketTrendPointVo> selectTrend(int days)
|
|
66
|
68
|
{
|
|
|
69
|
+ PageHelper.clearPage();
|
|
67
|
70
|
if (days != 7 && days != 30)
|
|
68
|
71
|
{
|
|
69
|
72
|
throw new IllegalArgumentException("走势天数仅支持 7 或 30");
|
|
|
@@ -92,6 +95,7 @@ public class AppYakMarketServiceImpl implements IAppYakMarketService
|
|
92
|
95
|
@Override
|
|
93
|
96
|
public AppYakMarketForecastVo selectForecast()
|
|
94
|
97
|
{
|
|
|
98
|
+ PageHelper.clearPage();
|
|
95
|
99
|
AppYakMarketQuoteRow row = appYakMarketQuoteMapper.selectByQuoteDate(
|
|
96
|
100
|
YakMarketDateSupport.toSqlDate(YakMarketDateSupport.yesterday()));
|
|
97
|
101
|
if (row == null)
|