From 546be8a1bafdfc804575a8d07a5d9f2306c29c42 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期四, 19 六月 2025 11:20:58 +0800
Subject: [PATCH] 修改直播列表

---
 ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopSuggestServiceImpl.java |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopSuggestServiceImpl.java b/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopSuggestServiceImpl.java
index b748074..c9df5b0 100644
--- a/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopSuggestServiceImpl.java
+++ b/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopSuggestServiceImpl.java
@@ -1,6 +1,7 @@
 package com.ruoyi.shop.service.impl.shop;
 
 
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.ruoyi.common.core.utils.DateUtils;
@@ -128,6 +129,8 @@
         shopSuggest.setReplayFlag(1);
         String responseTime = DateUtils.formatDuration(shopSuggest.getCreateTime(), shopSuggest.getReplayTime());
         shopSuggest.setResponseTime(responseTime);
+        long responseTimestamp = DateUtils.diffTime(shopSuggest.getCreateTime(), shopSuggest.getReplayTime());
+        shopSuggest.setResponseTimestamp(responseTimestamp);
         this.saveOrUpdate(shopSuggest);
     }
 
@@ -188,4 +191,19 @@
         shopSuggest.setSuggestTags(mgtTagShopSuggestDto.getSuggestTags());
         this.saveOrUpdate(shopSuggest);
     }
+
+    /**
+     * @description  获取会员未回复建议数量
+     * @author  jqs
+     * @date    2023/7/5 12:46
+     * @param
+     * @return  Integer
+     */
+    @Override
+    public Integer getUnReplaySuggestVo(){
+        LambdaQueryWrapper<ShopSuggest> queryWrapper = new LambdaQueryWrapper<>();
+        queryWrapper.eq(ShopSuggest::getDelFlag,0);
+        queryWrapper.eq(ShopSuggest::getReplayFlag,0);
+        return this.count(queryWrapper);
+    }
 }

--
Gitblit v1.7.1