|
@@ -22,10 +22,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.StopWatch;
|
|
import org.springframework.util.StopWatch;
|
|
|
import top.lvzhiqiang.config.InitRunner;
|
|
import top.lvzhiqiang.config.InitRunner;
|
|
|
import top.lvzhiqiang.config.WorkWeixinProperties;
|
|
import top.lvzhiqiang.config.WorkWeixinProperties;
|
|
|
-import top.lvzhiqiang.entity.CoinHistoryOrder;
|
|
|
|
|
-import top.lvzhiqiang.entity.CoinMonitorCurrency;
|
|
|
|
|
-import top.lvzhiqiang.entity.CoinTrader;
|
|
|
|
|
-import top.lvzhiqiang.entity.CoinWatchlist;
|
|
|
|
|
|
|
+import top.lvzhiqiang.entity.*;
|
|
|
import top.lvzhiqiang.exception.BusinessException;
|
|
import top.lvzhiqiang.exception.BusinessException;
|
|
|
import top.lvzhiqiang.mapper.CoinMapper;
|
|
import top.lvzhiqiang.mapper.CoinMapper;
|
|
|
import top.lvzhiqiang.service.CoinService;
|
|
import top.lvzhiqiang.service.CoinService;
|
|
@@ -1095,6 +1092,14 @@ public class CoinServiceImpl implements CoinService {
|
|
|
|
|
|
|
|
renderMainSearch4Watchlist(watchlistList);
|
|
renderMainSearch4Watchlist(watchlistList);
|
|
|
return watchlistPageInfo;
|
|
return watchlistPageInfo;
|
|
|
|
|
+ } else if (params.getString("nameEn").equals("image")) {
|
|
|
|
|
+ PageHelper.startPage(params.getInteger("pageNo"), params.getInteger("pageSize"), true);
|
|
|
|
|
+ List<FileImage> fileImageList = coinMapper.findImageList(params.toJavaObject(Map.class));
|
|
|
|
|
+
|
|
|
|
|
+ PageInfo<FileImage> imagePageInfo = new PageInfo<>(fileImageList);
|
|
|
|
|
+
|
|
|
|
|
+ renderMainSearch4Image(fileImageList);
|
|
|
|
|
+ return imagePageInfo;
|
|
|
} else if (params.getString("nameEn").equals("monitorCurrency")) {
|
|
} else if (params.getString("nameEn").equals("monitorCurrency")) {
|
|
|
List<CoinMonitorCurrency> monitorCurrencyList = coinMapper.findMonitorCurrencyList();
|
|
List<CoinMonitorCurrency> monitorCurrencyList = coinMapper.findMonitorCurrencyList();
|
|
|
|
|
|
|
@@ -1128,6 +1133,13 @@ public class CoinServiceImpl implements CoinService {
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ private void renderMainSearch4Image(List<FileImage> fileImageList) {
|
|
|
|
|
+ for (FileImage fileImage : fileImageList) {
|
|
|
|
|
+ String newPath = "<a target=\"_blank\" href=\" " + fileImage.getPath() + "\">" + fileImage.getPath() + "</a>";
|
|
|
|
|
+ fileImage.setPath(newPath);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
private void renderMainSearch4Watchlist(List<CoinWatchlist> watchlistList) {
|
|
private void renderMainSearch4Watchlist(List<CoinWatchlist> watchlistList) {
|
|
|
BigDecimal bigDecimal10000 = new BigDecimal("10000");
|
|
BigDecimal bigDecimal10000 = new BigDecimal("10000");
|
|
|
for (CoinWatchlist coinWatchlist : watchlistList) {
|
|
for (CoinWatchlist coinWatchlist : watchlistList) {
|