feat:发起分账
This commit is contained in:
1 parent
e00e69ccbb
commit
e19bc4a7ef
11 files changed
+388
-7
No files matched your search
+32
@@ -0,0 +1,32 @@
|
||||
package com.bsd.pjcloud.thirdparty.constant.fz;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.bsd.pjcloud.thirdparty.constant.pay.ThirdPayOrderStatusEnum;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* 第三方支付分账状态
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum ThirdFzOrderStatusEnum {
|
||||
FZ_UNPAID("10", "发起分账"),
|
||||
FZ_SUCCESS("20", "分账成功"),
|
||||
FZ_FAILED("30", "分账失败"),
|
||||
|
||||
FZ_REFUNDING("100", "分账退款中"),
|
||||
FZ_REFUND_SUCCESS("200", "分账退款成功"),
|
||||
FZ_REFUND_FAILED("300", "分账退款失败"),
|
||||
;
|
||||
|
||||
private final String type;
|
||||
private final String description;
|
||||
|
||||
public static ThirdFzOrderStatusEnum valueOfByType(String type) {
|
||||
if (ObjectUtil.isEmpty(type)) return null;
|
||||
return Arrays.stream(values()).filter(v -> ObjectUtil.equals(type, v.getType())).findFirst().get();
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.bsd.pjcloud.thirdparty.dto.pay;
|
||||
|
||||
import com.bsd.pjcloud.thirdparty.entity.pay.ThirdFzOrderEntity;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ThirdFzOrderDto extends ThirdFzOrderEntity {
|
||||
|
||||
}
|
||||
Vendored
Executable
+142
@@ -0,0 +1,142 @@
|
||||
package com.bsd.pjcloud.thirdparty.entity.pay;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import com.bsd.pjcloud.common.core.util.TenantTable;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 第三方支付分账
|
||||
*/
|
||||
@Data
|
||||
@TenantTable
|
||||
@TableName("third_fz_order")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description = "第三方支付分账")
|
||||
public class ThirdFzOrderEntity extends Model<ThirdFzOrderEntity> {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@Schema(description = "主键")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 支付订单号
|
||||
*/
|
||||
@Schema(description = "支付订单号")
|
||||
private String payNo;
|
||||
|
||||
/**
|
||||
* 分账订单号
|
||||
*/
|
||||
@Schema(description = "分账订单号")
|
||||
private String fzNo;
|
||||
|
||||
/**
|
||||
* 发起分账req
|
||||
*/
|
||||
@Schema(description = "发起分账req")
|
||||
private String createReq;
|
||||
|
||||
/**
|
||||
* 发起分账res
|
||||
*/
|
||||
@Schema(description = "发起分账res")
|
||||
private String createRes;
|
||||
|
||||
/**
|
||||
* 发起分账error
|
||||
*/
|
||||
@Schema(description = "发起分账error")
|
||||
private String createError;
|
||||
|
||||
/**
|
||||
* 支付状态
|
||||
*/
|
||||
@Schema(description = "支付状态")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 分账时间
|
||||
*/
|
||||
@Schema(description = "分账时间")
|
||||
private LocalDateTime fzTime;
|
||||
|
||||
/**
|
||||
* 分账退款订单号
|
||||
*/
|
||||
@Schema(description = "分账退款订单号")
|
||||
private String fzRefundNo;
|
||||
|
||||
/**
|
||||
* 分账退款时间
|
||||
*/
|
||||
@Schema(description = "分账退款时间")
|
||||
private LocalDateTime fzRefundTime;
|
||||
|
||||
/**
|
||||
* 分账退款req
|
||||
*/
|
||||
@Schema(description = "分账退款req")
|
||||
private String fzRefundReq;
|
||||
|
||||
/**
|
||||
* 分账退款res
|
||||
*/
|
||||
@Schema(description = "分账退款res")
|
||||
private String fzRefundRes;
|
||||
|
||||
/**
|
||||
* 分账退款error
|
||||
*/
|
||||
@Schema(description = "分账退款error")
|
||||
private String fzRefundError;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@Schema(description = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@Schema(description = "更新人")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@Schema(description = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 删除时间
|
||||
*/
|
||||
@TableLogic
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@Schema(description = "删除时间")
|
||||
private String delFlag;
|
||||
|
||||
/**
|
||||
* tenantId
|
||||
*/
|
||||
@Schema(description = "tenantId")
|
||||
private Long tenantId;
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.bsd.pjcloud.thirdparty.vo.pay;
|
||||
|
||||
import com.bsd.pjcloud.thirdparty.entity.pay.ThirdFzOrderEntity;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ThirdFzOrderVo extends ThirdFzOrderEntity {
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user