Ver código fonte

修改有效爆款数据导出代码逻辑

syh 4 anos atrás
pai
commit
b8e63cf828

+ 2 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/KuaishouVideoEtlInfoController.java

@@ -91,6 +91,7 @@ public class KuaishouVideoEtlInfoController {
 				}
 			}
 		}
+		queryWrapper.orderByDesc("total_cost");
 		Page<KuaishouVideoEtlInfo> page = new Page<KuaishouVideoEtlInfo>(pageNo, pageSize);
 		IPage<KuaishouVideoEtlInfo> pageList = kuaishouVideoEtlInfoService.page(page, queryWrapper);
 		result.setSuccess(true);
@@ -220,7 +221,7 @@ public class KuaishouVideoEtlInfoController {
 	  HttpUtils.setResponseHeader(response, "头条视频数据统计列表" + date + ".xlsx");
 	  ExcelWriter excelWriter = EasyExcelFactory.getWriter(outputStream);
 
-	  Sheet sheet = new Sheet(1, 0, BytedanceVideoEtlInfoEntity.class);
+	  Sheet sheet = new Sheet(1, 0, KuaishouVideoEtlInfoEntity.class);
 	  sheet.setSheetName(totalSheetVo.getSheetName());
 	  excelWriter.write(totalSheetVo.getDetails(), sheet);
 	  excelWriter.finish();

+ 14 - 14
jeecg-boot-module-system/src/main/java/org/jeecg/modules/excelutil/entity/BytedanceVideoEtlInfoEntity.java

@@ -23,49 +23,49 @@ public class BytedanceVideoEtlInfoEntity extends BaseRowModel {
     @ExcelProperty(value = "所属公司", index = 5)
     private String companyName;
     /**planName*/
-    @ExcelProperty(value = "编导名称", index = 15)
+    @ExcelProperty(value = "编导名称", index = 6)
     private String planName;
     /**clipName*/
-    @ExcelProperty(value = "剪辑名称", index = 15)
+    @ExcelProperty(value = "剪辑名称", index = 7)
     private String clipName;
     /**shotName*/
-    @ExcelProperty(value = "拍摄名称", index = 15)
+    @ExcelProperty(value = "拍摄名称", index = 8)
     private String shotName;
     /**singleWeekCost*/
-    @ExcelProperty(value = "上线一周消耗", index = 15)
+    @ExcelProperty(value = "上线一周消耗", index = 9)
     private BigDecimal singleWeekCost;
     /**twoWeekCost*/
-    @ExcelProperty(value = "上线两周消耗", index = 15)
+    @ExcelProperty(value = "上线两周消耗", index = 10)
     private BigDecimal twoWeekCost;
     /**fourWeekCost*/
-    @ExcelProperty(value = "上线四周消耗", index = 15)
+    @ExcelProperty(value = "上线四周消耗", index = 11)
     private BigDecimal fourWeekCost;
     /**总消耗*/
-    @ExcelProperty(value = "总消耗", index = 15)
+    @ExcelProperty(value = "总消耗", index = 12)
     private BigDecimal totalCost;
     /**clickNum*/
-    @ExcelProperty(value = "封面点击数", index = 15)
+    @ExcelProperty(value = "封面点击数", index = 13)
     private Long clickNum;
     /**showNum*/
-    @ExcelProperty(value = "素材曝光数", index = 15)
+    @ExcelProperty(value = "素材曝光数", index = 14)
     private Long showNum;
     /**activeNum*/
     @ExcelProperty(value = "有效数", index = 15)
     private Long activeNum;
     /**convertNum*/
-    @ExcelProperty(value = "转化数", index = 15)
+    @ExcelProperty(value = "转化数", index = 16)
     private Long convertNum;
     /**effectDate*/
-    @ExcelProperty(value = "达成有效日期", index = 15)
+    @ExcelProperty(value = "达成有效日期", index = 17)
     private String effectDate;
     /**faddishDate*/
-    @ExcelProperty(value = "达成爆款日期", index = 15)
+    @ExcelProperty(value = "达成爆款日期", index = 18)
     private String faddishDate;
     /**effectDayNum*/
-    @ExcelProperty(value = "达成有效天数", index = 15)
+    @ExcelProperty(value = "达成有效天数", index = 19)
     private Integer effectDayNum;
     /**faddishDayNum*/
-    @ExcelProperty(value = "达成爆款天数", index = 15)
+    @ExcelProperty(value = "达成爆款天数", index = 20)
     private Integer faddishDayNum;
 
     public BytedanceVideoEtlInfoEntity(BytedanceVideoEtlInfo etlInfo) {

+ 173 - 20
jeecg-boot-module-system/src/main/java/org/jeecg/modules/excelutil/entity/KuaishouVideoEtlInfoEntity.java

@@ -36,77 +36,71 @@ public class KuaishouVideoEtlInfoEntity extends BaseRowModel {
     /**
      * planName
      */
-    @ExcelProperty(value = "编导名称", index = 15)
+    @ExcelProperty(value = "编导名称", index = 5)
     private String planName;
     /**
      * clipName
      */
-    @ExcelProperty(value = "剪辑名称", index = 15)
+    @ExcelProperty(value = "剪辑名称", index = 7)
     private String clipName;
     /**
      * shotName
      */
-    @ExcelProperty(value = "拍摄名称", index = 15)
+    @ExcelProperty(value = "拍摄名称", index = 8)
     private String shotName;
     /**
      * singleWeekCost
      */
-    @ExcelProperty(value = "上线一周消耗", index = 15)
+    @ExcelProperty(value = "上线一周消耗", index = 9)
     private BigDecimal singleWeekCost;
     /**
      * twoWeekCost
      */
-    @ExcelProperty(value = "上线两周消耗", index = 15)
+    @ExcelProperty(value = "上线两周消耗", index = 10)
     private BigDecimal twoWeekCost;
     /**
      * fourWeekCost
      */
-    @ExcelProperty(value = "上线四周消耗", index = 15)
+    @ExcelProperty(value = "上线四周消耗", index = 11)
     private BigDecimal fourWeekCost;
     /**
      * 总消耗
      */
-    @ExcelProperty(value = "总消耗", index = 15)
+    @ExcelProperty(value = "总消耗", index = 12)
     private BigDecimal totalCost;
     /**
      * clickNum
      */
-    @ExcelProperty(value = "封面曝光数", index = 15)
+    @ExcelProperty(value = "封面曝光数", index = 13)
     private Long photoShow;
-    /**
-     * showNum
-     */
-    @ExcelProperty(value = "封面点击数", index = 15)
+    @ExcelProperty(value = "封面点击数", index = 14)
     private Long photoClick;
-    /**
-     * activeNum
-     */
     @ExcelProperty(value = "素材曝光数", index = 15)
     private Long aclick;
     /**
      * convertNum
      */
-    @ExcelProperty(value = "行为数", index = 15)
+    @ExcelProperty(value = "行为数", index = 16)
     private Long bclick;
     /**
      * effectDate
      */
-    @ExcelProperty(value = "达成有效日期", index = 15)
+    @ExcelProperty(value = "达成有效日期", index = 17)
     private String effectDate;
     /**
      * faddishDate
      */
-    @ExcelProperty(value = "达成爆款日期", index = 15)
+    @ExcelProperty(value = "达成爆款日期", index = 18)
     private String faddishDate;
     /**
      * effectDayNum
      */
-    @ExcelProperty(value = "达成有效天数", index = 15)
+    @ExcelProperty(value = "达成有效天数", index = 19)
     private Integer effectDayNum;
     /**
      * faddishDayNum
      */
-    @ExcelProperty(value = "达成爆款天数", index = 15)
+    @ExcelProperty(value = "达成爆款天数", index = 20)
     private Integer faddishDayNum;
 
     public KuaishouVideoEtlInfoEntity(KuaishouVideoEtlInfo etlInfo) {
@@ -136,4 +130,163 @@ public class KuaishouVideoEtlInfoEntity extends BaseRowModel {
 
     }
 
+    public String getVideoCode() {
+        return videoCode;
+    }
+
+    public void setVideoCode(String videoCode) {
+        this.videoCode = videoCode;
+    }
+
+    public String getStateDate() {
+        return stateDate;
+    }
+
+    public void setStateDate(String stateDate) {
+        this.stateDate = stateDate;
+    }
+
+    public String getUrl() {
+        return url;
+    }
+
+    public void setUrl(String url) {
+        this.url = url;
+    }
+
+    public String getCoverUrl() {
+        return coverUrl;
+    }
+
+    public void setCoverUrl(String coverUrl) {
+        this.coverUrl = coverUrl;
+    }
+
+    public String getCompanyName() {
+        return companyName;
+    }
+
+    public void setCompanyName(String companyName) {
+        this.companyName = companyName;
+    }
+
+    public String getPlanName() {
+        return planName;
+    }
+
+    public void setPlanName(String planName) {
+        this.planName = planName;
+    }
+
+    public String getClipName() {
+        return clipName;
+    }
+
+    public void setClipName(String clipName) {
+        this.clipName = clipName;
+    }
+
+    public String getShotName() {
+        return shotName;
+    }
+
+    public void setShotName(String shotName) {
+        this.shotName = shotName;
+    }
+
+    public BigDecimal getSingleWeekCost() {
+        return singleWeekCost;
+    }
+
+    public void setSingleWeekCost(BigDecimal singleWeekCost) {
+        this.singleWeekCost = singleWeekCost;
+    }
+
+    public BigDecimal getTwoWeekCost() {
+        return twoWeekCost;
+    }
+
+    public void setTwoWeekCost(BigDecimal twoWeekCost) {
+        this.twoWeekCost = twoWeekCost;
+    }
+
+    public BigDecimal getFourWeekCost() {
+        return fourWeekCost;
+    }
+
+    public void setFourWeekCost(BigDecimal fourWeekCost) {
+        this.fourWeekCost = fourWeekCost;
+    }
+
+    public BigDecimal getTotalCost() {
+        return totalCost;
+    }
+
+    public void setTotalCost(BigDecimal totalCost) {
+        this.totalCost = totalCost;
+    }
+
+    public Long getPhotoShow() {
+        return photoShow;
+    }
+
+    public void setPhotoShow(Long photoShow) {
+        this.photoShow = photoShow;
+    }
+
+    public Long getPhotoClick() {
+        return photoClick;
+    }
+
+    public void setPhotoClick(Long photoClick) {
+        this.photoClick = photoClick;
+    }
+
+    public Long getAclick() {
+        return aclick;
+    }
+
+    public void setAclick(Long aclick) {
+        this.aclick = aclick;
+    }
+
+    public Long getBclick() {
+        return bclick;
+    }
+
+    public void setBclick(Long bclick) {
+        this.bclick = bclick;
+    }
+
+    public String getEffectDate() {
+        return effectDate;
+    }
+
+    public void setEffectDate(String effectDate) {
+        this.effectDate = effectDate;
+    }
+
+    public String getFaddishDate() {
+        return faddishDate;
+    }
+
+    public void setFaddishDate(String faddishDate) {
+        this.faddishDate = faddishDate;
+    }
+
+    public Integer getEffectDayNum() {
+        return effectDayNum;
+    }
+
+    public void setEffectDayNum(Integer effectDayNum) {
+        this.effectDayNum = effectDayNum;
+    }
+
+    public Integer getFaddishDayNum() {
+        return faddishDayNum;
+    }
+
+    public void setFaddishDayNum(Integer faddishDayNum) {
+        this.faddishDayNum = faddishDayNum;
+    }
 }

+ 1 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/entity/KuaishouVideoEtlInfo.java

@@ -2,6 +2,7 @@ package cn.com.ctop.kuaishou.modules.report.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableName;
 import lombok.Data;
 import org.jeecgframework.poi.excel.annotation.Excel;