From 103cb3dbd9df9a32565d718b782edcb1b0fdf51c Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期四, 16 一月 2025 19:44:59 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/qijisheng

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/ShopPointServiceImpl.java        |    4 ++--
 ruoyi-service/ruoyi-other/src/main/resources/mapper/other/SeckillActivityInfoMapper.xml               |    1 -
 ruoyi-service/ruoyi-other/src/main/resources/mapper/other/TechnicianSubscribeMapper.xml               |    5 ++++-
 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/SysRoleController.java           |    5 +++--
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/SeckillActivityInfoController.java |    6 ++++++
 5 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/SysRoleController.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/SysRoleController.java
index 6da0c6d..f6881e8 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/SysRoleController.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/SysRoleController.java
@@ -38,6 +38,7 @@
 
 import javax.annotation.Resource;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.Date;
 import java.util.List;
 import java.util.stream.Collectors;
@@ -82,10 +83,10 @@
 		Long userid = tokenService.getLoginUser().getUserid();
 		SysUser sysUser = sysUserService.getById(userid);
 		LambdaQueryWrapper<SysRole> wrapper = new LambdaQueryWrapper<SysRole>()
-				.ne(SysRole::getRoleId, 2)
+				.notIn(SysRole::getRoleId, Arrays.asList(2, 77, 78, 79, 80))
 				.eq(SysRole::getDelFlag, 0)
 				.eq(SysRole::getStatus, 0);
-		if(sysUser.getRoleType() == 2){
+		if (sysUser.getRoleType() == 2) {
 			wrapper.eq(SysRole::getShopId, sysUser.getObjectId());
 		}
 		List<SysRole> list = roleService.list(wrapper);
diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/SeckillActivityInfoController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/SeckillActivityInfoController.java
index d85091e..57d300d 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/SeckillActivityInfoController.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/SeckillActivityInfoController.java
@@ -8,6 +8,7 @@
 import com.ruoyi.common.core.domain.R;
 import com.ruoyi.common.core.web.controller.BaseController;
 import com.ruoyi.common.core.web.page.TableDataInfo;
+import com.ruoyi.order.feignClient.OrderClient;
 import com.ruoyi.other.api.domain.Goods;
 import com.ruoyi.other.api.domain.GoodsSeckill;
 import com.ruoyi.other.api.domain.SeckillActivityInfo;
@@ -52,6 +53,9 @@
 
     @Resource
     private GoodsService goodsService;
+
+    @Resource
+    private OrderClient orderClient;
     
     
     
@@ -165,6 +169,8 @@
             }else {
                 record.setStatus(1); // 未开始
             }
+            Integer saleNum = orderClient.getGoodsSaleNum(record.getGoodsId(), null).getData();
+            record.setSaleNum(saleNum);
         }
         return R.ok(IPage);
     }
diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/ShopPointServiceImpl.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/ShopPointServiceImpl.java
index 18b4501..77b4e55 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/ShopPointServiceImpl.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/ShopPointServiceImpl.java
@@ -112,7 +112,7 @@
 
                     //服务积分
                     List<ShopPoint> collect1 = list.stream().filter(s -> s.getCreateTime().format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))
-                            .equals(finalStartTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))) && s.getType() == 4).collect(Collectors.toList());
+                            .equals(finalStartTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))) && s.getType() == 1).collect(Collectors.toList());
                     map.put("fwjf", collect1.stream().mapToInt(ShopPoint::getVariablePoint).sum());
                     //绑定下级门店返佣积分
                     List<ShopPoint> collect2 = list.stream().filter(s -> s.getCreateTime().format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))
@@ -164,7 +164,7 @@
 
                     //服务积分
                     List<ShopPoint> collect1 = list.stream().filter(s -> s.getCreateTime().format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))
-                            .equals(finalStartTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))) && s.getType() == 4).collect(Collectors.toList());
+                            .equals(finalStartTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))) && s.getType() == 1).collect(Collectors.toList());
                     map.put("fwjf", collect1.stream().mapToInt(ShopPoint::getVariablePoint).sum());
                     //绑定下级门店返佣积分
                     List<ShopPoint> collect2 = list.stream().filter(s -> s.getCreateTime().format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))
diff --git a/ruoyi-service/ruoyi-other/src/main/resources/mapper/other/SeckillActivityInfoMapper.xml b/ruoyi-service/ruoyi-other/src/main/resources/mapper/other/SeckillActivityInfoMapper.xml
index 1158d17..f9fe703 100644
--- a/ruoyi-service/ruoyi-other/src/main/resources/mapper/other/SeckillActivityInfoMapper.xml
+++ b/ruoyi-service/ruoyi-other/src/main/resources/mapper/other/SeckillActivityInfoMapper.xml
@@ -67,7 +67,6 @@
         tsai.max_num maxNum,
         tg.home_page_picture,
         tg.original_price,
-        tg.sale_num,
         tg.`type` goodsType,
         tsai.start_time,
         tsai.end_time,
diff --git a/ruoyi-service/ruoyi-other/src/main/resources/mapper/other/TechnicianSubscribeMapper.xml b/ruoyi-service/ruoyi-other/src/main/resources/mapper/other/TechnicianSubscribeMapper.xml
index b331c08..7cf2ca9 100644
--- a/ruoyi-service/ruoyi-other/src/main/resources/mapper/other/TechnicianSubscribeMapper.xml
+++ b/ruoyi-service/ruoyi-other/src/main/resources/mapper/other/TechnicianSubscribeMapper.xml
@@ -76,7 +76,8 @@
         CASE
         WHEN tts.subscribe_time <![CDATA[<]]> NOW()  THEN 3
         ELSE tts.status
-        END AS status
+        END AS status,
+        tts.create_time
         FROM
             t_technician_subscribe tts
                 LEFT JOIN t_technician tt ON tts.technician_id = tt.id
@@ -92,6 +93,8 @@
                o.status = #{status}
            </if>
         </where>
+        ORDER BY
+        create_time DESC
 
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.7.1