From c5d38d650d2ac4101b1293a4f17346e7d5420076 Mon Sep 17 00:00:00 2001 From: huliguo <2023611923@qq.com> Date: 星期五, 04 七月 2025 20:39:58 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/2.0' into 2.0 --- 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