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)}