add integration to aps
parent
33233ba80c
commit
153238d31a
@ -0,0 +1,52 @@
|
||||
package cn.estsh.i3plus.pojo.aps.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.aps.enums.DATA_LINK_TYPE;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @Description :数据集成数据连接信息
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2019-09-23
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "APS_DATA_LINK")
|
||||
@Api("数据集成数据连接信息")
|
||||
public class DataLink extends BaseAPS {
|
||||
@Column(name="NAME")
|
||||
@ApiParam(value ="编码")
|
||||
private String name;
|
||||
|
||||
@Column(name="TYPE")
|
||||
@ApiParam(value ="链接类型")
|
||||
private DATA_LINK_TYPE type;
|
||||
|
||||
@Column(name="PATH")
|
||||
@ApiParam(value ="IP/文件路径")
|
||||
private String path;
|
||||
|
||||
@Column(name="PORT")
|
||||
@ApiParam(value ="端口")
|
||||
private Integer port;
|
||||
|
||||
@Column(name="DB_NAME")
|
||||
@ApiParam(value ="数据库名")
|
||||
private String dbName;
|
||||
|
||||
@Column(name="USER_NAME")
|
||||
@ApiParam(value ="用户名")
|
||||
private String userName;
|
||||
|
||||
@Column(name="PASSWORD")
|
||||
@ApiParam(value ="密码")
|
||||
private String password;
|
||||
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
package cn.estsh.i3plus.pojo.aps.bean;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @Description :数据导出明细
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2019-09-23
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "APS_EXPORT_DETAIL")
|
||||
@Api("数据导出明细")
|
||||
public class ExportDetail extends BaseAPS {
|
||||
@Column(name="FILTER")
|
||||
@ApiParam(value ="筛选")
|
||||
private String filter;
|
||||
|
||||
@Column(name="SORT_BY")
|
||||
@ApiParam(value ="排序")
|
||||
private String sortBy;
|
||||
|
||||
@Column(name="OUT_NAME")
|
||||
@ApiParam(value ="外部表名")
|
||||
private String outName;
|
||||
|
||||
@Column(name="IN_NAME")
|
||||
@ApiParam(value ="内部表名")
|
||||
private String inName;
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package cn.estsh.i3plus.pojo.aps.bean;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @Description :数据导出明细集合
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2019-09-23
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "APS_EXPORT_PROJECT")
|
||||
@Api("数据导出明细集合")
|
||||
public class ExportProject extends BaseAPS {
|
||||
@Column(name="NAME")
|
||||
@ApiParam(value ="标识名")
|
||||
private String name;
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
package cn.estsh.i3plus.pojo.aps.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.aps.enums.IMPORT_DETAIL_TYPE;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @Description :数据导入明细
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2019-09-23
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "APS_IMPORT_DETAIL")
|
||||
@Api("数据导入明细")
|
||||
public class ImportDetail extends BaseAPS {
|
||||
@Column(name="TYPE")
|
||||
@ApiParam(value ="导入类型")
|
||||
private IMPORT_DETAIL_TYPE type;
|
||||
|
||||
@Column(name="OUT_NAME")
|
||||
@ApiParam(value ="外部表名")
|
||||
private String outName;
|
||||
|
||||
@Column(name="IN_NAME")
|
||||
@ApiParam(value ="内部表名")
|
||||
private String inName;
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package cn.estsh.i3plus.pojo.aps.bean;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @Description :数据导入明细集合
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2019-09-23
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "APS_IMPORT_PROJECT")
|
||||
@Api("数据导入明细集合")
|
||||
public class ImportProject extends BaseAPS {
|
||||
@Column(name="NAME")
|
||||
@ApiParam(value ="标识名")
|
||||
private String name;
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package cn.estsh.i3plus.pojo.aps.enums;
|
||||
|
||||
public enum DATA_LINK_TYPE {
|
||||
CSV,
|
||||
MYSQL,
|
||||
ORACLE,
|
||||
SQLSERVER
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package cn.estsh.i3plus.pojo.aps.enums;
|
||||
|
||||
public enum IMPORT_DETAIL_TYPE {
|
||||
REPLACE,
|
||||
DIFF
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package cn.estsh.i3plus.pojo.aps.holders;
|
||||
|
||||
public enum EExportProject {
|
||||
Link,
|
||||
Details
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package cn.estsh.i3plus.pojo.aps.holders;
|
||||
|
||||
public enum EImportProject {
|
||||
Link,
|
||||
Details
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package cn.estsh.i3plus.pojo.aps.model;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class APSPager extends Pager {
|
||||
private String filter;
|
||||
private String sort;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package cn.estsh.i3plus.pojo.aps.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.aps.bean.DataLink;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface DataLinkRepository extends CrudRepository<DataLink, Long> {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package cn.estsh.i3plus.pojo.aps.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.aps.bean.ExportDetail;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface ExportDetailRepository extends CrudRepository<ExportDetail, Long> {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package cn.estsh.i3plus.pojo.aps.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.aps.bean.ExportProject;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface ExportProjectRepository extends CrudRepository<ExportProject, Long> {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package cn.estsh.i3plus.pojo.aps.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.aps.bean.ImportDetail;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface ImportDetailRepository extends CrudRepository<ImportDetail, Long> {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package cn.estsh.i3plus.pojo.aps.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.aps.bean.ImportProject;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface ImportProjectRepository extends CrudRepository<ImportProject, Long> {
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Class name="ExportProject">
|
||||
<Relation field="Link" name="DataLink" type="MULTI_TO_ONE">
|
||||
</Relation>
|
||||
<Relation field="Details" name="ExportDetail" type="ONE_TO_MULTI" owner="true">
|
||||
</Relation>
|
||||
</Class>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Class name="ImportProject">
|
||||
<Relation field="Link" name="DataLink" type="MULTI_TO_ONE">
|
||||
</Relation>
|
||||
<Relation field="Details" name="ImportDetail" type="ONE_TO_MULTI" owner="true">
|
||||
</Relation>
|
||||
</Class>
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Class name="Material">
|
||||
<Relation field="ProductRouting" name="ProductRouting" reverse="Material" type="ONE_TO_MULTI" owner="true">
|
||||
</Relation>
|
||||
<Relation field="ProductRouting" name="ProductRouting" reverse="Material" type="ONE_TO_MULTI" owner="true">
|
||||
</Relation>
|
||||
</Class>
|
Loading…
Reference in New Issue