|
@@ -1614,8 +1614,12 @@ public class StoreStaffConfigServiceImpl implements StoreStaffConfigService {
|
|
|
List<StoreStaffConfig> allStaffList = storeStaffConfigMapper.selectBatchIds(allStaffIds);
|
|
List<StoreStaffConfig> allStaffList = storeStaffConfigMapper.selectBatchIds(allStaffIds);
|
|
|
|
|
|
|
|
// 4. 构建员工ID到员工对象的映射
|
|
// 4. 构建员工ID到员工对象的映射
|
|
|
|
|
+ // 过滤条件:未删除、status为1(审核通过)、online_status为0(上线)
|
|
|
Map<Integer, StoreStaffConfig> staffMap = allStaffList.stream()
|
|
Map<Integer, StoreStaffConfig> staffMap = allStaffList.stream()
|
|
|
- .filter(staff -> staff != null && CommonConstant.DELETE_FLAG_UNDELETE.equals(staff.getDeleteFlag()))
|
|
|
|
|
|
|
+ .filter(staff -> staff != null
|
|
|
|
|
+ && CommonConstant.DELETE_FLAG_UNDELETE.equals(staff.getDeleteFlag())
|
|
|
|
|
+ && "1".equals(staff.getStatus())
|
|
|
|
|
+ && staff.getOnlineStatus() != null && staff.getOnlineStatus() == 0)
|
|
|
.collect(Collectors.toMap(StoreStaffConfig::getId, staff -> staff, (a, b) -> a));
|
|
.collect(Collectors.toMap(StoreStaffConfig::getId, staff -> staff, (a, b) -> a));
|
|
|
|
|
|
|
|
// 5. 批量查询今日有演出的员工ID集合(性能优化)
|
|
// 5. 批量查询今日有演出的员工ID集合(性能优化)
|