|
|
@ -1,9 +1,12 @@
|
|
|
|
package cn.estsh.i3plus.pojo.aps.bean;
|
|
|
|
package cn.estsh.i3plus.pojo.aps.bean;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
|
|
|
|
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.annotation.MainKey;
|
|
|
|
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
|
|
|
|
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
|
|
|
|
import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
|
|
|
|
import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
|
|
|
|
import cn.estsh.i3plus.pojo.aps.holders.EImportDetail;
|
|
|
|
import cn.estsh.i3plus.pojo.aps.holders.EImportDetail;
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.validator.InsertGroup;
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.validator.UpdateGroup;
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.ApsEnumUtil;
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.ApsEnumUtil;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonBackReference;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonBackReference;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
@ -28,23 +31,28 @@ import java.util.List;
|
|
|
|
@Entity
|
|
|
|
@Entity
|
|
|
|
@Table(name = "APS_IMPORT_DETAIL")
|
|
|
|
@Table(name = "APS_IMPORT_DETAIL")
|
|
|
|
@Api("数据导入明细")
|
|
|
|
@Api("数据导入明细")
|
|
|
|
|
|
|
|
@MainKey(groups = {InsertGroup.class, UpdateGroup.class})
|
|
|
|
public class ImportDetail extends BaseAPS {
|
|
|
|
public class ImportDetail extends BaseAPS {
|
|
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1264030397500660450L;
|
|
|
|
private static final long serialVersionUID = 1264030397500660450L;
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="group_Name")
|
|
|
|
@Column(name="NAME")
|
|
|
|
@ApiParam(value ="组名称")
|
|
|
|
@ApiParam(value ="名称")
|
|
|
|
|
|
|
|
@FieldAnnotation(notEmpty = true, mainkey = true)
|
|
|
|
|
|
|
|
private String name;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="GROUP_NAME")
|
|
|
|
|
|
|
|
@ApiParam(value ="分组名称")
|
|
|
|
@FieldAnnotation(notEmpty = true)
|
|
|
|
@FieldAnnotation(notEmpty = true)
|
|
|
|
private String groupName;
|
|
|
|
private String groupName;
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="LINK_TYPE")
|
|
|
|
@Column(name="LINK_TYPE")
|
|
|
|
@ApiParam(value ="链接类型")
|
|
|
|
@ApiParam(value ="链接类型")
|
|
|
|
@FieldAnnotation(defaultValue = "EXCEL")
|
|
|
|
@FieldAnnotation(defaultValue = "EXCEL", notEmpty = true)
|
|
|
|
private ApsEnumUtil.DATA_LINK_TYPE linkType;
|
|
|
|
private ApsEnumUtil.DATA_LINK_TYPE linkType;
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="PATH")
|
|
|
|
@Column(name="PATH")
|
|
|
|
@ApiParam(value ="IP/文件路径")
|
|
|
|
@ApiParam(value ="IP/文件路径")
|
|
|
|
@FieldAnnotation(notEmpty = true)
|
|
|
|
|
|
|
|
private String path;
|
|
|
|
private String path;
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="OUT_NAME")
|
|
|
|
@Column(name="OUT_NAME")
|
|
|
@ -73,7 +81,7 @@ public class ImportDetail extends BaseAPS {
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="IMPORT_TYPE")
|
|
|
|
@Column(name="IMPORT_TYPE")
|
|
|
|
@ApiParam(value ="导入类型")
|
|
|
|
@ApiParam(value ="导入类型")
|
|
|
|
@FieldAnnotation(defaultValue = "REPLACE")
|
|
|
|
@FieldAnnotation(defaultValue = "DIFF")
|
|
|
|
private ApsEnumUtil.IMPORT_DETAIL_TYPE importType;
|
|
|
|
private ApsEnumUtil.IMPORT_DETAIL_TYPE importType;
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="SKIP_ROWS")
|
|
|
|
@Column(name="SKIP_ROWS")
|
|
|
@ -87,8 +95,8 @@ public class ImportDetail extends BaseAPS {
|
|
|
|
private Integer orderNumber;
|
|
|
|
private Integer orderNumber;
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="PROJECT_ID")
|
|
|
|
@Column(name="PROJECT_ID")
|
|
|
|
@ApiParam(value ="导入项目ID")
|
|
|
|
@ApiParam(value ="导入项目")
|
|
|
|
@FieldAnnotation(relation = "Project")
|
|
|
|
@FieldAnnotation(relation = "Project", property = false)
|
|
|
|
private Long projectId;
|
|
|
|
private Long projectId;
|
|
|
|
|
|
|
|
|
|
|
|
public ImportProject getProject() {
|
|
|
|
public ImportProject getProject() {
|
|
|
|