Merge branch 'test' into ext-dev
commit
53a7709bc8
@ -0,0 +1,90 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.platform.bean;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import org.hibernate.annotations.DynamicInsert;
|
||||||
|
import org.hibernate.annotations.DynamicUpdate;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : Castle
|
||||||
|
* @CreateDate : 2022/1/7 10:44
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@Entity
|
||||||
|
@Table(name = "ORE_DATA_SOURCE")
|
||||||
|
public class CoreDataSource extends BaseBean{
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_NAME"
|
||||||
|
)
|
||||||
|
@ApiParam("数据源名称")
|
||||||
|
private String sourceName;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_CODE"
|
||||||
|
)
|
||||||
|
@ApiParam("数据源编码")
|
||||||
|
private String sourceCode;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_STATUS"
|
||||||
|
)
|
||||||
|
@ApiParam(
|
||||||
|
value = "数据源状态",
|
||||||
|
name = "状态:可用,不可用 看枚举当中是否存在"
|
||||||
|
)
|
||||||
|
private Integer sourceStatus;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_TYPE"
|
||||||
|
)
|
||||||
|
@ApiParam(
|
||||||
|
value = "数据源类型",
|
||||||
|
name = "BlockFormEnumUtil.DATA_SOURCE_TYPE"
|
||||||
|
)
|
||||||
|
private Integer sourceType;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_HOST"
|
||||||
|
)
|
||||||
|
@ApiParam("数据源连接地址")
|
||||||
|
private String sourceHost;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_PORT"
|
||||||
|
)
|
||||||
|
@ApiParam("数据源端口")
|
||||||
|
private Integer sourcePort;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_DATA_BASE_NAME"
|
||||||
|
)
|
||||||
|
@ApiParam("数据库名称")
|
||||||
|
private String sourceDataBaseName;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_USER_NAME"
|
||||||
|
)
|
||||||
|
@ApiParam("数据库用户名称")
|
||||||
|
private String sourceUserName;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_PASSWORD"
|
||||||
|
)
|
||||||
|
@ApiParam("数据库用户密码")
|
||||||
|
private String sourcePassword;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_DESCRIPTION"
|
||||||
|
)
|
||||||
|
@ApiParam("数据源描述")
|
||||||
|
private String sourceDescription;
|
||||||
|
|
||||||
|
public CoreDataSource(Long id, String sourceName) {
|
||||||
|
this.id = id;
|
||||||
|
this.sourceCode = sourceName;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.platform.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import cn.estsh.i3plus.pojo.platform.bean.CoreDataSource;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : Castle
|
||||||
|
* @CreateDate : 2022/1/7 13:18
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface CoreDataSourceRepository extends BaseRepository<CoreDataSource,Long> {
|
||||||
|
}
|
@ -0,0 +1,89 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.bean.datasource;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import org.hibernate.annotations.DynamicInsert;
|
||||||
|
import org.hibernate.annotations.DynamicUpdate;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : Castle
|
||||||
|
* @CreateDate : 2021/12/17 10:26
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@Entity
|
||||||
|
@Table(name = "wms_cus_datasource")
|
||||||
|
public class CusDatasource extends BaseBean {
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_NAME"
|
||||||
|
)
|
||||||
|
@ApiParam("数据源名称")
|
||||||
|
private String sourceName;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_CODE"
|
||||||
|
)
|
||||||
|
@ApiParam("数据源编码")
|
||||||
|
private String sourceCode;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_STATUS"
|
||||||
|
)
|
||||||
|
@ApiParam(
|
||||||
|
value = "数据源状态",
|
||||||
|
name = "状态:可用,不可用 看枚举当中是否存在"
|
||||||
|
)
|
||||||
|
private Integer sourceStatus;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_TYPE"
|
||||||
|
)
|
||||||
|
@ApiParam(
|
||||||
|
value = "数据源类型",
|
||||||
|
name = "BlockFormEnumUtil.DATA_SOURCE_TYPE"
|
||||||
|
)
|
||||||
|
private Integer sourceType;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_HOST"
|
||||||
|
)
|
||||||
|
@ApiParam("数据源连接地址")
|
||||||
|
private String sourceHost;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_PORT"
|
||||||
|
)
|
||||||
|
@ApiParam("数据源端口")
|
||||||
|
private Integer sourcePort;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_DATA_BASE_NAME"
|
||||||
|
)
|
||||||
|
@ApiParam("数据库名称")
|
||||||
|
private String sourceDataBaseName;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_USER_NAME"
|
||||||
|
)
|
||||||
|
@ApiParam("数据库用户名称")
|
||||||
|
private String sourceUserName;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_PASSWORD"
|
||||||
|
)
|
||||||
|
@ApiParam("数据库用户密码")
|
||||||
|
private String sourcePassword;
|
||||||
|
@Column(
|
||||||
|
name = "SOURCE_DESCRIPTION"
|
||||||
|
)
|
||||||
|
@ApiParam("数据源描述")
|
||||||
|
private String sourceDescription;
|
||||||
|
|
||||||
|
public CusDatasource(Long id, String sourceName) {
|
||||||
|
this.id = id;
|
||||||
|
this.sourceName = sourceName;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import cn.estsh.i3plus.pojo.wms.bean.datasource.CusDatasource;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : Castle
|
||||||
|
* @CreateDate : 2021/12/21 13:33
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface CusDatasourceRepository extends BaseRepository<CusDatasource, Long> {
|
||||||
|
}
|
Loading…
Reference in New Issue