feat:PC接口

This commit is contained in:
苏竹红
2025-11-19 14:51:14 +08:00
parent 94ac7c9fbe
commit f042431572
10 changed files with 283 additions and 6 deletions

View File

@@ -0,0 +1,78 @@
package com.cool.store.dto.wallet;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* @Author suzhuhong
* @Date 2025/11/19 11:14
* @Version 1.0
*/
@Data
public class TradeRecordDTO implements Serializable {
@ApiModelProperty(value = "业务系统付款单号(如 CRM 单号)", required = true)
private String reqNo;
@ApiModelProperty(value = "交易(营帐通)", required = true)
private Long tradeId;
@ApiModelProperty(value = "交易流水号(扫呗)", required = true)
private String outTradeNo;
@ApiModelProperty(value = "费用科目", required = true)
private Integer feeItemId;
@ApiModelProperty(value = "费用科目名称", required = true)
private String feeItemName;
@ApiModelProperty(value = "转出方门店编号")
private String outStoreCode;
@ApiModelProperty(value = "转入方门店编号")
private String inStoreCode;
@ApiModelProperty(value = "转出方门店名称")
private String outStoreName;
@ApiModelProperty(value = "转入方门店名称")
private String inStoreName;
@ApiModelProperty(value = "转出方账户编号")
private String outAccountNo;
@ApiModelProperty(value = "转入方账户编号")
private String inAccountNo;
@ApiModelProperty(value = "转出方账户名称")
private String outAccountName;
@ApiModelProperty(value = "转入方账户名称")
private String inAccountName;
@ApiModelProperty(value = "提现银行卡号")
private String withdrawalBankCardNo;
@ApiModelProperty(value = "提现银行卡户名")
private String withdrawalBankCardName;
@ApiModelProperty(value = "金额(元)", required = true)
private String amount;
@ApiModelProperty(value = "交易状态1.成功 2.失败 3.处理中 4.已退款", required = true)
private Integer tradeStatus;
@ApiModelProperty(value = "1.转账2.提现 交易类型", required = true)
private Integer tradeType;
@ApiModelProperty(value = "备注")
private String remark;
@ApiModelProperty(value = "错误原因")
private String errMsg;
@ApiModelProperty(value = "交易发起时间YYYY-MM-DD HH:MM:SS", required = true)
private String createTime;
}

View File

@@ -0,0 +1,22 @@
package com.cool.store.dto.wallet;
import com.cool.store.request.wallet.WalletBasicPageInfo;
import lombok.Data;
import java.util.List;
/**
* @Author suzhuhong
* @Date 2025/11/19 11:15
* @Version 1.0
*/
@Data
public class TradeRecordListDTO {
private List<TradeRecordDTO> pageData;
private WalletBasicPageInfo page;
}

View File

@@ -11,7 +11,7 @@ import lombok.Data;
@Data
public class AccountBatchQueryRequest {
@ApiModelProperty(value = "关键字(门店编号、门店名称、账户名称、账户别名)")
@ApiModelProperty(value = "关键字(账户名称、账户别名)")
private String keyword;
@ApiModelProperty(value = "账户状态 1 待提交 2 待鉴权 3 鉴权中 4开通 账户状态")
@@ -20,6 +20,11 @@ public class AccountBatchQueryRequest {
@ApiModelProperty(value = "工商类型 1.企业 2.个体工商户 3.小微商户(自然人)")
private Integer businessType;
@ApiModelProperty(value = "门店id")
private String outStoreId;
private Integer walletType;
@ApiModelProperty(value = "分页信息",required = true)
private WalletBasicPageInfo page;

View File

@@ -0,0 +1,45 @@
package com.cool.store.request.wallet;
import com.cool.store.common.PageBasicInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @Author suzhuhong
* @Date 2025/11/19 13:56
* @Version 1.0
*/
@Data
public class CoolAccountBatchQueryRequest extends PageBasicInfo {
@ApiModelProperty(value = "关键字(账户名称、账户别名)")
private String keyword;
@ApiModelProperty(value = "账户状态 1 待提交 2 待鉴权 3 鉴权中 4开通 账户状态")
private Integer accountStatus;
@ApiModelProperty(value = "工商类型 1.企业 2.个体工商户 3.小微商户(自然人)")
private Integer businessType;
@ApiModelProperty(value = "门店id")
private String outStoreId;
private Integer walletType;
public AccountBatchQueryRequest convertToAccountBatchQueryRequest() {
AccountBatchQueryRequest target = new AccountBatchQueryRequest();
target.setKeyword(this.getKeyword());
target.setAccountStatus(this.getAccountStatus());
target.setBusinessType(this.getBusinessType());
target.setOutStoreId(this.getOutStoreId());
target.setWalletType(this.getWalletType());
WalletBasicPageInfo walletBasicPageInfo = new WalletBasicPageInfo();
walletBasicPageInfo.setCurrentPage(this.getPageNum());
walletBasicPageInfo.setPageSize(this.getPageSize());
target.setPage(walletBasicPageInfo);
return target;
}
}

View File

@@ -0,0 +1,41 @@
package com.cool.store.request.wallet;
import com.cool.store.common.PageBasicInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @Author suzhuhong
* @Date 2025/11/19 14:09
* @Version 1.0
*/
@Data
public class CoolTradeRecodePageRequest extends PageBasicInfo {
@ApiModelProperty(value = "交易开始时间YYYY-MM-DD HH:MM:SS",required = true)
private String beginDate;
@ApiModelProperty(value = "交易结束时间YYYY-MM-DD HH:MM:SS",required = true)
private String endDate;
@ApiModelProperty(value = "钱包类型 1.平安 2.网商",required = true)
private Integer walletType;
@ApiModelProperty(value = "关键字(账户名称,账户编号,业务系统付款单号,提现银行卡号)",required = true)
private String keyword;
@ApiModelProperty(value = "关键字(门店编号,门店名称)",required = true)
private String storeKeyword;
@ApiModelProperty(value = "费用科目",required = true)
private Integer feeItemId;
public TradeRecodePageRequest convertToTradeRecodePageRequest() {
TradeRecodePageRequest target = new TradeRecodePageRequest();
target.setBeginDate(this.getBeginDate());
target.setEndDate(this.getEndDate());
target.setWalletType(this.getWalletType());
target.setKeyword(this.getKeyword());
target.setStoreKeyword(this.getStoreKeyword());
target.setFeeItemId(this.getFeeItemId());
target.setCurrentPage(this.getPageNum());
target.setPageSize(this.getPageSize());
return target;
}
}

View File

@@ -0,0 +1,33 @@
package com.cool.store.request.wallet;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @Author suzhuhong
* @Date 2025/11/19 11:07
* @Version 1.0
*/
@Data
public class TradeRecodePageRequest {
@ApiModelProperty(value = "交易开始时间YYYY-MM-DD HH:MM:SS",required = true)
private String beginDate;
@ApiModelProperty(value = "交易结束时间YYYY-MM-DD HH:MM:SS",required = true)
private String endDate;
@ApiModelProperty(value = "钱包类型 1.平安 2.网商",required = true)
private Integer walletType;
@ApiModelProperty(value = "关键字(账户名称,账户编号,业务系统付款单号,提现银行卡号)",required = true)
private String keyword;
@ApiModelProperty(value = "关键字(门店编号,门店名称)",required = true)
private String storeKeyword;
@ApiModelProperty(value = "费用科目",required = true)
private Integer feeItemId;
@ApiModelProperty(value = "当前页码",required = true)
private Integer currentPage;
@ApiModelProperty(value = "每页数量",required = true)
private Integer pageSize;
}