add import template

yun-zuoyi
钮海涛 4 years ago
parent 3b8a5482ad
commit 0b354ef001

@ -0,0 +1,41 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2019-09-23
* @Modify:
**/
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "APS_IMPORT_FIELD")
@Api("数据导入字段配置")
public class ImportField extends BaseAPS {
@Column(name="DEFAULT_VALUE")
@ApiParam("默认值")
private String defaultValue;
/**
* 1-2-
*/
@Column(name="IS_REQUIRE")
@ApiParam(value = "是否必填", example = "0")
private Integer isRequire;
@Column(name="MAX_LENGTH")
@ApiParam(value = "最大长度", example = "0")
private Integer maxLength;
}

@ -32,12 +32,12 @@ public class MaterialSetTime extends BaseAPS {
private String resCode;
@Column(name="PREV_MATERIAL")
@ApiParam(value ="前物料")
@ApiParam(value ="前物料编码")
@FieldAnnotation(notEmpty = true)
private String prevMaterial;
@Column(name="POST_MATERIAL")
@ApiParam(value ="后物料")
@ApiParam(value ="后物料编码")
@FieldAnnotation(notEmpty = true)
private String postMaterial;

@ -0,0 +1,9 @@
package cn.estsh.i3plus.pojo.aps.repository;
import cn.estsh.i3plus.pojo.aps.bean.ImportField;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ImportFieldRepository extends CrudRepository<ImportField, Long> {
}
Loading…
Cancel
Save