|
|
@@ -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;
|