|
@@ -36,6 +36,11 @@ public class HomeManagementConfigServiceImpl extends ServiceImpl<HomeManagementC
|
|
|
Assert.notEmpty(config.getTitle(), "标题不为空");
|
|
Assert.notEmpty(config.getTitle(), "标题不为空");
|
|
|
HomeManagementConfig homeManagementConfig = new HomeManagementConfig();
|
|
HomeManagementConfig homeManagementConfig = new HomeManagementConfig();
|
|
|
BeanUtil.copyProperties(config, homeManagementConfig);
|
|
BeanUtil.copyProperties(config, homeManagementConfig);
|
|
|
|
|
+ if (config.getType() == HomeManagementConfig.Type.ad) {
|
|
|
|
|
+ if (config.getAdType() == null) {
|
|
|
|
|
+ throw BusinessRuntimeException.getInstance("请选择对应的广告配置类型");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
this.saveOrUpdate(homeManagementConfig);
|
|
this.saveOrUpdate(homeManagementConfig);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|