Просмотр исходного кода

Merge branch 'dev-lqc' into test

lqc 4 лет назад
Родитель
Сommit
a7879464ac

+ 10 - 0
src/main/java/com/mokamrp/privates/mapper/pangu/pojo/FosterwxCashScheduleTaskList.java

@@ -128,6 +128,8 @@ public class FosterwxCashScheduleTaskList extends Model<FosterwxCashScheduleTask
     @TableField(exist = false)
     private Object boxInfo;
 
+    @TableField(exist = false)
+    private String boxUrl;
 
     public Integer getId() {
         return id;
@@ -306,6 +308,14 @@ public class FosterwxCashScheduleTaskList extends Model<FosterwxCashScheduleTask
         this.boxInfo = boxInfo;
     }
 
+    public String getBoxUrl() {
+        return boxUrl;
+    }
+
+    public void setBoxUrl(String boxUrl) {
+        this.boxUrl = boxUrl;
+    }
+
     @Override
     protected Serializable pkVal() {
         return this.id;

+ 8 - 2
src/main/java/com/mokamrp/privates/service/pangu/impl/FosterwxCashScheduleTaskListServiceImpl.java

@@ -196,13 +196,19 @@ public class FosterwxCashScheduleTaskListServiceImpl extends ServiceImpl<Fosterw
         }
 
         // 小程序链接
+        String sendUrl = "";
         if (8 == fosterwxCashTaskList.getBoxType()) {
             // 投放版视频
             // 发文链接
-            fosterwxCashScheduleTaskList.setSendUrl("/pages/index/index?type=tuiguang&videoId=" + fosterwxCashTaskList.getVideoId());
+            sendUrl = "/pages/index/index?type=tuiguang&videoId=" + fosterwxCashTaskList.getVideoId();
         } else {
             // 盘古版视频
-            fosterwxCashScheduleTaskList.setSendUrl(String.format("pages/index/index?type=tuiguang&materialId=%d&categoryId=&d", fosterwxCashTaskList.getVideoId(), fosterwxCashTaskList.getTagId()));
+            sendUrl = String.format("pages/index/index?type=tuiguang&materialId=%d&categoryId=&d", fosterwxCashTaskList.getVideoId(), fosterwxCashTaskList.getTagId());
+        }
+
+        fosterwxCashScheduleTaskList.setSendUrl(sendUrl);
+        if (1 == fosterwxCashTaskList.getTaskType()) {
+            fosterwxCashScheduleTaskList.setBoxUrl(sendUrl);
         }
 
         fosterwxCashScheduleTaskListMapper.updateById(fosterwxCashScheduleTaskList);