统计台桌售出信息
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user