|
@@ -134,6 +134,11 @@ public class AdSpecialProductImportDTO implements Serializable{
|
134
|
134
|
msg = "请填写正确的刊例价格,最大不能超过8位数!";
|
135
|
135
|
return;
|
136
|
136
|
}
|
|
137
|
+ AdSpecialShowEnvEnum showEnvEnum = EnumHelperUtil.getOneByName(AdSpecialShowEnvEnum.class, showEnv);
|
|
138
|
+ if (showEnvEnum == null) {
|
|
139
|
+ msg = "播出环境填写错误:" + showEnv;
|
|
140
|
+ return;
|
|
141
|
+ }
|
137
|
142
|
}
|
138
|
143
|
|
139
|
144
|
public AdSpecial toSpecial() {
|
|
@@ -147,8 +152,8 @@ public class AdSpecialProductImportDTO implements Serializable{
|
147
|
152
|
adSpecial.setShowDuration(Float.parseFloat(showDuration));
|
148
|
153
|
}
|
149
|
154
|
AdSpecialShowEnvEnum showEnvEnum = EnumHelperUtil.getOneByName(AdSpecialShowEnvEnum.class, showEnv);
|
150
|
|
- adSpecial.setShowEnv(showEnvEnum.getCode());
|
151
|
|
-
|
|
155
|
+ adSpecial.setShowEnv(showEnvEnum.getCode());
|
|
156
|
+
|
152
|
157
|
return adSpecial;
|
153
|
158
|
}
|
154
|
159
|
|