Browse Source

代理人3.0app开发

xuqiang 11 tháng trước cách đây
mục cha
commit
d94d241700

+ 3 - 0
src/main/java/com/ydtech/modules/partner/service/Impl/PartnerRuleServiceImpl.java

@@ -230,6 +230,9 @@ public class PartnerRuleServiceImpl extends ServiceImpl<PartnerRuleMapper, Partn
         if (CollectionUtil.isEmpty(requirement)) {
             throw new SystemException("考核条件不能为空");
         }
+        if (StringUtils.equals("5", grade)){
+            grade = "4";
+        }
         CommissionValidityPeriod period = getCommissionValidityPeriod(cycle1, userId, grade);
         if (period == null) {
             throw new SystemException("有效周期不能为空");