package cn.com.taiji.core.entity.comm; | |||||
import java.math.BigDecimal; | |||||
import java.time.LocalDate; | |||||
import java.time.LocalDateTime; | |||||
import javax.persistence.*; | |||||
import javax.validation.constraints.Digits; | |||||
import javax.validation.constraints.NotBlank; | |||||
import javax.validation.constraints.NotNull; | |||||
import javax.validation.constraints.Size; | |||||
import cn.com.taiji.common.entity.StringPropertyUUIDEntity; | |||||
import cn.com.taiji.core.entity.dict.basic.CallQuDaoType; | |||||
import lombok.Getter; | |||||
import lombok.Setter; | |||||
/** | |||||
* 渠道回调结果 | |||||
* | |||||
*/ | |||||
@Getter | |||||
@Setter | |||||
@Entity | |||||
@Table(name = "QUDAO_CALLBACK_RESULT") | |||||
public class QudaoCallbackResult extends StringPropertyUUIDEntity { | |||||
@Size(max = 32) | |||||
@Column(name = "ORDER_NO") | |||||
private String orderNo;//订单编号 | |||||
@Size(max = 2048) | |||||
@Column(name = "REQ_JSON") | |||||
private String reqJson;//请求参数 | |||||
@Size(max = 2048) | |||||
@Column(name = "RESP_JSON") | |||||
private String respJson;//响应参数 | |||||
@Size(max = 255) | |||||
@Column(name = "REQ_URL") | |||||
private String reqUrl;//渠道传的回调地址 | |||||
@Size(max = 4000) | |||||
@Column(name = "EXCEPTION_MSG") | |||||
private String exceptionMsg;//异常信息 | |||||
@Enumerated(EnumType.STRING) | |||||
@Column(name = "CALLQD_TYPE") | |||||
private CallQuDaoType type;//类型 | |||||
@Column(name = "INSERT_TIME") | |||||
private LocalDateTime insertTime; | |||||
} |
package cn.com.taiji.core.entity.dict.basic; | |||||
public enum CallQuDaoType { | |||||
ISSUES("发行订单"), | |||||
ASS("售后订单"), | |||||
; | |||||
private String value; | |||||
CallQuDaoType(String value) { | |||||
this.value = value; | |||||
} | |||||
public String getValue() { | |||||
return value; | |||||
} | |||||
public void setValue(String value) { | |||||
this.value = value; | |||||
} | |||||
} |
**/ | **/ | ||||
public enum IssueOrderStatus { | public enum IssueOrderStatus { | ||||
CANCEL("-1", "已取消"), // 订单取消 | |||||
NORMAL("0", "正常"), // 订单进行中 | |||||
ACTIVE("1", "已激活"), // | |||||
SEAL("99999", "封存"), // 成功的结束 | |||||
FAIL_END("-2", "失败的结束"),// 如订单审核失败 | |||||
CANCEL(-1, "已取消"), // 订单取消 | |||||
NORMAL(0, "正常"), // 订单进行中 | |||||
ACTIVE(1, "已激活"), // | |||||
SEAL(99999, "封存"), // 成功的结束 | |||||
FAIL_END(-2, "失败的结束"),// 如订单审核失败 | |||||
; | ; | ||||
private final String code; | |||||
private final Integer code; | |||||
private final String status; | private final String status; | ||||
IssueOrderStatus(String code, String status) { | |||||
IssueOrderStatus(Integer code, String status) { | |||||
this.code = code; | this.code = code; | ||||
this.status = status; | this.status = status; | ||||
} | } | ||||
public String getCode() { | |||||
public Integer getCode() { | |||||
return code; | return code; | ||||
} | } | ||||
package cn.com.taiji.core.repo.jpa.comm; | |||||
import cn.com.taiji.common.repo.jpa.AbstractJpaRepo; | |||||
import cn.com.taiji.core.entity.comm.QudaoCallbackResult; | |||||
public interface QudaoCallbackResultRepo extends AbstractJpaRepo<QudaoCallbackResult, String>{ | |||||
} |
GlobalConfigBuilder configBuilder = GlobalConfigBuilder.create(); | GlobalConfigBuilder configBuilder = GlobalConfigBuilder.create(); | ||||
configBuilder.setAppName("core"); | configBuilder.setAppName("core"); | ||||
configBuilder.setModule("issue"); | configBuilder.setModule("issue"); | ||||
String pak = "basic"; | |||||
String pak = "comm"; | |||||
configBuilder.setEntityPackage("cn/com/taiji/core/entity/"+pak); | configBuilder.setEntityPackage("cn/com/taiji/core/entity/"+pak); | ||||
configBuilder.setRepoPackage("cn/com/taiji/core/repo/jpa/"+pak); | configBuilder.setRepoPackage("cn/com/taiji/core/repo/jpa/"+pak); | ||||
configBuilder.setTableName("QTK_BRANDINFO"); | |||||
configBuilder.setTableName("QUDAO_CALLBACK_RESULT"); | |||||
// 生成分页查询request | // 生成分页查询request | ||||
// configBuilder.setQueryField(List.of("intVal", "name", "mobile", "insertTime1", "insertTime2")); | // configBuilder.setQueryField(List.of("intVal", "name", "mobile", "insertTime1", "insertTime2")); | ||||
// configBuilder.setOrderBy("orderIndex"); | // configBuilder.setOrderBy("orderIndex"); |