fix:门店流水分页查询新增字段
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package com.cool.store.request.wallet;
|
||||
|
||||
import com.cool.store.common.PageBasicInfo;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -16,10 +15,7 @@ import java.util.Date;
|
||||
* @since 2025/11/17
|
||||
*/
|
||||
@Data
|
||||
public class AccountBillQueryRequest extends PageBasicInfo {
|
||||
@ApiModelProperty("门店id")
|
||||
@NotNull(message = "门店id不能为空")
|
||||
private Long shopId;
|
||||
public class AccountBillQueryRequest extends StoreShopRequest {
|
||||
|
||||
@ApiModelProperty("交易开始时间,不传查当月")
|
||||
private Date beginDate;
|
||||
@@ -39,4 +35,10 @@ public class AccountBillQueryRequest extends PageBasicInfo {
|
||||
|
||||
@ApiModelProperty("费用类型ID")
|
||||
private Long feeItemId;
|
||||
|
||||
//页码
|
||||
private Integer pageNum;
|
||||
|
||||
//分页大小
|
||||
private Integer pageSize;
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user