From 3660bfa60949ab823f6604b3e49067275c481b22 Mon Sep 17 00:00:00 2001
From: jiangqs <jiangqs>
Date: 星期六, 26 八月 2023 14:34:05 +0800
Subject: [PATCH] bug
---
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