Merge remote-tracking branch 'origin/ext-dev' into ext-dev
commit
6f1b047725
@ -0,0 +1,55 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: Crish
|
||||
* @CreateDate:2019-04-16-17:36
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Inheritance(strategy = InheritanceType.JOINED)
|
||||
@Table(name = "MES_CONTAINER_SN_RECORD", indexes = {
|
||||
@Index(columnList = "SERIAL_NUMBER"),
|
||||
@Index(columnList = "PART_NO"),
|
||||
@Index(columnList = "CT_NO")
|
||||
})
|
||||
@Api("容器条码记录表")
|
||||
public class MesContainerSnRecord extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -303802118993255101L;
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("过程条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "CT_NO")
|
||||
@ApiParam("容器号")
|
||||
private String ctNo;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam("数量")
|
||||
private Double qty;
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/10/18 2:55 下午
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Inheritance(strategy = InheritanceType.JOINED)
|
||||
@Table(name = "MES_HOLIDAY_VACTION")
|
||||
@Api("节假日")
|
||||
public class MesHolidayVacation extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -1620451254243818560L;
|
||||
@Column(name = "YEAR")
|
||||
@ApiParam("年")
|
||||
private String year;
|
||||
|
||||
@Column(name = "MONTH")
|
||||
@ApiParam("月")
|
||||
private String month;
|
||||
|
||||
@Column(name = "DAY")
|
||||
@ApiParam("日")
|
||||
private String day;
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import cn.estsh.i3plus.pojo.mes.model.ProductDataModel;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate:2019\10\9 0009
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Inheritance(strategy = InheritanceType.JOINED)
|
||||
@Table(name = "MES_PLC_DATA_RECORD", indexes = {
|
||||
@Index(columnList = "PLC_CODE")
|
||||
})
|
||||
@Api("PLC数据记录表")
|
||||
public class MesPlcDataRecord extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -8789141495695469898L;
|
||||
@Column(name = "PLC_CODE")
|
||||
@ApiParam("PLC代码")
|
||||
private String plcCode;
|
||||
|
||||
@Column(name = "PLC_NAME")
|
||||
@ApiParam("PLC名称")
|
||||
private String plcName;
|
||||
|
||||
@Column(name = "PLC_VLAUE")
|
||||
@ApiParam("PLC型号")
|
||||
private String plcValue;
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesContainerSnRecord;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: jokelin
|
||||
* @Date: 2021/5/1 12:21 PM
|
||||
* @Modify:
|
||||
*/
|
||||
public interface MesContainerSnRecordRepository extends BaseRepository<MesContainerSnRecord, Long> {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesHolidayVacation;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: jokelin
|
||||
* @Date: 2021/5/7 4:44 PM
|
||||
* @Modify:
|
||||
*/
|
||||
public interface MesHolidayVacationRepository extends BaseRepository<MesHolidayVacation, Long> {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPlcDataRecord;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: jokelin
|
||||
* @Date: 2021/5/2 4:11 PM
|
||||
* @Modify:
|
||||
*/
|
||||
public interface MesPlcDataRecordRepository extends BaseRepository<MesPlcDataRecord, Long> {
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
package cn.estsh.i3plus.pojo.screen.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.ScreenEnumUtil;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.EnumType;
|
||||
import javax.persistence.Enumerated;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2021/3/11 下午12:29
|
||||
* @desc
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "SCR_DATA_AUTH")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel("数据权限")
|
||||
public class ScrDataAuth extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 8099384243374450186L;
|
||||
|
||||
@Column(name = "MODEL_CODE")
|
||||
@ApiModelProperty("model代码")
|
||||
private String modelCode;
|
||||
|
||||
@Column(name = "MODEL_FIELD_CODE")
|
||||
@ApiModelProperty("model字段代码")
|
||||
private String modelFieldCode;
|
||||
|
||||
@Column(name = "MODEL_FIELD_CONDITION")
|
||||
@ApiModelProperty("model字段条件")
|
||||
private String modelFieldCondition;
|
||||
|
||||
@Column(name = "ACCESS_ROLES")
|
||||
@ApiModelProperty("可以访问的角色")
|
||||
private String accessRoles;
|
||||
|
||||
@Column(name = "DENIED_ROLES")
|
||||
@ApiModelProperty("拒绝访问的角色")
|
||||
private String deniedRoles;
|
||||
|
||||
@Column(name = "ACCESS_USERS")
|
||||
@ApiModelProperty("可以访问的用户")
|
||||
private String accessUsers;
|
||||
|
||||
@Column(name = "DENIED_USERS")
|
||||
@ApiModelProperty("拒绝访问的用户")
|
||||
private String deniedUsers;
|
||||
|
||||
@Column(name = "AUTH_TYPE")
|
||||
@ApiModelProperty("权限类型 (行,列)")
|
||||
@Enumerated(EnumType.STRING)
|
||||
private ScreenEnumUtil.AUTH_TYPE authType;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package cn.estsh.i3plus.pojo.screen.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.ScreenEnumUtil;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.EnumType;
|
||||
import javax.persistence.Enumerated;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2021/3/22 下午1:27
|
||||
* @desc
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "SCR_DATA_OBJECT_INDEX")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel("数据对象约束管理")
|
||||
public class ScrDataObjectIndex extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 8995523223574903326L;
|
||||
|
||||
@Column(name = "DATA_OBJECT_CODE")
|
||||
@ApiModelProperty("数据对象代码")
|
||||
private String dataObjectCode;
|
||||
|
||||
@Column(name = "INDEX_TYPE")
|
||||
@ApiModelProperty("约束类型")
|
||||
@Enumerated(EnumType.STRING)
|
||||
private ScreenEnumUtil.INDEX_TYPE indexType;
|
||||
|
||||
@Column(name = "GROUP_NO")
|
||||
@ApiModelProperty("组号")
|
||||
private Integer groupNo;
|
||||
|
||||
@Column(name = "FIELD_CODE")
|
||||
@ApiModelProperty("字段代码")
|
||||
private String fieldCode;
|
||||
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
package cn.estsh.i3plus.pojo.screen.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2021/3/22 下午5:21
|
||||
* @desc
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "SCR_DATA_OBJECT_PROPERTY")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ApiModel("数据对象属性")
|
||||
public class ScrDataObjectProperty extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 6954106365899677132L;
|
||||
|
||||
@Column(name = "DATA_OBJECT_CODE")
|
||||
@ApiModelProperty(value = "数据对象代码")
|
||||
private String dataObjectCode;
|
||||
|
||||
@Column(name = "FIELD_CODE")
|
||||
@ApiModelProperty(value = "字段代码")
|
||||
private String fieldCode;
|
||||
|
||||
@Column(name = "DISPLAY_NAME")
|
||||
@ApiModelProperty(value = "字段名称")
|
||||
private String displayName;
|
||||
|
||||
@Column(name = "FIELD_TYPE")
|
||||
@ApiModelProperty(value = "字段类型")
|
||||
private String fieldType;
|
||||
|
||||
@Column(name = "IS_PRIMARY_KEY")
|
||||
@ApiModelProperty(value = "是否主键")
|
||||
private Integer isPrimaryKey;
|
||||
|
||||
@Column(name = "IS_NULLABLE")
|
||||
@ApiModelProperty(value = "是否允许为空")
|
||||
private Integer isNullable;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package cn.estsh.i3plus.pojo.screen.model;
|
||||
|
||||
import cn.estsh.i3plus.pojo.screen.bean.ScrDataObject;
|
||||
import cn.estsh.i3plus.pojo.screen.bean.ScrDataObjectIndex;
|
||||
import cn.estsh.i3plus.pojo.screen.bean.ScrDatasource;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2021/4/26 00:12
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
public class ScrDataObjectIndexModel {
|
||||
|
||||
private ScrDatasource datasource;
|
||||
|
||||
private List<ScrDataObject> dataObjects;
|
||||
|
||||
private List<ScrDataObjectIndex> dataObjectIndices;
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
package cn.estsh.i3plus.pojo.screen.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2021/3/27 下午6:10
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@ApiModel("datasource基础信息")
|
||||
public class ScrDatasourceInfoModel implements Serializable {
|
||||
private static final long serialVersionUID = -5818708649412989886L;
|
||||
|
||||
@ApiModelProperty("数据库已知用户")
|
||||
private String dbKnewUser;
|
||||
|
||||
@ApiModelProperty("数据库系统函数")
|
||||
private String dbSysFunction;
|
||||
|
||||
@ApiModelProperty("数据库系统函数")
|
||||
private String dbDateFunction;
|
||||
|
||||
@ApiModelProperty("数据库系统函数")
|
||||
private String dbStringFunction;
|
||||
|
||||
@ApiModelProperty("数据库连接字符串")
|
||||
private String dbConnectUrl;
|
||||
|
||||
@ApiModelProperty("数据库是否只读")
|
||||
private boolean dbIsReadOnly;
|
||||
|
||||
@ApiModelProperty("数据库产品名称")
|
||||
private String dbProductName;
|
||||
|
||||
@ApiModelProperty("数据库版本")
|
||||
private String dbVersion;
|
||||
|
||||
@ApiModelProperty("数据库驱动")
|
||||
private String dbDriver;
|
||||
|
||||
@ApiModelProperty("数据库驱动版本")
|
||||
private String dbDriverVersion;
|
||||
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
package cn.estsh.i3plus.pojo.screen.model;
|
||||
|
||||
import cn.estsh.i3plus.pojo.screen.bean.ScrLayout;
|
||||
import cn.estsh.i3plus.pojo.screen.bean.ScrPanel;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2021/3/28 下午2:23
|
||||
* @desc
|
||||
*/
|
||||
public class ScrPanelLayoutModel {
|
||||
|
||||
private ScrPanel panel;
|
||||
|
||||
private ScrLayout layout;
|
||||
|
||||
private List<ScrRowColumnModel> rowColumnModels;
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
package cn.estsh.i3plus.pojo.screen.model;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.BlockFormEnumUtil;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : Adair Peng
|
||||
* @CreateDate : 2019-03-22 17:17
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@ApiModel("数据表或视图的列model")
|
||||
public class ScrSqlColumnModel implements Serializable {
|
||||
private static final long serialVersionUID = -8437573966195980847L;
|
||||
// isAutoIncrement true isNullable 0 isSigned true getColumnDisplaySize 11 getColumnLabel id getColumnName id getSchemaName getPrecision 11 getScale 0 getTableName interceptor getColumnType 4 getColumnTypeName INT getColumnClassName java.lang.Integer
|
||||
// isAutoIncrement false isNullable 1 isSigned false getColumnDisplaySize 50 getColumnLabel name getColumnName name getSchemaName getPrecision 50 getScale 0 getTableName interceptor getColumnType 12 getColumnTypeName VARCHAR getColumnClassName java.lang.String
|
||||
// isAutoIncrement false isNullable 1 isSigned true getColumnDisplaySize 11 getColumnLabel age getColumnName age getSchemaName getPrecision 11 getScale 0 getTableName interceptor getColumnType 4 getColumnTypeName INT getColumnClassName java.lang.Integer
|
||||
// isAutoIncrement false isNullable 1 isSigned false getColumnDisplaySize 19 getColumnLabel date_time getColumnName date_time getSchemaName getPrecision 19 getScale 0 getTableName interceptor getColumnType 93 getColumnTypeName TIMESTAMP getColumnClassName java.sql.Timestamp
|
||||
// isAutoIncrement false isNullable 0 isSigned true getColumnDisplaySize 11 getColumnLabel test_num_not_null getColumnName test_num_not_null getSchemaName getPrecision 11 getScale 0 getTableName interceptor getColumnType 4 getColumnTypeName INT getColumnClassName java.lang.Integer
|
||||
// isAutoIncrement false isNullable 1 isSigned true getColumnDisplaySize 11 getColumnLabel test_unique getColumnName test_unique getSchemaName getPrecision 11 getScale 0 getTableName interceptor getColumnType 4 getColumnTypeName INT getColumnClassName java.lang.Integer
|
||||
// isAutoIncrement false isNullable 1 isSigned true getColumnDisplaySize 11 getColumnLabel test_comment getColumnName test_comment getSchemaName getPrecision 11 getScale 0 getTableName interceptor getColumnType 4 getColumnTypeName INT getColumnClassName java.lang.Integer
|
||||
// isAutoIncrement false isNullable 1 isSigned false getColumnDisplaySize 500 getColumnLabel test_string_1000 getColumnName test_string_1000 getSchemaName getPrecision 500 getScale 0 getTableName interceptor getColumnType 12 getColumnTypeName VARCHAR getColumnClassName java.lang.String
|
||||
// isAutoIncrement false isNullable 1 isSigned true getColumnDisplaySize 4 getColumnLabel test_double getColumnName test_double getSchemaName getPrecision 4 getScale 2 getTableName interceptor getColumnType 8 getColumnTypeName DOUBLE getColumnClassName java.lang.Double
|
||||
// 是否自增
|
||||
@ApiParam(value = "是否自增")
|
||||
private Integer isAutoIncrement;
|
||||
// 是否允许为空
|
||||
@ApiParam(value = "是否允许为空")
|
||||
private Integer isNullable;
|
||||
// 是否是对象
|
||||
@ApiParam(value = "是否是对象")
|
||||
private Integer isSigned;
|
||||
// 字段名称
|
||||
@ApiParam(value = "字段名称")
|
||||
private String columnName;
|
||||
// 字段长度
|
||||
@ApiParam(value = "字段长度")
|
||||
private Integer precision;
|
||||
// 字段精确长度
|
||||
@ApiParam(value = "字段精确长度")
|
||||
private Integer scale;
|
||||
|
||||
// 暂用来区分存储过程出入参数信息
|
||||
// 暂用来区分存储过程出入参数信息
|
||||
@AnnoOutputColumn(refClass = BlockFormEnumUtil.ORIGIN_PROPERTY_TYPE.class)
|
||||
@ApiParam(value = "原始列类型")
|
||||
private Integer originPropertyType;
|
||||
|
||||
public String getOriginPropertyTypeTxt() {
|
||||
return originPropertyType == null ? BlockFormEnumUtil.ORIGIN_PROPERTY_TYPE.NORMAL_PROPERTY.getDescription()
|
||||
: BlockFormEnumUtil.ORIGIN_PROPERTY_TYPE.valueOfDescription(originPropertyType);
|
||||
}
|
||||
|
||||
// 字段类型编号
|
||||
@ApiParam(value = "字段类型编号")
|
||||
private Integer columnType;
|
||||
// 字段类型名称
|
||||
@ApiParam(value = "字段类型名称")
|
||||
private String columnTypeName;
|
||||
// 字段Java 类型
|
||||
@ApiParam(value = "字段Java 类型")
|
||||
private String columnClassName;
|
||||
// 字段Java 类型
|
||||
@ApiParam(value = "枚举:BlockFormEnumUtil.PROPERTY_TYPE")
|
||||
private Integer columnClassType;
|
||||
// 属性是否主键
|
||||
@ApiParam(value = "枚举: CommonEnumUtil.TRUE_OR_FALSE")
|
||||
private Integer columnPrimaryKey;
|
||||
|
||||
@ApiParam(value = "属性值")
|
||||
private Object value;
|
||||
@ApiParam(value = "属性默认值")
|
||||
private Object defaultValue;
|
||||
|
||||
public ScrSqlColumnModel() {
|
||||
}
|
||||
|
||||
public ScrSqlColumnModel(String columnName, CommonEnumUtil.PROPERTY_TYPE type) {
|
||||
this.columnName = columnName;
|
||||
this.columnClassType = type.getValue();
|
||||
this.columnTypeName = type.getDescription();
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package cn.estsh.i3plus.pojo.screen.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : Adair Peng
|
||||
* @CreateDate : 2019-03-22 16:40
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
public class ScrSqlDdlModel implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -1294648161172538340L;
|
||||
private String tableCat;
|
||||
private String tableSchem;
|
||||
private String tableName;
|
||||
private Integer tableType;
|
||||
private String tableTypeName;
|
||||
private String remarks;
|
||||
private String typeCat;
|
||||
private String typeName;
|
||||
private String selfReferencingColName;
|
||||
private String refGeneration;
|
||||
|
||||
List<ScrSqlColumnModel> columnlist;
|
||||
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
package cn.estsh.i3plus.pojo.screen.model;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import cn.estsh.i3plus.pojo.screen.bean.ScrDatasource;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2021/4/9 14:59
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel("通用界面查询Model")
|
||||
public class ScrSqlDmlModel implements Serializable {
|
||||
private static final long serialVersionUID = -177686438571101429L;
|
||||
|
||||
@ApiModelProperty("工厂")
|
||||
private String organizeCode;
|
||||
|
||||
@ApiModelProperty("操作人")
|
||||
private String userName;
|
||||
|
||||
@ApiModelProperty("表名或视图名")
|
||||
private String table;
|
||||
|
||||
@ApiModelProperty("查询参数")
|
||||
private Map<String, Object> searchParams;
|
||||
|
||||
@ApiModelProperty("插入参数")
|
||||
private Map<String, Object> insertParams;
|
||||
|
||||
@ApiModelProperty("批量查询参数")
|
||||
private List<Map<String, Object>> insertBatchParams;
|
||||
|
||||
@ApiModelProperty("更新参数")
|
||||
private Map<String, Object> updateParams;
|
||||
|
||||
@ApiModelProperty("批量更新参数")
|
||||
private List<Map<String, Object>> updateBatchParams;
|
||||
|
||||
@ApiModelProperty("分页参数")
|
||||
private Pager pager;
|
||||
|
||||
@ApiModelProperty("排序")
|
||||
private String orderBy;
|
||||
|
||||
@ApiModelProperty("数据源")
|
||||
private ScrDatasource datasource;
|
||||
|
||||
@Deprecated
|
||||
@ApiModelProperty("model与数据对象的model")
|
||||
private ScrModelDataObjectModel modelDataObjectModel;
|
||||
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package cn.estsh.i3plus.pojo.screen.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2021/3/27 下午6:10
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel("table列类型")
|
||||
public class ScrTableColumnModel extends ScrTableModel implements Serializable {
|
||||
private static final long serialVersionUID = -1798799352034473523L;
|
||||
|
||||
@ApiModelProperty("列名")
|
||||
private String columnName;
|
||||
|
||||
@ApiModelProperty("列类型Id")
|
||||
private Integer columnDataType;
|
||||
|
||||
@ApiModelProperty("列类型名称")
|
||||
private String columnTypeName;
|
||||
|
||||
@ApiModelProperty("列大小")
|
||||
private Integer columnSize;
|
||||
|
||||
@ApiModelProperty("列小数位数")
|
||||
private Integer columnDecimalDigits;
|
||||
|
||||
@ApiModelProperty("基数")
|
||||
private Integer columnNumPrecRadix;
|
||||
|
||||
@ApiModelProperty(value = "是否允许为null", notes = "0 不允许为空 1 允许为空 2 未知")
|
||||
private Integer columnNullable;
|
||||
|
||||
@ApiModelProperty("列描述")
|
||||
private String columnRemarks;
|
||||
|
||||
@ApiModelProperty("列默认值")
|
||||
private String columnDefault;
|
||||
|
||||
@ApiModelProperty("列在表中位置")
|
||||
private Integer columnOrdinalPosition;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package cn.estsh.i3plus.pojo.screen.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2021/3/27 下午6:10
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel("table索引类型 包含主键索引")
|
||||
public class ScrTableIndexModel extends ScrTableModel implements Serializable {
|
||||
private static final long serialVersionUID = -6849703973729507400L;
|
||||
|
||||
@ApiModelProperty("索引是否唯一键")
|
||||
private Boolean indexUnique;
|
||||
|
||||
@ApiModelProperty("索引类别(可能为空)")
|
||||
private String indexQualifier;
|
||||
|
||||
@ApiModelProperty("索引名称")
|
||||
private String indexName;
|
||||
|
||||
@ApiModelProperty("索引类型")
|
||||
private Short indexType;
|
||||
|
||||
@ApiModelProperty("索引列顺序号")
|
||||
private Short indexOrdinalPosition;
|
||||
|
||||
@ApiModelProperty("索引列名")
|
||||
private String indexColumnName;
|
||||
|
||||
@ApiModelProperty(value = "索引升降序", notes = "A升序 B降序")
|
||||
private String indexAscDesc;
|
||||
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package cn.estsh.i3plus.pojo.screen.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2021/3/27 下午6:10
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@ApiModel("table类型")
|
||||
public class ScrTableModel implements Serializable {
|
||||
private static final long serialVersionUID = 6273278236124833259L;
|
||||
|
||||
@ApiModelProperty("库名")
|
||||
private String tableCatalog;
|
||||
|
||||
@ApiModelProperty("Schema")
|
||||
private String tableSchem;
|
||||
|
||||
@ApiModelProperty("表名")
|
||||
private String tableName;
|
||||
|
||||
@ApiModelProperty("类型:TABLE|VIEW")
|
||||
private String tableType;
|
||||
|
||||
public ScrTableModel() {
|
||||
}
|
||||
|
||||
public ScrTableModel(String tableCatalog, String tableSchem, String tableName, String tableType) {
|
||||
this.tableCatalog = tableCatalog;
|
||||
this.tableSchem = tableSchem;
|
||||
this.tableName = tableName;
|
||||
this.tableType = tableType;
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package cn.estsh.i3plus.pojo.screen.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2021/3/27 下午6:10
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@ApiModel("table主键索引")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class ScrTablePrimaryIndexModel extends ScrTableModel implements Serializable {
|
||||
private static final long serialVersionUID = 3555705756354710415L;
|
||||
|
||||
@ApiModelProperty("列名")
|
||||
private String columnName;
|
||||
|
||||
@ApiModelProperty("主键顺序")
|
||||
private Short keySeq;
|
||||
|
||||
@ApiModelProperty("主键名称")
|
||||
private String pkName;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package cn.estsh.i3plus.pojo.screen.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.screen.bean.ScrDataAuth;
|
||||
import cn.estsh.i3plus.pojo.screen.bean.ScrDataObject;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 20-5-28 下午3:39
|
||||
* @Modify:
|
||||
**/
|
||||
public interface ScrDataAuthRepository extends BaseRepository<ScrDataAuth, Long> {
|
||||
}
|
Loading…
Reference in New Issue