Commit 5ba02c57 by 章家宝

fix:条件值添加判断

1 parent cab76bba
......@@ -109,6 +109,17 @@ public class PerformanceConfigService {
log.info("提成基数参数配置错误。condition_goods_config_type 必传 ");
return RopResponse.error(RopErrorEnum.PERFORMANCE_SCHEME_REQUIREMENT_PARAM_ERROR, "提成基数参数配置错误 condition_goods_config_type 必传 ");
}
PerformanceConditionTypeEnum conditionTypeEnum = PerformanceConditionTypeEnum.getByCode(condition.getConditionType());
if (conditionTypeEnum == null) {
log.info("提成基数参数配置错误。condition_type 必传 ");
return RopResponse.error(RopErrorEnum.PERFORMANCE_SCHEME_REQUIREMENT_PARAM_ERROR, "提成基数参数配置错误。condition_type 必传 ");
}
if (conditionTypeEnum == PerformanceConditionTypeEnum.PENETRATION_RATE_LIMIT || conditionTypeEnum == PerformanceConditionTypeEnum.ORDER_COUNT_DEDUCTION) {
if (condition.getConditionEndValue() == null) {
log.info("提成基数参数配置错误。condition_end_value 必传 ");
return RopResponse.error(RopErrorEnum.PERFORMANCE_SCHEME_REQUIREMENT_PARAM_ERROR, "提成基数参数配置错误。condition_end_value 必传 ");
}
}
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!