From 03f1f3372a10a08f96f3308bfa099e86a55046d0 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期二, 30 一月 2024 09:32:38 +0800
Subject: [PATCH] 修改数据权限bug

---
 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/config/RecommendCooperationServiceImpl.java |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/config/RecommendCooperationServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/config/RecommendCooperationServiceImpl.java
index 757ef1a..5a36bd8 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/config/RecommendCooperationServiceImpl.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/config/RecommendCooperationServiceImpl.java
@@ -63,6 +63,11 @@
         recommendCooperation.setShopId(merRecommendCooperationDto.getShopId());
         recommendCooperation.setCorpStatus(1);
         recommendCooperation.setCreateTime(new Date());
+        if(recommendCooperation.getShopId()!=null){
+            recommendCooperation.setRecommendedFrom(2);
+        }else{
+            recommendCooperation.setRecommendedFrom(1);
+        }
         this.save(recommendCooperation);
     }
 
@@ -101,10 +106,8 @@
      * @date 2023/6/18 16:47
      */
     @Override
-    public MgtBulletinBoardVo boardMemberTotal(){
-        MgtBulletinBoardVo mgtBulletinBoardVo = new MgtBulletinBoardVo();
-        mgtBulletinBoardVo.setCustomToday(recommendCooperationMapper.customToday());
-        mgtBulletinBoardVo.setCustomTotal(recommendCooperationMapper.customTotal());
+    public MgtBulletinBoardVo boardMemberTotal(List<Long> userIds){
+        MgtBulletinBoardVo mgtBulletinBoardVo = recommendCooperationMapper.customTotal(userIds);
         return mgtBulletinBoardVo;
     }
 }

--
Gitblit v1.7.1