台桌统计导出数据处理tableId为null的问题
This commit is contained in:
@@ -477,12 +477,14 @@ public class SummaryServiceImpl implements SummaryService {
|
||||
shopTableSaleInfoDto.getShopId(),
|
||||
start, end);
|
||||
|
||||
Map<String, List<TbOrderSalesCountByTable>> ctMap = countByTables.stream()
|
||||
.collect(Collectors.groupingBy(TbOrderSalesCountByTable::getTableId));
|
||||
if (countByTables != null && !countByTables.isEmpty()) {
|
||||
Map<String, List<TbOrderSalesCountByTable>> ctMap = countByTables.stream()
|
||||
.collect(Collectors.groupingBy(TbOrderSalesCountByTable::getTableId));
|
||||
|
||||
ctMap.forEach((k, v) -> {
|
||||
countByTableMap.put(dateKey + "-" + k, v);
|
||||
});
|
||||
ctMap.forEach((k, v) -> {
|
||||
countByTableMap.put(dateKey + "-" + k, v);
|
||||
});
|
||||
}
|
||||
|
||||
for (ShopTableSaleInfoVo infoVo : infoVos) {
|
||||
tableCodeSet.add(infoVo.getTableCode());
|
||||
|
||||
@@ -61,4 +61,11 @@ public class TbOrderSalesCountByTable {
|
||||
salesNum=salesNum-refNum;
|
||||
salesAmount=salesAmount.subtract(refAmount);
|
||||
}
|
||||
|
||||
public String getTableId() {
|
||||
if (tableId == null) {
|
||||
return "";
|
||||
}
|
||||
return tableId;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user