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