throwexception(SCORE_RULE_FIELD_ERROR,LocaleContextHolder.getLocale().equals(Locale.SIMPLIFIED_CHINESE)?"开始时间需早于结束时间,结束时间需比当前时间晚":"startTime must before endTime and endTime must after now");
throwexception(SCORE_RULE_TIME_ERROR);
}
if(scoreRuleIn.getScorePeriod()<=0){
throwexception(SCORE_RULE_FIELD_ERROR,LocaleContextHolder.getLocale().equals(Locale.SIMPLIFIED_CHINESE)?"积分过期时间必须大于0":"scorePeriod must > 0");
throwexception(SCORE_RULE_FIELD_ERROR,LocaleContextHolder.getLocale().equals(Locale.SIMPLIFIED_CHINESE)?"运输方式只能填海运(1)或空运(3)":"transportType must 1 or 3");
throwexception(SCORE_RULE_FIELD_ERROR,LocaleContextHolder.getLocale().equals(Locale.SIMPLIFIED_CHINESE)?"规则唯一校验:已存在此类规则启用":"such rule is already enabled");
throwexception(SCORE_RULE_FIELD_ERROR,LocaleContextHolder.getLocale().equals(Locale.SIMPLIFIED_CHINESE)?"规则唯一校验:已存在此类规则启用":"such rule is already enabled");
throwexception(SCORE_RULE_UNIQUE_CHECK_ERROR);
}
}
}
...
...
@@ -129,7 +122,7 @@ public class ScoreRuleServiceImpl extends AbstractService<ScoreRuleMapper, Score
throwexception(SCORE_RULE_UPDATE_ERROR,LocaleContextHolder.getLocale().equals(Locale.SIMPLIFIED_CHINESE)?"只有未启用规则可以更新":"only disabled rule can update");
throwexception(SCORE_RULE_FIELD_ERROR,LocaleContextHolder.getLocale().equals(Locale.SIMPLIFIED_CHINESE)?"运输方式只能填海运(1)或空运(3)":"transportType must 1 or 3");
throwexception(SCORE_RULE_FIELD_ERROR,LocaleContextHolder.getLocale().equals(Locale.SIMPLIFIED_CHINESE)?"国家,城市,提货点信息不能为空":"receiveAddrList must not null");
throwexception(SCORE_RULE_RECEIVE_ADDRESS_ERROR);
}
StringBuildertargetCountry=newStringBuilder();
StringBuildertargetCity=newStringBuilder();
...
...
@@ -172,7 +165,7 @@ public class ScoreRuleServiceImpl extends AbstractService<ScoreRuleMapper, Score
targetCity.append(integers.get(1)).append(",");
receiveAddr.append(integers.get(2)).append(",");
}catch(Exceptione){
throwexception(SCORE_RULE_FIELD_ERROR,LocaleContextHolder.getLocale().equals(Locale.SIMPLIFIED_CHINESE)?"国家,城市,提货点参数列表不符合规则":"receiveAddrList format error");
throwexception(SCORE_RULE_FIELD_ERROR,LocaleContextHolder.getLocale().equals(Locale.SIMPLIFIED_CHINESE)?"推荐规则额外参数不能为空":"extraRecommend must not null");
throwexception(SCORE_RULE_FIELD_ERROR,LocaleContextHolder.getLocale().equals(Locale.SIMPLIFIED_CHINESE)?"分享文案不能为空":"shareContentEn and shareContentZh must not null");
throwexception(SCORE_RULE_FIELD_ERROR,LocaleContextHolder.getLocale().equals(Locale.SIMPLIFIED_CHINESE)?"活动详情,活动链接不能为空":"activityDescZh,activityDescEn,activityUrl must not null");
throwexception(SCORE_RULE_FIELD_ERROR,LocaleContextHolder.getLocale().equals(Locale.SIMPLIFIED_CHINESE)?"订单V值积分规则参数不符合规则":"ordervrule does not conform to the rules");
throwexception(ORDERV_SCORE_RULE_ERROR);
}
low=orderVRule.getHigh();
}
...
...
@@ -241,7 +234,7 @@ public class ScoreRuleServiceImpl extends AbstractService<ScoreRuleMapper, Score
throwexception(SCORE_RULE_FIELD_ERROR,LocaleContextHolder.getLocale().equals(Locale.SIMPLIFIED_CHINESE)?"规则唯一校验:已存在此类规则启用":"such rule is already enabled");
throwexception(SCORE_RULE_UPDATE_ERROR,LocaleContextHolder.getLocale().equals(Locale.SIMPLIFIED_CHINESE)?"活动结束时间不能早于当前时间":"end time must after now and start time");
throwexception(SCORE_RULE_TIME_ERROR);
}
ScoreRuleDOupScoreRuleDO=newScoreRuleDO();
upScoreRuleDO.setId(delayReqVO.getId());
...
...
@@ -395,7 +388,7 @@ public class ScoreRuleServiceImpl extends AbstractService<ScoreRuleMapper, Score
throwexception(SCORE_RULE_FIELD_ERROR,LocaleContextHolder.getLocale().equals(Locale.SIMPLIFIED_CHINESE)?"运输方式只能填海运(1)或空运(3)":"transportType must 1 or 3");