fix:门店流水分页查询新增字段

This commit is contained in:
wangff
2025-11-25 16:52:59 +08:00
parent e5a3abbdc7
commit c3f00b4a1f
2 changed files with 9 additions and 10 deletions

View File

@@ -338,17 +338,14 @@ public class WalletServiceImpl implements WalletService {
@Override
public AccountBillPageVO getBillPage(AccountBillQueryRequest request) {
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(request.getShopId());
if (Objects.isNull(shopInfo)) {
throw new ServiceException(ErrorCodeEnum.SHOP_NOT_EXIST);
}
String storeId = getStoreId(request);
LocalDate now = LocalDate.now();
if (Objects.isNull(request.getBeginDate()) || Objects.isNull(request.getEndDate())) {
request.setBeginDate(Date.valueOf(now.withDayOfMonth(1)));
request.setEndDate(Date.valueOf(now));
}
BillPageRequest billPageRequest = BillPageRequest.builder()
.outStoreId(shopInfo.getStoreId())
.outStoreId(storeId)
.beginDate(DateUtil.format(request.getBeginDate(), "yyyy-MM-dd HH:mm:ss"))
.endDate(DateUtil.format(request.getEndDate(), "yyyy-MM-dd HH:mm:ss"))
.walletType(request.getWalletType())