feat:正元第三方调用记录
This commit is contained in:
1 parent
bc2c228d06
commit
8af79fb451
16 files changed
+533
-20
No files matched your search
+44
@@ -0,0 +1,44 @@
|
||||
package com.bsd.pjcloud.thirdparty.constant;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* 打印状态
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum ThirdZyBizEnumType {
|
||||
|
||||
// 数据同步
|
||||
SYNC_DEALER_INFO("10", "商户信息同步"),
|
||||
SYNC_ENTERPRISE_INFO("20", "已打印"),
|
||||
SYNC_ACCOUNT_INFO("30", "账户信息同步"),
|
||||
SYNC_ACC_CLASS_INFO("40", "身份信息同步"),
|
||||
|
||||
// 跨单位交易
|
||||
AUTHENTICATION("50", "统一身份验证功能"),
|
||||
CONSUMPTION("60", "智慧园区通刷平台提供消费接口"),
|
||||
CORRECT("70", "智慧园区通刷平台提供冲正接口"),
|
||||
|
||||
// 本地一卡通交易数据同步
|
||||
SYNC_NATIVE_CARD_INFO("80", "本地一卡通交易数据同步"),
|
||||
GET_REGION_ID_BY_TOKEN("90", "获取区域编码"),
|
||||
|
||||
// 第三方需提供的接口
|
||||
SELF_CHECK_SYSTEM_STATUS("100", "第三方url健康探测"),
|
||||
SELF_CORRECT("110", "第三方一卡通系统提供冲正接口"),
|
||||
SELF_PAY("120", "第三方一卡通系统提供扣费接口"),
|
||||
SELF_GET_TOKEN("130", "第三方提供获取token"),
|
||||
;
|
||||
private final String type;
|
||||
private final String description;
|
||||
|
||||
public static ThirdZyBizEnumType valueOfByType(String type) {
|
||||
if (ObjectUtil.isEmpty(type)) return null;
|
||||
return Arrays.stream(values()).filter(v -> ObjectUtil.equals(type, v.getType())).findFirst().get();
|
||||
}
|
||||
}
|
||||
+134
@@ -0,0 +1,134 @@
|
||||
package com.bsd.pjcloud.thirdparty.entity.zy;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import com.bsd.pjcloud.common.core.util.TenantTable;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 正元日志表
|
||||
*
|
||||
* @author dzc
|
||||
* @date 2025-03-04 09:05:56
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TenantTable
|
||||
@TableName("third_zy_log")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description = "正元日志表")
|
||||
public class ThirdZyLogEntity extends Model<ThirdZyLogEntity> {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@Schema(description = "主键")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 同步类型
|
||||
*/
|
||||
@Schema(description = "同步类型")
|
||||
private String bizType;
|
||||
|
||||
/**
|
||||
* api url
|
||||
*/
|
||||
@Schema(description = "apiUrl")
|
||||
private String apiUrl;
|
||||
|
||||
/**
|
||||
* 同步类型id
|
||||
*/
|
||||
@Schema(description = "同步类型id")
|
||||
private String bizId;
|
||||
|
||||
/**
|
||||
* 原始res
|
||||
*/
|
||||
@Schema(description = "原始res")
|
||||
private String orgRes;
|
||||
|
||||
/**
|
||||
* 加密res
|
||||
*/
|
||||
@Schema(description = "加密res")
|
||||
private String encipherRes;
|
||||
|
||||
/**
|
||||
* 原始req
|
||||
*/
|
||||
@Schema(description = "原始req")
|
||||
private String orgReq;
|
||||
|
||||
/**
|
||||
* 加密req
|
||||
*/
|
||||
@Schema(description = "加密req")
|
||||
private String encipherReq;
|
||||
|
||||
/**
|
||||
* 调用错误
|
||||
*/
|
||||
@Schema(description = "调用错误")
|
||||
private String error;
|
||||
|
||||
/**
|
||||
* 同步版本格式化为14位字符串,如果是数字不足14位的,前面补0
|
||||
*/
|
||||
@Schema(description = "同步版本格式化为14位字符串,如果是数字不足14位的,前面补0")
|
||||
private String version;
|
||||
|
||||
/**
|
||||
* 同步版本格式化为14位字符串,如果是数字不足14位的,前面补0
|
||||
*/
|
||||
@Schema(description = "同步版本格式化为14位字符串,如果是数字不足14位的,前面补0")
|
||||
private String timeConsuming;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@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;
|
||||
}
|
||||
Reference in new issue
Block a user