统计台桌售出信息

This commit is contained in:
GYJ
2024-07-06 16:40:21 +08:00
parent 48950bcf14
commit 5e16de0bc8
5 changed files with 81 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
package cn.ysk.cashier.service;
import cn.ysk.cashier.dto.ShopSummaryDto;
import cn.ysk.cashier.vo.ShopTableSaleInfoVo;
import cn.ysk.cashier.vo.SummaryVO;
import cn.ysk.cashier.vo.TbOrderPayCountVo;
import org.springframework.data.domain.Page;
@@ -36,4 +37,6 @@ public interface SummaryService {
void download(ShopSummaryDto summaryDto, HttpServletResponse response) throws IOException;
List<TbOrderPayCountVo> summaryCount(String shopId, Date startTime, Date endTime);
List<ShopTableSaleInfoVo> selectSummaryTable(Integer shopId, Date startTime, Date endTime);
}

View File

@@ -471,4 +471,15 @@ public class SummaryServiceImpl implements SummaryService {
list.add(refNum);
return list;
}
@Override
public List<ShopTableSaleInfoVo> selectSummaryTable(Integer shopId, Date startTime, Date endTime) {
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);
}
}