|
@@ -12,6 +12,7 @@ import com.ruoyi.framework.recovery.domain.RecContent;
|
|
import com.ruoyi.framework.recovery.domain.RecContentUser;
|
|
import com.ruoyi.framework.recovery.domain.RecContentUser;
|
|
import com.ruoyi.framework.recovery.domain.RecSaleInfo;
|
|
import com.ruoyi.framework.recovery.domain.RecSaleInfo;
|
|
import com.ruoyi.framework.recovery.domain.RecStores;
|
|
import com.ruoyi.framework.recovery.domain.RecStores;
|
|
|
|
+import com.ruoyi.framework.recovery.domain.vo.WxContent;
|
|
import com.ruoyi.framework.recovery.mapper.RecContentMapper;
|
|
import com.ruoyi.framework.recovery.mapper.RecContentMapper;
|
|
import com.ruoyi.framework.recovery.mapper.RecSaleInfoMapper;
|
|
import com.ruoyi.framework.recovery.mapper.RecSaleInfoMapper;
|
|
import com.ruoyi.framework.recovery.service.IRecContentService;
|
|
import com.ruoyi.framework.recovery.service.IRecContentService;
|
|
@@ -74,17 +75,17 @@ public class WxHomeServiceImpl implements IWxHomeService {
|
|
Date endTime = DateUtil.offsetDay(dateTime, 1);
|
|
Date endTime = DateUtil.offsetDay(dateTime, 1);
|
|
Callable<List<RecSaleInfo>> saleInfoCallable = () -> recSaleInfoService.selectRecSaleInfoByTime(startTime, endTime);
|
|
Callable<List<RecSaleInfo>> saleInfoCallable = () -> recSaleInfoService.selectRecSaleInfoByTime(startTime, endTime);
|
|
// 评论
|
|
// 评论
|
|
- Callable<List<RecContent>> contentCallable = () -> recContentService.selectRecContentList(new RecContent());
|
|
|
|
|
|
+ Callable<List<WxContent>> contentCallable = () -> recContentService.selectWxContentList(new WxContent());
|
|
FutureTask<List<RecSaleInfo>> saleInfoTask = new FutureTask<>(saleInfoCallable);
|
|
FutureTask<List<RecSaleInfo>> saleInfoTask = new FutureTask<>(saleInfoCallable);
|
|
- FutureTask<List<RecContent>> contentTask = new FutureTask<>(contentCallable);
|
|
|
|
|
|
+ FutureTask<List<WxContent>> contentTask = new FutureTask<>(contentCallable);
|
|
executorService.submit(saleInfoTask);
|
|
executorService.submit(saleInfoTask);
|
|
executorService.submit(contentTask);
|
|
executorService.submit(contentTask);
|
|
- List<RecContent> contents = contentTask.get();
|
|
|
|
|
|
+ List<WxContent> contents = contentTask.get();
|
|
List<WxContentVo> contentVos = new ArrayList<>();
|
|
List<WxContentVo> contentVos = new ArrayList<>();
|
|
- for (RecContent content : contents) {
|
|
|
|
|
|
+ for (WxContent content : contents) {
|
|
|
|
+ String images = content.getImages();
|
|
WxContentVo vo = new WxContentVo();
|
|
WxContentVo vo = new WxContentVo();
|
|
BeanUtils.copyProperties(content, vo);
|
|
BeanUtils.copyProperties(content, vo);
|
|
- String images = content.getImages();
|
|
|
|
if (StringUtils.isNotEmpty(images)) {
|
|
if (StringUtils.isNotEmpty(images)) {
|
|
List<String> imagesList = Arrays.asList(images.split(","));
|
|
List<String> imagesList = Arrays.asList(images.split(","));
|
|
vo.setImageList(imagesList);
|
|
vo.setImageList(imagesList);
|