Commit 95515779 by 章家宝

提成技术参数校验

1 parent 6dd037b6
......@@ -102,6 +102,12 @@ public class PerformanceConfigService {
List<PerformanceParamConfigConditionDTO> performanceParamConfigConditions = param.getPerformanceParamConfigConditions();
if (performanceParamConfigConditions != null) {
param.setPerformanceParamConfigConditions(performanceParamConfigConditions);
for (PerformanceParamConfigConditionDTO condition : performanceParamConfigConditions) {
if (condition.getConditionGoodsConfigType() == null) {
log.info("提成基数参数配置错误。condition_goods_config_type 必传 ");
return RopResponse.error(RopErrorEnum.PERFORMANCE_SCHEME_REQUIREMENT_PARAM_ERROR, "提成基数参数配置错误 condition_goods_config_type 必传 ");
}
}
}
}
performanceConfig.setPerformanceParamConfigs(performanceParamConfigList);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!