Merge branches 'master' and 'test' of http://git.estsh.com/i3-IMPP/i3plus-pojo
commit
208410340e
@ -0,0 +1,56 @@
|
||||
package cn.estsh.i3plus.pojo.aps.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
|
||||
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
|
||||
import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
|
||||
import cn.estsh.i3plus.pojo.aps.enums.RULE_TYPE;
|
||||
import cn.estsh.i3plus.pojo.aps.holders.ERuleDetail;
|
||||
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-11-05
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "APS_RULE_DETAIL")
|
||||
@Api("规则明细")
|
||||
public class RuleDetail extends BaseAPS {
|
||||
|
||||
@Column(name="TYPE")
|
||||
@ApiParam(value ="规则类型")
|
||||
private RULE_TYPE type;
|
||||
|
||||
@Column(name="RULE_GROUP_ID")
|
||||
@ApiParam(value ="规则组合ID")
|
||||
@FieldAnnotation(property = false)
|
||||
private Long ruleGroupId;
|
||||
|
||||
@Column(name="RULE_ID")
|
||||
@ApiParam(value ="规则配置ID")
|
||||
@FieldAnnotation(property = false)
|
||||
private Long ruleId;
|
||||
|
||||
public RuleGroup getRuleGroup() { return BeanRelation.get(this, ERuleDetail.RuleGroup); }
|
||||
|
||||
public void setRuleGroup(RuleGroup ruleGroup) {
|
||||
this.ruleGroupId = ruleGroup != null ? ruleGroup.getId() : 0;
|
||||
BeanRelation.set(this, ERuleDetail.RuleGroup, ruleGroup);
|
||||
}
|
||||
|
||||
public BaseRule getRule() { return BeanRelation.get(this, ERuleDetail.Rule); }
|
||||
|
||||
public void setRule(BaseRule rule) {
|
||||
this.ruleId = rule != null ? rule.getId() : 0;
|
||||
BeanRelation.set(this, ERuleDetail.Rule, rule);
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package cn.estsh.i3plus.pojo.aps.converter;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonParser;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.DeserializationContext;
|
||||
import com.fasterxml.jackson.databind.JsonDeserializer;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
public class CustomDateDeserializer extends JsonDeserializer<Date> {
|
||||
public static SimpleDateFormat DATETIME_FORMATOR = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
@Override
|
||||
public Date deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
|
||||
try {
|
||||
return DATETIME_FORMATOR.parse(jsonParser.getText());
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package cn.estsh.i3plus.pojo.aps.converter;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonGenerator;
|
||||
import com.fasterxml.jackson.databind.JsonSerializer;
|
||||
import com.fasterxml.jackson.databind.SerializerProvider;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
public class CustomDateSerializer extends JsonSerializer<Date> {
|
||||
public static SimpleDateFormat DATETIME_FORMATOR = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
@Override
|
||||
public void serialize(Date date, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
|
||||
jsonGenerator.writeString(DATETIME_FORMATOR.format(date));
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package cn.estsh.i3plus.pojo.aps.enums;
|
||||
|
||||
public enum CALENDAR_WEEK {
|
||||
MONDAY(1), // 星期一
|
||||
TUESDAY(2), // 星期二
|
||||
WEDNESDAY(4), // 星期三
|
||||
THURSDAY(8), // 星期四
|
||||
FRIDAY(16), // 星期五
|
||||
SATURDAY(32), // 星期六
|
||||
SUNDAY(64); // 星期天
|
||||
|
||||
private int _value;
|
||||
|
||||
CALENDAR_WEEK(int value) {
|
||||
_value = value;
|
||||
}
|
||||
|
||||
public int value() {
|
||||
return this._value;
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package cn.estsh.i3plus.pojo.aps.enums;
|
||||
|
||||
public enum RULE_TYPE {
|
||||
CANCEL_PLAN,
|
||||
MAT_CALC,
|
||||
HEURISTIC,
|
||||
FIELD_SET
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package cn.estsh.i3plus.pojo.aps.holders;
|
||||
|
||||
public enum EBaseRule {
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package cn.estsh.i3plus.pojo.aps.holders;
|
||||
|
||||
public enum ERuleDetail {
|
||||
RuleGroup,
|
||||
Rule
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package cn.estsh.i3plus.pojo.aps.holders;
|
||||
|
||||
public enum ERuleGroup {
|
||||
Details
|
||||
}
|
@ -1,25 +1,23 @@
|
||||
package cn.estsh.i3plus.pojo.aps.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import cn.estsh.i3plus.pojo.aps.converter.CustomDateDeserializer;
|
||||
import cn.estsh.i3plus.pojo.aps.converter.CustomDateSerializer;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class GanttCalendarModel {
|
||||
@Data
|
||||
public static class Block {
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date beginTime;
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date endTime;
|
||||
private Boolean onDuty;
|
||||
}
|
||||
private Long resourceId;
|
||||
private List<Block> timeBlocks = new ArrayList<>();
|
||||
private Long parent;
|
||||
@JsonSerialize(using = CustomDateSerializer.class)
|
||||
@JsonDeserialize(using = CustomDateDeserializer.class)
|
||||
private Date start_date;
|
||||
@JsonSerialize(using = CustomDateSerializer.class)
|
||||
@JsonDeserialize(using = CustomDateDeserializer.class)
|
||||
private Date end_date;
|
||||
private String color;
|
||||
private Long id;
|
||||
private String text;
|
||||
}
|
||||
|
@ -0,0 +1,9 @@
|
||||
package cn.estsh.i3plus.pojo.aps.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.aps.bean.RuleDetail;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface RuleDetailRepository extends CrudRepository<RuleDetail, Long> {
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Class name="RuleDetail">
|
||||
<Relation field="Rule" name="BaseRule" type="MULTI_TO_ONE" owner="false">
|
||||
</Relation>
|
||||
</Class>
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Class name="RuleGroup">
|
||||
<Relation field="Details" name="RuleDetail" reverse="RuleGroup" type="ONE_TO_MULTI" owner="true">
|
||||
</Relation>
|
||||
</Class>
|
@ -0,0 +1,29 @@
|
||||
package cn.estsh.i3plus.pojo.model.wms;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 操作日志信息推送至队列后台处理
|
||||
*/
|
||||
@Data
|
||||
public class WmsLogInfoSendToMqModel implements Serializable {
|
||||
private static final long serialVersionUID = -5490167040159056107L;
|
||||
@ApiParam("处理类型")
|
||||
private int handleType;
|
||||
@ApiParam("日志对象DAO层")
|
||||
private String baseRepository;
|
||||
@ApiParam("日志对象(新增)")
|
||||
private BaseBean logBean;
|
||||
@ApiParam("查询条件名称(修改)")
|
||||
private String[] conditionNames;
|
||||
@ApiParam("查询条件值(修改)")
|
||||
private Object[] conditionValues;
|
||||
@ApiParam("更新条件名称(修改)")
|
||||
private String[] updateNames;
|
||||
@ApiParam("更新条件值(修改)")
|
||||
private Object[] updateValues;
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
package cn.estsh.i3plus.pojo.wms.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.ColumnDefault;
|
||||
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 : gcj
|
||||
* @CreateDate : 2019-11-07 16:06
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "WMS_CONTAINER_TYPE")
|
||||
@Api("容器类型")
|
||||
public class WmsContainerType extends BaseBean {
|
||||
private static final long serialVersionUID = 4849044986767609347L;
|
||||
@Column(name = "CT_CODE",unique = true)
|
||||
@ApiParam(value = "容器类型代码")
|
||||
private String ctCode;
|
||||
|
||||
@Column(name = "CT_NAME")
|
||||
@ApiParam(value = "容器类型名称")
|
||||
private String ctName;
|
||||
|
||||
@Column(name = "USE_LIMIT")
|
||||
@ApiParam(value = "使用期限")
|
||||
private Integer useLimit;
|
||||
|
||||
@Column(name = "IS_RECYCLE")
|
||||
@ApiParam(value = "是否回收")
|
||||
@AnnoOutputColumn(refClass = WmsEnumUtil.TRUE_OR_FALSE.class, refForeignKey = "value", value = "description")
|
||||
private Integer isRecycle;
|
||||
}
|
@ -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;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
/**
|
||||
* @Description :容器类型
|
||||
* @Reference :
|
||||
* @Author : 容器类型
|
||||
* @CreateDate : 2019-11-07 16:06
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "WMS_PACKAGE_SPEC")
|
||||
@Api("包装规格")
|
||||
public class WmsPackageSpec extends BaseBean {
|
||||
private static final long serialVersionUID = 4849044986767609445L;
|
||||
@Column(name = "SPEC_CODE",unique = true)
|
||||
@ApiParam(value = "包装规格代码")
|
||||
private String specCode;
|
||||
|
||||
@Column(name = "SPEC_NAME")
|
||||
@ApiParam(value = "包装规格名称")
|
||||
private String specName;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam(value = "包装数量")
|
||||
private Double qty;
|
||||
|
||||
@Column(name = "PARENT_SPEC")
|
||||
@ApiParam(value = "上级规格")
|
||||
private String parentSpec;
|
||||
|
||||
@Column(name = "SPEC_LEVEL")
|
||||
@ApiParam(value = "规格层级")
|
||||
private String specLevel;
|
||||
|
||||
@Column(name = "IS_MIXED")
|
||||
@ApiParam(value = "是否混包")
|
||||
private Integer isMixed;
|
||||
|
||||
|
||||
@Column(name = "POCKET_TYPE")
|
||||
@ApiParam(value = "默认容器类型")
|
||||
private String pocketType;
|
||||
|
||||
@ApiParam(value = "上级规格名称")
|
||||
@Transient
|
||||
private String parentName;
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package cn.estsh.i3plus.pojo.wms.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :容器类型
|
||||
* @Reference :
|
||||
* @Author : 容器类型
|
||||
* @CreateDate : 2019-11-07 16:06
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "WMS_PART_PACKAGE")
|
||||
@Api("物料包装关系")
|
||||
public class WmsPartPackage extends BaseBean {
|
||||
private static final long serialVersionUID = 4849044986767609345L;
|
||||
@Column(name = "PART_NO",unique = true)
|
||||
@ApiParam(value = "物料编码")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "SPEC_CODE")
|
||||
@ApiParam(value = "包装规格代码")
|
||||
private String specCode;
|
||||
|
||||
@Column(name = "SNP_QTY")
|
||||
@ApiParam(value = "单包装数量")
|
||||
private String snpQty;
|
||||
|
||||
@Column(name = "BOX_QTY")
|
||||
@ApiParam(value = "包装箱数")
|
||||
private String boxQty;
|
||||
|
||||
@Column(name = "IS_DEFAULT")
|
||||
@ApiParam(value = "是否默认包规")
|
||||
private String isDefault;
|
||||
|
||||
@Column(name = "IS_MIXED")
|
||||
@ApiParam(value = "是否混包")
|
||||
private String isMixed;
|
||||
|
||||
@Column(name = "IS_PRINT")
|
||||
@ApiParam(value = "是否打印包装清单")
|
||||
private String isPrint;
|
||||
|
||||
@Column(name = "TEMPLATE_NO")
|
||||
@ApiParam(value = "包装清单模板")
|
||||
private String templateNo;
|
||||
|
||||
@Column(name = "POCKET_TYPE")
|
||||
@ApiParam(value = "容器类型")
|
||||
private String pocketType;
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package cn.estsh.i3plus.pojo.wms.dto;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsPartPackage;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description :物料包装关系入参
|
||||
* @Reference :
|
||||
* @Author : gcj
|
||||
* @CreateDate : 2019-11-07 16:06
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Api("物料包装关系入参")
|
||||
public class PartPackagDto{
|
||||
|
||||
@ApiParam(value = "物料编码")
|
||||
private String partNo;
|
||||
@ApiParam(value = "工厂代码")
|
||||
private List<WmsPartPackage> partPackages;
|
||||
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
package cn.estsh.i3plus.pojo.wms.modelbean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
|
||||
/**
|
||||
* @Description : 静态盘点输出model
|
||||
* @Reference :
|
||||
* @Author : qianhuasheng
|
||||
* @CreateDate : 2019-10-31 20:04
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@Api("静态盘点查询输出model")
|
||||
public class WmsStaticCsModel extends BaseBean {
|
||||
public WmsStaticCsModel(String staticStr,String orderNo, String locateNo, String sn, double qty ) {
|
||||
this.orderNo = orderNo;
|
||||
this.locateNo = locateNo;
|
||||
this.sn = sn;
|
||||
this.qty = qty;
|
||||
this.staticStr = staticStr;
|
||||
}
|
||||
|
||||
@ApiParam(value = "订单号")
|
||||
private String orderNo;
|
||||
@ApiParam(value = "库存号")
|
||||
private String locateNo;
|
||||
@ApiParam(value = "条码")
|
||||
private String sn;
|
||||
@ApiParam(value = "数量")
|
||||
private double qty;
|
||||
@ApiParam(value = "状态")
|
||||
private String staticStr;
|
||||
|
||||
public WmsStaticCsModel() {
|
||||
|
||||
}
|
||||
}
|
@ -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.WmsContainerType;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :容器类型Repository的方法接口
|
||||
* @Reference :
|
||||
* @Author : gcj
|
||||
* @CreateDate : 2019-11-08 10:19
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface WmsContainerTypeRepository extends BaseRepository<WmsContainerType, Long> {
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package cn.estsh.i3plus.pojo.wms.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsContainerType;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsPackageSpec;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :包装规格Repository的方法接口
|
||||
* @Reference :
|
||||
* @Author : gcj
|
||||
* @CreateDate : 2019-11-08 10:19
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface WmsPackageSpecRepository extends BaseRepository<WmsPackageSpec, Long> {
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package cn.estsh.i3plus.pojo.wms.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsPackageSpec;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsPartPackage;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :包装关系Repository的方法接口
|
||||
* @Reference :
|
||||
* @Author : gcj
|
||||
* @CreateDate : 2019-11-08 10:19
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface WmsPartPackageRepository extends BaseRepository<WmsPartPackage, Long> {
|
||||
}
|
Loading…
Reference in New Issue