|
@@ -16,12 +16,7 @@ import com.ylcm.sys.domain.AdTv;
|
16
|
16
|
import com.ylcm.sys.excel.listener.BaseExcelListener;
|
17
|
17
|
import com.ylcm.sys.excel.model.AdTheatreExcelDTO;
|
18
|
18
|
import com.ylcm.sys.form.AdTheatreForm;
|
19
|
|
-import com.ylcm.sys.service.AdMediaService;
|
20
|
|
-import com.ylcm.sys.service.AdPlatformService;
|
21
|
|
-import com.ylcm.sys.service.AdProductService;
|
22
|
|
-import com.ylcm.sys.service.AdTheatreService;
|
23
|
|
-import com.ylcm.sys.service.AdTheatreTvService;
|
24
|
|
-import com.ylcm.sys.service.AdTvService;
|
|
19
|
+import com.ylcm.sys.service.*;
|
25
|
20
|
import com.ylcm.sys.vo.AdTheatreVO;
|
26
|
21
|
import lombok.extern.slf4j.Slf4j;
|
27
|
22
|
import org.apache.commons.collections.CollectionUtils;
|
|
@@ -60,6 +55,8 @@ public class AdTheatreController extends BaseController{
|
60
|
55
|
private AdPlatformService adPlatformService;
|
61
|
56
|
@Resource
|
62
|
57
|
private AdMediaService adMediaService;
|
|
58
|
+ @Resource
|
|
59
|
+ private AdTheatreTvStatService adTheatreTvStatService;
|
63
|
60
|
|
64
|
61
|
/**
|
65
|
62
|
* to 列表页面
|
|
@@ -253,9 +250,14 @@ public class AdTheatreController extends BaseController{
|
253
|
250
|
tvList.add(dto.toAdTheatreTv());
|
254
|
251
|
}
|
255
|
252
|
// 入库
|
256
|
|
- msg = adTheatreService.batchAdd(list, tvList);
|
|
253
|
+ List<AdTheatre> adTheatres = adTheatreService.batchAdd(list, tvList);
|
|
254
|
+
|
|
255
|
+ for (AdTheatre adTheatre:adTheatres) {
|
|
256
|
+ adTheatreTvStatService.saveStatByTheatreTv(adTheatre);
|
|
257
|
+ }
|
|
258
|
+
|
257
|
259
|
// 判断执行结果
|
258
|
|
- if ("ok".equals(msg)) {
|
|
260
|
+ if (adTheatres != null) {
|
259
|
261
|
request.setAttribute("repeat", 0);
|
260
|
262
|
request.setAttribute("code", Constants.CODE_SUCCESS);
|
261
|
263
|
request.setAttribute("msg", msg);
|