|
@@ -193,22 +193,24 @@ 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);
|
|
|
}
|
|
|
+ JSONObject generalizationJson = materialInfoService.getGeneralizationInfo(material.getCode());
|
|
|
+ material.setGeneralization(generalizationJson);
|
|
|
}
|
|
|
}
|
|
|
|