Merge remote-tracking branch 'remotes/origin/dev' into test
commit
ec3febfaa9
@ -0,0 +1,52 @@
|
||||
package cn.estsh.i3plus.pojo.aps.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
|
||||
import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
|
||||
import cn.estsh.i3plus.pojo.aps.holders.EBaseOrder;
|
||||
import cn.estsh.i3plus.pojo.aps.holders.EMaterialDeliveryPromise;
|
||||
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 javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description :物料交期承诺
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2020-06-11
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Entity
|
||||
@Table(name = "APS_MATERIAL_DELIVERY_PROMISE")
|
||||
@Api("物料")
|
||||
public class MaterialDeliveryPromise extends BaseBean {
|
||||
@Column(name="QTY")
|
||||
@ApiParam(value ="到货数量")
|
||||
private Double count;
|
||||
|
||||
@Column(name="DATE_TIME")
|
||||
@ApiParam(value ="到货日期")
|
||||
private Date dateTime;
|
||||
|
||||
@Column(name="MATERIAL_ID")
|
||||
@ApiParam(value ="物料")
|
||||
@FieldAnnotation(relation = "Material", notEmpty = true)
|
||||
private Long materialId;
|
||||
|
||||
public Material getMaterial() {
|
||||
return BeanRelation.get(this, EMaterialDeliveryPromise.Material);
|
||||
}
|
||||
|
||||
public void setMaterial(Material material) {
|
||||
this.materialId = material != null ? material.getId() : 0l;
|
||||
BeanRelation.set(this, EMaterialDeliveryPromise.Material, material);
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package cn.estsh.i3plus.pojo.aps.holders;
|
||||
|
||||
public enum EMaterialDeliveryPromise {
|
||||
Material,
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package cn.estsh.i3plus.pojo.aps.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description : 物料交期分析表
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2020-06-11
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
public class MaterialDeliveryAnalyze {
|
||||
|
||||
private String orderCode;
|
||||
|
||||
private String orderName;
|
||||
|
||||
private String materialCode;
|
||||
|
||||
private String materialName;
|
||||
|
||||
private String labelName;
|
||||
|
||||
private String labelColor;
|
||||
|
||||
private Date requireDate;
|
||||
|
||||
private Date arrivalDate;
|
||||
|
||||
private Double requireCount;
|
||||
|
||||
private Double count;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package cn.estsh.i3plus.pojo.aps.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.aps.bean.MaterialDeliveryPromise;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface MaterialDeliveryPromiseRepository extends CrudRepository<MaterialDeliveryPromise, Long> {
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Class name="MaterialDeliveryPromise">
|
||||
<Relation field="Material" name="Material" type="MULTI_TO_ONE">
|
||||
</Relation>
|
||||
</Class>
|
@ -0,0 +1,54 @@
|
||||
package cn.estsh.i3plus.pojo.platform.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
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.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 20-6-4 下午3:38
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="SYS_USER_PASSWORD")
|
||||
@Api(value="账号密码")
|
||||
public class SysUserPassword extends BaseBean {
|
||||
private static final long serialVersionUID = 4536854582252378921L;
|
||||
|
||||
@Column(name="USER_ID")
|
||||
@ApiParam(value ="人员ID" , example = "-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long userId;
|
||||
|
||||
@Column(name="USER_PASSWORD")
|
||||
@ApiParam(value ="用户密码")
|
||||
private String userPassword;
|
||||
|
||||
@Column(name="USER_LOGIN_LAST_DATE_TIME")
|
||||
@ApiParam(value ="账号最后登录时间")
|
||||
private String userLoginLastDateTime;
|
||||
|
||||
public SysUserPassword() {
|
||||
}
|
||||
|
||||
public SysUserPassword(Long userId, String userPassword) {
|
||||
this.userId = userId;
|
||||
this.userPassword = userPassword;
|
||||
}
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
package cn.estsh.i3plus.pojo.platform.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.platform.platbean.SysLogTaskTime;
|
||||
|
||||
/**
|
||||
* @Description : 定时任务执行记录
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @Date : 2018-10-22 12:03:01.409
|
||||
* @Modify :
|
||||
**/
|
||||
public interface SysTaskTimeRecordingRepository extends BaseRepository<SysLogTaskTime, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.platform.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.platform.bean.SysUserPassword;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 20-6-4 下午3:46
|
||||
* @Modify:
|
||||
**/
|
||||
public interface SysUserPasswordRepository extends BaseRepository<SysUserPassword, Long> {
|
||||
}
|
@ -1,122 +1,122 @@
|
||||
package cn.estsh.i3plus.pojo.report.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
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.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : Adair Peng
|
||||
* @CreateDate : 2019-01-18 11:32
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="BR_POJO_ATTR")
|
||||
@Api(value="对象属性",description = "对象属性")
|
||||
public class BrPojoAttr extends BaseBean {
|
||||
|
||||
private static final long serialVersionUID = -9025365832485707583L;
|
||||
@Column(name="TEMPLATE_ID")
|
||||
@ApiParam(value ="模板编号" ,example = "-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long templateId;
|
||||
|
||||
@Column(name="SERVER_ID")
|
||||
@ApiParam(value ="服务ID",example = "-1")
|
||||
private Integer serverId;
|
||||
|
||||
@Column(name="POJO_ID")
|
||||
@ApiParam(value ="模板对象ID" ,example = "-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long pojoId;
|
||||
|
||||
@Column(name="POJO_NAME")
|
||||
@ApiParam(value ="对象名称")
|
||||
private String pojoName;
|
||||
|
||||
@Column(name="PACKAGE_NAME_RDD")
|
||||
@ApiParam(value ="主服务对象包名称" , access ="服务对象包名称")
|
||||
private String packageNameRdd;
|
||||
|
||||
@Column(name="POJO_TABLE_NAME_ALIAS")
|
||||
@ApiParam(value ="对象别名")
|
||||
private String pojoTableNameAlias;
|
||||
|
||||
@Column(name="ATTR_COLUMN_NAME")
|
||||
@ApiParam(value ="属性别名")
|
||||
private String attrColumnName;
|
||||
|
||||
@Column(name="ATTR_COLUMN_NAME_ALIAS")
|
||||
@ApiParam(value ="属性别名")
|
||||
private String attrColumnNameAlias;
|
||||
|
||||
@Column(name="PARENT_ID")
|
||||
@ApiParam(value ="上级ID",example = "-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long parentId;
|
||||
|
||||
@Column(name="ATTR_TYPE")
|
||||
@ApiParam(value ="属性类型",example = "-1")
|
||||
private Integer attrType;
|
||||
|
||||
@Column(name="ATTR_REF_TYPE")
|
||||
@ApiParam(value ="关系类型",example = "-1")
|
||||
private Integer attrRefType;
|
||||
|
||||
@Column(name="DATA_TYPE")
|
||||
@ApiParam(value ="数据类型",example = "-1")
|
||||
private Integer dataType;
|
||||
|
||||
@Column(name="CHART_ATTR_NAME")
|
||||
@ApiParam(value ="图标属性名称")
|
||||
private String chartAttrName;
|
||||
|
||||
@Column(name="AGGREGATION_TYPE")
|
||||
@ApiParam(value ="聚合类型",example = "-1")
|
||||
private Integer aggregationType;
|
||||
|
||||
@Column(name="AGGREGATION_ID")
|
||||
@ApiParam(value ="聚合类型",example = "-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long aggregationId;
|
||||
|
||||
@Column(name="ATTR_SORT")
|
||||
@ApiParam(value ="字段排序")
|
||||
private Integer attrSort;
|
||||
|
||||
@Column(name="ATTR_DATA_SORT")
|
||||
@ApiParam(value ="字段排序")
|
||||
private Integer attrDataSort;
|
||||
|
||||
@Column(name="ATTR_STYLE")
|
||||
@ApiParam(value ="字段样式")
|
||||
private Integer attrStyle;
|
||||
|
||||
@Column(name="ATTR_STYLE_RDD")
|
||||
@ApiParam(value ="字段样式")
|
||||
private String attrStyleRdd;
|
||||
|
||||
@Column(name="ATTR_DEFAULT_VALUE")
|
||||
@ApiParam(value ="属性默认值")
|
||||
private String attrDefaultValue;
|
||||
|
||||
@Column(name="ATTR_SHOW")
|
||||
@ApiParam(value ="属性是否显示",example = "-1")
|
||||
private Integer attrShow;
|
||||
|
||||
}
|
||||
//package cn.estsh.i3plus.pojo.report.bean;
|
||||
//
|
||||
//import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
//import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
//import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
//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.Column;
|
||||
//import javax.persistence.Entity;
|
||||
//import javax.persistence.Table;
|
||||
//
|
||||
///**
|
||||
// * @Description :
|
||||
// * @Reference :
|
||||
// * @Author : Adair Peng
|
||||
// * @CreateDate : 2019-01-18 11:32
|
||||
// * @Modify:
|
||||
// **/
|
||||
//@Data
|
||||
//@Entity
|
||||
//@DynamicInsert
|
||||
//@DynamicUpdate
|
||||
//@EqualsAndHashCode(callSuper = true)
|
||||
//@Table(name="BR_POJO_ATTR")
|
||||
//@Api(value="对象属性",description = "对象属性")
|
||||
//public class BrPojoAttr extends BaseBean {
|
||||
//
|
||||
// private static final long serialVersionUID = -9025365832485707583L;
|
||||
// @Column(name="TEMPLATE_ID")
|
||||
// @ApiParam(value ="模板编号" ,example = "-1")
|
||||
// @JsonSerialize(using = ToStringSerializer.class)
|
||||
// private Long templateId;
|
||||
//
|
||||
// @Column(name="SERVER_ID")
|
||||
// @ApiParam(value ="服务ID",example = "-1")
|
||||
// private Integer serverId;
|
||||
//
|
||||
// @Column(name="POJO_ID")
|
||||
// @ApiParam(value ="模板对象ID" ,example = "-1")
|
||||
// @JsonSerialize(using = ToStringSerializer.class)
|
||||
// private Long pojoId;
|
||||
//
|
||||
// @Column(name="POJO_NAME")
|
||||
// @ApiParam(value ="对象名称")
|
||||
// private String pojoName;
|
||||
//
|
||||
// @Column(name="PACKAGE_NAME_RDD")
|
||||
// @ApiParam(value ="主服务对象包名称" , access ="服务对象包名称")
|
||||
// private String packageNameRdd;
|
||||
//
|
||||
// @Column(name="POJO_TABLE_NAME_ALIAS")
|
||||
// @ApiParam(value ="对象别名")
|
||||
// private String pojoTableNameAlias;
|
||||
//
|
||||
// @Column(name="ATTR_COLUMN_NAME")
|
||||
// @ApiParam(value ="属性别名")
|
||||
// private String attrColumnName;
|
||||
//
|
||||
// @Column(name="ATTR_COLUMN_NAME_ALIAS")
|
||||
// @ApiParam(value ="属性别名")
|
||||
// private String attrColumnNameAlias;
|
||||
//
|
||||
// @Column(name="PARENT_ID")
|
||||
// @ApiParam(value ="上级ID",example = "-1")
|
||||
// @JsonSerialize(using = ToStringSerializer.class)
|
||||
// private Long parentId;
|
||||
//
|
||||
// @Column(name="ATTR_TYPE")
|
||||
// @ApiParam(value ="属性类型",example = "-1")
|
||||
// private Integer attrType;
|
||||
//
|
||||
// @Column(name="ATTR_REF_TYPE")
|
||||
// @ApiParam(value ="关系类型",example = "-1")
|
||||
// private Integer attrRefType;
|
||||
//
|
||||
// @Column(name="DATA_TYPE")
|
||||
// @ApiParam(value ="数据类型",example = "-1")
|
||||
// private Integer dataType;
|
||||
//
|
||||
// @Column(name="CHART_ATTR_NAME")
|
||||
// @ApiParam(value ="图标属性名称")
|
||||
// private String chartAttrName;
|
||||
//
|
||||
// @Column(name="AGGREGATION_TYPE")
|
||||
// @ApiParam(value ="聚合类型",example = "-1")
|
||||
// private Integer aggregationType;
|
||||
//
|
||||
// @Column(name="AGGREGATION_ID")
|
||||
// @ApiParam(value ="聚合类型",example = "-1")
|
||||
// @JsonSerialize(using = ToStringSerializer.class)
|
||||
// private Long aggregationId;
|
||||
//
|
||||
// @Column(name="ATTR_SORT")
|
||||
// @ApiParam(value ="字段排序")
|
||||
// private Integer attrSort;
|
||||
//
|
||||
// @Column(name="ATTR_DATA_SORT")
|
||||
// @ApiParam(value ="字段排序")
|
||||
// private Integer attrDataSort;
|
||||
//
|
||||
// @Column(name="ATTR_STYLE")
|
||||
// @ApiParam(value ="字段样式")
|
||||
// private Integer attrStyle;
|
||||
//
|
||||
// @Column(name="ATTR_STYLE_RDD")
|
||||
// @ApiParam(value ="字段样式")
|
||||
// private String attrStyleRdd;
|
||||
//
|
||||
// @Column(name="ATTR_DEFAULT_VALUE")
|
||||
// @ApiParam(value ="属性默认值")
|
||||
// private String attrDefaultValue;
|
||||
//
|
||||
// @Column(name="ATTR_SHOW")
|
||||
// @ApiParam(value ="属性是否显示",example = "-1")
|
||||
// private Integer attrShow;
|
||||
//
|
||||
//}
|
||||
|
@ -1,15 +1,15 @@
|
||||
package cn.estsh.i3plus.pojo.report.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.report.bean.BrMenu;
|
||||
import cn.estsh.i3plus.pojo.report.bean.BrPojoAttr;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : Adair Peng
|
||||
* @CreateDate : 2019-01-18 15:03
|
||||
* @Modify:
|
||||
**/
|
||||
public interface BrPojoAttrRepository extends BaseRepository<BrPojoAttr,Long> {
|
||||
}
|
||||
//package cn.estsh.i3plus.pojo.report.repository;
|
||||
//
|
||||
//import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
//import cn.estsh.i3plus.pojo.report.bean.BrMenu;
|
||||
//import cn.estsh.i3plus.pojo.report.bean.BrPojoAttr;
|
||||
//
|
||||
///**
|
||||
// * @Description :
|
||||
// * @Reference :
|
||||
// * @Author : Adair Peng
|
||||
// * @CreateDate : 2019-01-18 15:03
|
||||
// * @Modify:
|
||||
// **/
|
||||
//public interface BrPojoAttrRepository extends BaseRepository<BrPojoAttr,Long> {
|
||||
//}
|
||||
|
@ -0,0 +1,64 @@
|
||||
package cn.estsh.i3plus.pojo.wms.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.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @Description : COI对照表
|
||||
* @Reference :
|
||||
* @Author : jimmy.zeng
|
||||
* @CreateDate : 2020-06-09 16:59
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name="WMS_COI")
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Api(value="COI对照表",description = "COI对照表")
|
||||
public class WmsCoi extends BaseBean {
|
||||
|
||||
private static final long serialVersionUID = -8298385889006722335L;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam(value = "物料编号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam(value = "物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "PART_VOL")
|
||||
@ApiParam(value = "体积")
|
||||
private Double partVol;
|
||||
|
||||
@Column(name = "TRUNROUND_RATE")
|
||||
@ApiParam(value = "周转率")
|
||||
private Double trunroundRate;
|
||||
|
||||
@Column(name = "COI_VALUE")
|
||||
@ApiParam(value = "COI值")
|
||||
private Double coiValue;
|
||||
|
||||
@Column(name = "LAST_UPDATE_DATE")
|
||||
@ApiParam(value = "末次更新日期")
|
||||
private String lastUpdateDate;
|
||||
|
||||
@Column(name = "FREQUENCY")
|
||||
@ApiParam(value = "频次")
|
||||
private Double frequency;
|
||||
|
||||
@Column(name = "LOCATE_NO")
|
||||
@ApiParam(value = "库位")
|
||||
private String locateNo;
|
||||
}
|
@ -0,0 +1,126 @@
|
||||
package cn.estsh.i3plus.pojo.wms.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
|
||||
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.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
/**
|
||||
* @Description : 策略表
|
||||
* @Reference :
|
||||
* @Author : jimmy.zeng
|
||||
* @CreateDate : 2020-06-09 16:45
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name="WMS_TRACTICS")
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Api(value="策略表",description = "策略表")
|
||||
public class WmsTractics extends BaseBean {
|
||||
|
||||
private static final long serialVersionUID = -8203200560604263871L;
|
||||
@Column(name="TRACTICS_CODE")
|
||||
@ApiParam(value ="策略代码")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
|
||||
private String tracticsCode;
|
||||
|
||||
@Column(name="TRACTICS_NAME")
|
||||
@ApiParam(value ="策略名称")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
|
||||
private String tracticsName;
|
||||
|
||||
@Column(name="TRACTICS_DESC")
|
||||
@ApiParam(value ="策略描述")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
|
||||
private String tracticsDesc;
|
||||
|
||||
@Column(name="TRACTICS_GRADE")
|
||||
@ApiParam(value ="策略等级")
|
||||
// @AnnoOutputColumn(refClass = WmsEnumUtil.TRACTICS_GRADE.class, refForeignKey = "value", value = "description")
|
||||
// @DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isMultiple = 1, dataSrc = "TRACTICS_GRADE")
|
||||
private Integer tracticsGrade;
|
||||
|
||||
@Column(name="TRACTICS_GROUP")
|
||||
@ApiParam(value ="策略组")
|
||||
// @DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isMultiple = 1, dataSrc = "TRACTICS_GROUP")
|
||||
@AnnoOutputColumn(refClass = WmsEnumUtil.TRACTICS_GROUP.class, refForeignKey = "value", value = "description")
|
||||
private Integer tracticsGroup;
|
||||
|
||||
@Column(name="TRACTICS_ITEM")
|
||||
@ApiParam(value ="策略项")
|
||||
// @DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.NUMBER)
|
||||
private Integer tracticsItem;
|
||||
|
||||
@Column(name="TRACTICS_PART_GROUP")
|
||||
@ApiParam(value ="策略适用物料组")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.LIST,isRequire = 2, getValWay = CommonEnumUtil.DYNAMIC_FIELD_GET_WAY.OBJ,
|
||||
dataSrc = "cn.estsh.i3plus.pojo.wms.bean.WmsPartGroup",
|
||||
searchColumnName = "partGroupNo,partGroupName", listColumnName = "partGroupNo,partGroupName", explicitColumnName = "partGroupNo")
|
||||
private String tracticsPartGroup;
|
||||
|
||||
@Column(name="TRACTICS_ZONE")
|
||||
@ApiParam(value ="策略适用存储区")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.LIST, isRequire = 2, getValWay = CommonEnumUtil.DYNAMIC_FIELD_GET_WAY.OBJ,
|
||||
dataSrc ="cn.estsh.i3plus.pojo.wms.bean.WmsZones",
|
||||
searchColumnName = "zoneNo,zoneName",listColumnName = "zoneNo,zoneName", explicitColumnName = "zoneNo")
|
||||
private String tracticsZone;
|
||||
|
||||
@Column(name="TRACTICS_PARAM")
|
||||
@ApiParam(value ="参数")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
|
||||
private String tracticsParam;
|
||||
|
||||
@Column(name="TRACTICS_START_TIME")
|
||||
@ApiParam(value ="策略生效日期")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.DATETIME)
|
||||
private String tracticsStartTime;
|
||||
|
||||
@Column(name="TRACTICS_END_TIME")
|
||||
@ApiParam(value ="策略失效日期")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.DATETIME)
|
||||
private String tracticsEndTime;
|
||||
|
||||
@Column(name="LEV1_STRATEGY")
|
||||
@ApiParam(value ="1级策略上架")
|
||||
@AnnoOutputColumn(refClass = WmsEnumUtil.INSTOCK_TRACTICS_ITEM_ONE.class, refForeignKey = "value", value = "description")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isMultiple = 1, dataSrc = "INSTOCK_TRACTICS_ITEM_ONE")
|
||||
private Integer lev1Strategy;
|
||||
|
||||
// @Column(name="LEV1_STRATEGY")
|
||||
@Transient
|
||||
@ApiParam(value ="1级策略拣货")
|
||||
@AnnoOutputColumn(refClass = WmsEnumUtil.PICKING_TRACTICS_ITEM_ONE.class, refForeignKey = "value", value = "description")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isMultiple = 1, dataSrc = "PICKING_TRACTICS_ITEM_ONE")
|
||||
private Integer lev1StrategyPicking;
|
||||
|
||||
@Column(name="LEV2_STRATEGY")
|
||||
@ApiParam(value ="2级策略")
|
||||
@AnnoOutputColumn(refClass = WmsEnumUtil.INSTOCK_TRACTICS_ITEM_TWO.class, refForeignKey = "value", value = "description")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isMultiple = 1, dataSrc = "INSTOCK_TRACTICS_ITEM_TWO")
|
||||
private Integer lev2Strategy;
|
||||
|
||||
@Column(name="LEV3_STRATEGY")
|
||||
@ApiParam(value ="3级策略")
|
||||
@AnnoOutputColumn(refClass = WmsEnumUtil.INSTOCK_TRACTICS_ITEM_THREE.class, refForeignKey = "value", value = "description")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isMultiple = 1, dataSrc = "INSTOCK_TRACTICS_ITEM_THREE")
|
||||
private Integer lev3Strategy;
|
||||
|
||||
// public String getIev1StrategyPicking (String lev1StrategyPicking) {
|
||||
// return this.lev1Strategy = lev1StrategyPicking;
|
||||
// }
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
package cn.estsh.i3plus.pojo.wms.modelbean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsTractics;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : jimmy.zeng
|
||||
* @CreateDate : 2020-06-15 13:21
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Api("策略返回model")
|
||||
public class WmsStrategyModel {
|
||||
|
||||
@ApiParam(value = "物料编号")
|
||||
private String partNo;
|
||||
|
||||
@ApiParam(value = "数量")
|
||||
private Double qty;
|
||||
|
||||
@ApiParam(value = "工厂代码")
|
||||
private String organizeCode;
|
||||
|
||||
@ApiParam("策略对象")
|
||||
public WmsTractics wmsTractics;
|
||||
|
||||
@ApiParam("List结果集")
|
||||
public List<Object> resultList;
|
||||
|
||||
@ApiParam("List结果集")
|
||||
public List<Object> strategyList;
|
||||
|
||||
@ApiParam("返回错误信息")
|
||||
public String errorMsg;
|
||||
}
|
@ -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.WmsCoi;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description : COI对照表
|
||||
* @Reference :
|
||||
* @Author : jimmy.zeng
|
||||
* @CreateDate : 2020-06-10 10:24
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface WmsCoiRepository extends BaseRepository<WmsCoi,Long> {
|
||||
}
|
@ -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.WmsTractics;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description : 策略表
|
||||
* @Reference :
|
||||
* @Author : jimmy.zeng
|
||||
* @CreateDate : 2020-06-10 10:24
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface WmsTracticsRepository extends BaseRepository<WmsTractics,Long>{
|
||||
}
|
Loading…
Reference in New Issue