|
@@ -7,6 +7,7 @@ import cn.com.ctop.common.module.service.IMaterialInfoService;
|
|
|
import cn.com.ctop.common.module.service.IMaterialParameterService;
|
|
|
import cn.com.ctop.common.module.service.IMaterialTagService;
|
|
|
import cn.com.ctop.common.module.utils.Check;
|
|
|
+import cn.com.ctop.common.module.utils.JsonUtil;
|
|
|
import cn.com.ctop.common.module.utils.KuaishouInterfaceConstant;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
@@ -24,6 +25,10 @@ import org.jeecg.common.system.query.QueryGenerator;
|
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
|
import org.jeecg.common.util.DateUtils;
|
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
|
+import org.jeecg.modules.ctop.entity.ByteDanceCleanMaterialReport;
|
|
|
+import org.jeecg.modules.ctop.entity.KuaiShouCleanMaterialReport;
|
|
|
+import org.jeecg.modules.ctop.service.IByteDanceCleanMaterialReportService;
|
|
|
+import org.jeecg.modules.ctop.service.IKuaiShouCleanMaterialReportService;
|
|
|
import org.jeecg.modules.ctop.service.IProjectMemberService;
|
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
|
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
|
@@ -67,6 +72,10 @@ public class MaterialInfoController {
|
|
|
private IMaterialParameterService materialParameterService;
|
|
|
@Autowired
|
|
|
private IMaterialTagService materialTagService;
|
|
|
+ @Autowired
|
|
|
+ private IByteDanceCleanMaterialReportService byteDanceCleanMaterialReportService;
|
|
|
+ @Autowired
|
|
|
+ private IKuaiShouCleanMaterialReportService kuaiShouCleanMaterialReportService;
|
|
|
|
|
|
@GetMapping(value = "/report")
|
|
|
public JSONObject report(String userId) {
|
|
@@ -193,22 +202,41 @@ public class MaterialInfoController {
|
|
|
|
|
|
List<MaterialInfo> materialInfoList = pageList.getRecords();
|
|
|
|
|
|
- if (materialInfoList.size() != 0){
|
|
|
- for (MaterialInfo material:materialInfoList){
|
|
|
+ if (materialInfoList.size() != 0) {
|
|
|
+ for (MaterialInfo material : materialInfoList) {
|
|
|
//判断是否已经同步到快手平台
|
|
|
Integer kuaishouMaterialUpCount = materialInfoService.getKuaishouUpVideoCount(material.getCode());
|
|
|
- if (kuaishouMaterialUpCount>0){
|
|
|
+ if (kuaishouMaterialUpCount > 0) {
|
|
|
material.setKuaishouVideoIsUp(1);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
material.setKuaishouVideoIsUp(0);
|
|
|
}
|
|
|
//判断是否已经同步到抖音平台
|
|
|
Integer toutiaoMaterialUpCount = materialInfoService.getToutiaoUpVideoCount(material.getCode());
|
|
|
- if(toutiaoMaterialUpCount >0){
|
|
|
+ if (toutiaoMaterialUpCount > 0) {
|
|
|
material.setToutiaoVideoIsUp(1);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
material.setToutiaoVideoIsUp(0);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ ByteDanceCleanMaterialReport byteDance = byteDanceCleanMaterialReportService.getById(material.getCode());
|
|
|
+ if (!Check.isNull(byteDance)) {
|
|
|
+ String byteDanceString = JsonUtil.objectToJson(byteDance);
|
|
|
+ material.setByteDance(JSONObject.parseObject(byteDanceString));
|
|
|
+ }
|
|
|
+
|
|
|
+ KuaiShouCleanMaterialReport kuaiShou = kuaiShouCleanMaterialReportService.getById(material.getCode());
|
|
|
+ if (!Check.isNull(kuaiShou)) {
|
|
|
+ String kuaiShouString = JsonUtil.objectToJson(kuaiShou);
|
|
|
+ material.setKuaiShou(JSONObject.parseObject(kuaiShouString));
|
|
|
+ }
|
|
|
+
|
|
|
+ /*JSONObject generalizationJson = materialInfoService.getGeneralizationInfo(material.getCode());
|
|
|
+ if (!Check.isNull(generalizationJson)) {
|
|
|
+ material.setGeneralization(generalizationJson);
|
|
|
+ }*/
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -217,6 +245,7 @@ public class MaterialInfoController {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* 添加
|
|
|
*
|