package com.fzzy.api.entity;
|
|
import com.bstek.dorado.annotation.PropertyDef;
|
import com.fzzy.api.Constant;
|
|
import lombok.Data;
|
|
import javax.persistence.*;
|
|
import java.io.Serializable;
|
|
/**
|
* @author vince.xu
|
* @Title: Confs
|
* @ProjectName igds-api
|
* @Description: 接口上传所需要的配置 根据库区来配置
|
* @date 2022-9-215:51
|
*/
|
@Data
|
@Entity
|
@Table(name = "API_CONFS")
|
public class ApiConfs implements Serializable {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 8687625896329166886L;
|
|
/**
|
* 接口同步/推送方式-自动
|
*/
|
public static String SYNC_PUSH_AUTO = "01";
|
/**
|
* 接口同步/推送方式-手动
|
*/
|
public static String SYNC_PUSH_HAND = "02";
|
|
/**
|
* 执行时间-天、小时时间配置,* 表示每天、每小时执行
|
*/
|
public static String TIME_ALL = "*";
|
|
|
@Id
|
@PropertyDef(label = "库区代码")
|
@Column(name = "kqdm", length = 50)
|
private String kqdm;
|
|
@PropertyDef(label = "库区名称")
|
@Column(name = "kqmc", length = 100)
|
private String kqmc;
|
|
@PropertyDef(label = "省平台用户名")
|
@Column(name = "username", length = 50)
|
private String userName;
|
|
@PropertyDef(label = "省平台密码")
|
@Column(name = "password", length = 50)
|
private String password;
|
|
@PropertyDef(label = "省平台加密公钥")
|
@Column(name = "publicKey", length = 200)
|
private String publicKey;
|
|
@PropertyDef(label = "授权码")
|
@Column(name = "appCode", length = 50)
|
private String appCode;
|
|
@PropertyDef(label = "省平台接口地址")
|
@Column(name = "apiUrl", length = 200)
|
private String apiUrl;
|
|
@PropertyDef(label = "是否独立接口")
|
@Column(name = "apiUrlTag", length = 2)
|
private String apiUrlTag = Constant.YN_N;
|
|
@PropertyDef(label = "图片请求地址")
|
@Column(name = "imgUrl", length = 200)
|
private String imgUrl;
|
|
@PropertyDef(label = "推送协议")
|
@Column(name = "pushProtocol", length = 20)
|
private String pushProtocol;
|
|
@PropertyDef(label = "同步协议")
|
@Column(name = "syncProtocol", length = 20)
|
private String syncProtocol;
|
|
@PropertyDef(label = "粮库系统库区代码")
|
@Column(name = "deptId", length = 50)
|
private String deptId;
|
|
@PropertyDef(label = "基础接口-同步方式", description = "自动同步,自动同步")
|
@Column(name = "syncType_11", length = 2)
|
private String syncType11;
|
|
@PropertyDef(label = "基础接口-天", description = "1-周一,2-周二,3-周三等等,* 表示每天")
|
@Column(name = "syncDay_11")
|
private String syncDay11;
|
|
@PropertyDef(label = "基础接口-时", description = "0-23表示具体小时,* 表示每小时")
|
@Column(name = "syncHour_11", length = 4)
|
private String syncHour11;
|
|
@PropertyDef(label = "基础接口-分", description = "具体执行时间,分为:0和30两个选择,表示整点执行30分钟执行")
|
@Column(name = "syncMinute_11", length = 4)
|
private String syncMinute11;
|
|
@PropertyDef(label = "基础接口-推送方式", description = "自动同步,自动同步")
|
@Column(name = "pushType_11", length = 2)
|
private String pushType11;
|
|
@PropertyDef(label = "基础接口-天")
|
@Column(name = "pushDay_11", length = 4)
|
private String pushDay11;
|
|
@PropertyDef(label = "基础接口-时")
|
@Column(name = "pushHour_11", length = 4)
|
private String pushHour11;
|
|
@PropertyDef(label = "基础接口-分")
|
@Column(name = "pushMinute_11", length = 4)
|
private String pushMinute11;
|
|
@PropertyDef(label = "其他数据-同步方式", description = "自动同步,自动同步")
|
@Column(name = "syncType_99", length = 2)
|
private String syncType99;
|
|
@PropertyDef(label = "其他数据-天")
|
@Column(name = "syncDay_99", length = 4)
|
private String syncDay99;
|
|
@PropertyDef(label = "其他数据-时")
|
@Column(name = "syncHour_99", length = 4)
|
private String syncHour99;
|
|
@PropertyDef(label = "其他数据-分")
|
@Column(name = "syncMinute_99", length = 4)
|
private String syncMinute99;
|
|
@PropertyDef(label = "其他数据-推送", description = "自动同步,自动同步")
|
@Column(name = "pushType_99", length = 2)
|
private String pushType99;
|
|
@PropertyDef(label = "其他数据-天")
|
@Column(name = "pushDay_99", length = 4)
|
private String pushDay99;
|
|
@PropertyDef(label = "其他数据-时")
|
@Column(name = "pushHour_99", length = 4)
|
private String pushHour99;
|
|
@PropertyDef(label = "其他数据-分")
|
@Column(name = "pushMinute_99", length = 4)
|
private String pushMinute99;
|
|
@PropertyDef(label = "是否上线")
|
@Column(name = "exe_tag", length = 2)
|
private String exeTag = Constant.YN_Y;
|
|
|
@Transient
|
@PropertyDef(label = "模拟得分")
|
private int grade;
|
}
|