Procházet zdrojové kódy

修改开屏逻辑

yumeng před 2 roky
rodič
revize
368d7494cd

+ 3 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/controller/KuaiShouVideoGetController.java

@@ -155,7 +155,9 @@ public class KuaiShouVideoGetController {
                     requestMap.put("endDate", endDate);
                 }
                 requestMap.put("photoName", photoName);
-                requestMap.put("kaiPing", isKaiPing + "");
+                if (isKaiPing == 0) {
+                    requestMap.put("kaiPing", isKaiPing + "");
+                }
                 list = kuaiShouVideoGetService.getVideoList(requestMap);
             } else if ("cost".equals(orderBy)) {
                 if (!Check.isNull(startDate) && !Check.isNull(endDate)) {

+ 5 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaiShouVideoGetMapper.xml

@@ -76,7 +76,12 @@
             </foreach>
         </if>
         group by signature
+        <if test="kaiPing != null ">
         order by photo_name, height
+        </if>
+        <if test="kaiPing == null ">
+            order by stat_date desc
+        </if>
     </select>