查询所有桌台信息
This commit is contained in:
@@ -475,13 +475,21 @@ public class SummaryServiceImpl implements SummaryService {
|
||||
|
||||
@Override
|
||||
public List<ShopTableSaleInfoVo> selectSummaryTable(Integer shopId, Date startTime, Date endTime) {
|
||||
List<String> shopTableCodes = tbOrderInfoRepository.queryShopTableIds(shopId);
|
||||
|
||||
long start = 1704038400000L;
|
||||
long end = Instant.now().toEpochMilli();
|
||||
if (startTime != null && endTime != null) {
|
||||
start = startTime.getTime();
|
||||
end = endTime.getTime();
|
||||
}
|
||||
return tbOrderInfoRepository.queryShopTableSaleInfo(shopId.toString(), start, end);
|
||||
|
||||
List<ShopTableSaleInfoVo> list = new ArrayList<>();
|
||||
for (String shopTableCode : shopTableCodes) {
|
||||
ShopTableSaleInfoVo shopTableSaleInfoVo = tbOrderInfoRepository.queryShopTableSaleInfo(shopId.toString(), shopTableCode, start, end);
|
||||
list.add(shopTableSaleInfoVo);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user