|
|
|
@@ -171,7 +171,7 @@ public class CreditUtil { |
|
|
|
String cycleEnd = rule.getString(WxScoreRules.CYCLE_END); |
|
|
|
Integer cycleScale = rule.getInteger(WxScoreRules.CYCLE_SCALE); |
|
|
|
if(cycle == null || StringUtils.isBlank(cycleStart) || StringUtils.isBlank(cycleEnd) || cycleScale == null){ |
|
|
|
break; |
|
|
|
continue; |
|
|
|
} |
|
|
|
if(cycleScale > memberDayScale){ |
|
|
|
if(cycle.equals(EnumScoreScaleRules.WEEK.getCode())){ |
|
|
|
@@ -182,7 +182,7 @@ public class CreditUtil { |
|
|
|
memberDayScale = cycleScale; |
|
|
|
} |
|
|
|
} catch (NumberFormatException e) { |
|
|
|
break; |
|
|
|
continue; |
|
|
|
} |
|
|
|
}else if(cycle.equals(EnumScoreScaleRules.MONTH.getCode())){ |
|
|
|
try { |
|
|
|
@@ -192,7 +192,7 @@ public class CreditUtil { |
|
|
|
memberDayScale = cycleScale; |
|
|
|
} |
|
|
|
} catch (NumberFormatException e) { |
|
|
|
break; |
|
|
|
continue; |
|
|
|
} |
|
|
|
}else if(cycle.equals(EnumScoreScaleRules.YEAR.getCode())){ |
|
|
|
try { |
|
|
|
@@ -205,16 +205,16 @@ public class CreditUtil { |
|
|
|
int dayStart = Integer.parseInt(cycleStarts[2]); |
|
|
|
int dayEnd = Integer.parseInt(cycleEnds[2]); |
|
|
|
if(month == monthStart && monthDay < dayStart){ |
|
|
|
break; |
|
|
|
continue; |
|
|
|
} |
|
|
|
if(month == monthEnd && monthDay > dayEnd){ |
|
|
|
break; |
|
|
|
continue; |
|
|
|
} |
|
|
|
memberDayScale = cycleScale; |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (NumberFormatException e) { |
|
|
|
break; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@@ -235,4 +235,5 @@ public class CreditUtil { |
|
|
|
public static void clear() { |
|
|
|
CreditUtil.isBirthDayScale.remove(); |
|
|
|
} |
|
|
|
|
|
|
|
} |