瀏覽代碼

bugfix:3768 预生产门店详情(提测0323);人员没有人员应该隐藏掉不显示

刘云鑫 3 周之前
父節點
當前提交
682a7fa845
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. 9 1
      alien-store/src/main/java/shop/alien/store/controller/StoreInfoController.java

+ 9 - 1
alien-store/src/main/java/shop/alien/store/controller/StoreInfoController.java

@@ -1891,7 +1891,15 @@ public class StoreInfoController {
     private boolean hasStaffData(Integer storeId) {
         try {
             List<StaffTitleGroupVo> groups = storeStaffConfigService.queryStaffListByTitle(storeId);
-            return CollectionUtils.isNotEmpty(groups);
+            if (CollectionUtils.isEmpty(groups)) {
+                return false;
+            }
+            for (StaffTitleGroupVo group : groups) {
+                if (group != null && CollectionUtils.isNotEmpty(group.getStaffList())) {
+                    return true;
+                }
+            }
+            return false;
         } catch (Exception e) {
             log.warn("查询人员数据异常 storeId={}, {}", storeId, e.getMessage());
             return false;