Browse Source

素材大盘-修改排行榜sql异常

yangzian 3 năm trước cách đây
mục cha
commit
677000017a

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/service/impl/MaterialReportOverViewServiceImpl.java

@@ -498,7 +498,7 @@ public class MaterialReportOverViewServiceImpl implements IMaterialReportOverVie
         if (roleCode.equals("admin")) {
             return null;
         }
-        return queryProjectIdBy(recursiveQuerySubordinate(currentUser), mediaId);
+        return Check.isNull(queryProjectIdBy(recursiveQuerySubordinate(currentUser), mediaId)) ? null : queryProjectIdBy(recursiveQuerySubordinate(currentUser), mediaId);
     }
     private List<String> getfileIds(Map<String, Map<String, Object>> kuaishouVideoReportMap, JSONArray columns) {
         List<String> titles = new ArrayList<>();