From 877715ae43ad8883513d1c79711931e842976042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E5=A4=A7=E5=8F=94?= <494979559@qq.com> Date: Thu, 26 Sep 2024 16:19:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bonus/domain/enums/BonusArrivalType.java | 5 +- .../com/ruoyi/ss/bonus/mapper/BonusMapper.xml | 10 +-- .../service/impl/BonusConverterImpl.java | 5 +- .../bonus/service/impl/BonusServiceImpl.java | 19 ++--- .../com/ruoyi/ss/device/domain/DeviceBO.java | 6 ++ .../impl/TransactionBillConverterImpl.java | 1 + .../impl/TransactionBillServiceImpl.java | 11 +-- .../com/ruoyi/ss/user/domain/SmUserVo.java | 3 + .../com/ruoyi/ss/user/mapper/SmUserMapper.xml | 5 ++ .../ruoyi/ss/user/service/UserAssembler.java | 5 ++ .../user/service/impl/UserAssemblerImpl.java | 29 +++++++ .../web/controller/ss/BonusController.java | 85 +++++++++++++++++++ 12 files changed, 151 insertions(+), 33 deletions(-) create mode 100644 smart-switch-web/src/main/java/com/ruoyi/web/controller/ss/BonusController.java diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/bonus/domain/enums/BonusArrivalType.java b/smart-switch-service/src/main/java/com/ruoyi/ss/bonus/domain/enums/BonusArrivalType.java index 09fc20fa..e2ce60fc 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/ss/bonus/domain/enums/BonusArrivalType.java +++ b/smart-switch-service/src/main/java/com/ruoyi/ss/bonus/domain/enums/BonusArrivalType.java @@ -26,13 +26,10 @@ public enum BonusArrivalType { private final String msg; public static BonusArrivalType parseByUserType(String type) { - if (UserType.MCH.equalsType(type)) { - return MCH; - } if (UserType.AGENT.equalsType(type)) { return AGENT; } - return null; + return MCH; } public static BonusArrivalType parseByDept(SysDept dept) { diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/bonus/mapper/BonusMapper.xml b/smart-switch-service/src/main/java/com/ruoyi/ss/bonus/mapper/BonusMapper.xml index 710e5892..cf74d210 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/ss/bonus/mapper/BonusMapper.xml +++ b/smart-switch-service/src/main/java/com/ruoyi/ss/bonus/mapper/BonusMapper.xml @@ -61,8 +61,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{item} - ${query.params.dataScope} - ${@com.ruoyi.common.utils.DataScopeUtil@dataScopeDept("sd", query.needScope)}