Merge branch 'ext-dev' of http://git.estsh.com/i3-IMPP/i3plus-pojo into pext

yun-zuoyi
andly.pan 4 years ago
commit 4697112340

@ -56,4 +56,8 @@ public class HeuristicOptimize extends BaseRule {
@Column(name="MAX_WAITING_LIMIT")
@ApiParam(value ="最大等待时间限制")
private Boolean maxWaitingLimit;
@Column(name="MAX_WAITING_ADJUST")
@ApiParam(value ="最大等待时间调整")
private Boolean maxWaitingAdjust;
}

@ -18,6 +18,7 @@ import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;
/**
@ -127,6 +128,8 @@ public class Resource extends BaseAPS {
@Transient
private boolean hasConflict;
private transient Date rightLimit;
public WorkShop getWorkShop() { return BeanRelation.get(this, EResource.WorkShop); }
public void setWorkShop(WorkShop workShop) {

@ -152,6 +152,11 @@ public class Work extends BaseAPS {
@FieldAnnotation(property = false)
private Long operationId;
@Column(name="ORIGIN_OPERATION_ID")
@ApiParam(value ="原始工序")
@FieldAnnotation(property = false)
private Long originOperationId;
@Column(name="PARENT_WORK_ID")
@ApiParam(value ="父工作")
@FieldAnnotation(property = false)
@ -200,6 +205,15 @@ public class Work extends BaseAPS {
BeanRelation.set(this, EWork.Operation, oper);
}
public Operation getOriginOperation() {
return BeanRelation.get(this, EWork.OriginOperation);
}
public void setOriginOperation(Operation oper) {
this.originOperationId = oper != null ? oper.getId() : 0l;
BeanRelation.set(this, EWork.OriginOperation, oper);
}
public ParentWork getParentWork() {
return BeanRelation.get(this, EWork.ParentWork);
}

@ -9,6 +9,7 @@ public enum EWork {
PrevRelations, // 前关联
PostRelations, // 后关联
Operation, // 工序
OriginOperation, // 原始工序
PlanFeedback, // 工作计划反馈
MainPlan, // 关联的为主资源的计划
WorkPlans, // 关联的工作计划

@ -12,6 +12,8 @@
</Relation>
<Relation field="Operation" name="Operation" type="MULTI_TO_ONE" owner="false">
</Relation>
<Relation field="OriginOperation" name="Operation" type="MULTI_TO_ONE" owner="false">
</Relation>
<Relation field="MainPlan" name="WorkPlan" reverse="MainWork" type="ONE_TO_ONE">
</Relation>
<Relation field="WorkPlans" name="WorkPlan" reverse="Work" type="ONE_TO_MULTI" owner="true">

@ -334,7 +334,7 @@ public class ApsEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RESOURCE_CLASS {
LIMITLESS("LIMITLESS", "无限能力"),
SINGLE("SINGLE", "单能力"),
SINGLE("SINGLE", "单资源"),
BATCH("BATCH", "炉资源");
private String value;
@ -770,7 +770,7 @@ public class ApsEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WORK_TYPE {
// 工作不参与排程
// 工作不参与排程,比如销售订单的工作
FICTITIOUS("FICTITIOUS", "虚拟工作"),
// 动态虚拟工作为不计算生产时间。
DYNAMIC_FICTITIOUS("DYNAMIC_FICTITIOUS", "动态虚拟工作"),

@ -58,4 +58,6 @@ public class SparePartsImportModel {
@ApiParam("用量")
private Integer qty;
@ApiParam("生成次数")
private Integer time;
}

@ -0,0 +1,163 @@
package cn.estsh.i3plus.pojo.model.platform;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.bean.BaseConstWords;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import cn.estsh.i3plus.pojo.platform.bean.SysDictionary;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Column;
/**
* @author ns
* @create 2021/7/21 0021 10:20
*/
@Data
@ApiModel
public class UserInfoImportModel extends BaseBean {
private static final long serialVersionUID = -6597413958814715617L;
@ApiModelProperty(value = "姓名", access = "名称")
@AnnoOutputColumn()
private String infoName;
@ApiModelProperty(value = "工号")
@AnnoOutputColumn()
private String infoEmpNo;
@ApiModelProperty(value = "员工类型", access = "实习、试用期、正式")
@AnnoOutputColumn(required = false, refClass = SysDictionary.class, value = "name", refForeignKey = BaseConstWords.DICTIONARY_EMPLOYEE_TYPE)
private Integer infoEmployeeType;
@ApiModelProperty(value = "员工等级")
@AnnoOutputColumn(required = false, refClass = SysDictionary.class, value = "name", refForeignKey = BaseConstWords.DICTIONARY_EMPLOYEE_GRADE)
private Integer infoGrade;
@ApiModelProperty(value = "性别1.男2.女)", example = "1", access = "性别1.男2.女)")
@AnnoOutputColumn(required = false, refClass = SysDictionary.class, value = "name", refForeignKey = BaseConstWords.DICTIONARY_SEX)
private Integer infoSex;
@ApiModelProperty(value = "婚姻", example = "1", access = "性别1.未知2.已婚,3未婚")
@AnnoOutputColumn(required = false, refClass = SysDictionary.class, value = "name", refForeignKey = BaseConstWords.DICTIONARY_MARRIAGE)
private Integer infoMarriage;
@ApiModelProperty(value = "证件类型")
@AnnoOutputColumn(required = false, refClass = SysDictionary.class, value = "name", refForeignKey = BaseConstWords.DICTIONARY_CERTIFICATE_TYPE)
private Integer infoCardType;
@ApiModelProperty(value = "证件编号")
private String infoCardNumber;
@ApiModelProperty(value = "毕业专业")
private String infoSchoolProfession;
@ApiModelProperty(value = "毕业院校")
private String infoSchool;
@ApiModelProperty(value = "学历")
@AnnoOutputColumn(required = false, refClass = SysDictionary.class, value = "name", refForeignKey = BaseConstWords.DICTIONARY_EDUCATION)
private Integer infoSchoolEducation;
@ApiModelProperty(value = "毕业时间")
private String infoSchoolLeaveDate;
@ApiModelProperty(value = "籍贯")
private String infoBirthplace;
@ApiModelProperty(value = "种族")
@AnnoOutputColumn(required = false, refClass = SysDictionary.class, value = "name", refForeignKey = BaseConstWords.DICTIONARY_NATIONALITY)
private Integer infoRace;
@ApiModelProperty(value = "紧急联系人")
private String userEmergencyContact;
@ApiModelProperty(value = "紧急联系人-电话")
private String userEmergencyPhone;
@ApiModelProperty(value = "紧急联系人")
private String infoEmergencyContact;
@ApiModelProperty(value = "紧急联系人-电话")
private String infoEmergencyPhone;
@ApiModelProperty(value = "入职日期", access = "默认当前时间")
private String infoJoinDate;
@ApiModelProperty(value = "离职日期", access = "默认当前时间")
private String infoResignationDate;
@ApiModelProperty(value = "政治面貌")
@AnnoOutputColumn(required = false, refClass = SysDictionary.class, value = "name", refForeignKey = BaseConstWords.DICTIONARY_POLITICAL_STATUS)
private Integer infoPoliticalStatus;
@ApiModelProperty(value = "出生日期")
private String infoBornDate;
@ApiModelProperty(value = "部门名称", access = "部门名称")
private String infoDepartmentNameRdds;
@ApiModelProperty(value = "岗位", access = "岗位")
private String positionNameRdds;
@ApiModelProperty(value = "主部门", access = "主部门")
private String infoDepartmentNameRdd;
@ApiModelProperty(value = "主岗位", access = "主岗位")
private String positionNameRdd;
@ApiModelProperty(value = "家庭地址")
private String infoFamilyAddress;
@ApiModelProperty(value = "兴趣爱好")
private String infoHobby;
/********************************** 账号相关 ********************************/
@ApiModelProperty(value = "登陆名称", access = "登陆名称")
@AnnoOutputColumn
private String userLoginName;
@ApiModelProperty(value = "用户语言")
private String languageCode;
@ApiParam(value = "登陆密码")
@AnnoOutputColumn
private String userLoginPassword;
@ApiModelProperty(value = "角色名称", access = "角色名称")
@AnnoOutputColumn
private String roleNameRdds;
@ApiModelProperty(value = "手机号", access = "手机号")
private String userPhone;
@ApiModelProperty(value = "操作部门", access = "操作部门部门")
@AnnoOutputColumn
private String userDepartmentNameRdds;
@ApiModelProperty(value = "主操作部门", access = "主操作部门")
@AnnoOutputColumn
private String userDepartmentNameRdd;
@ApiModelProperty(value = "邮箱", access = "邮箱")
private String userEmail;
@ApiModelProperty(value = "微信号")
private String userWeChatNo;
@ApiModelProperty(value = "组织名称", access = "组织名称")
private String organizeNameRdd;
}

@ -56,6 +56,9 @@ public class WmsActionResponseBean<Obj> implements Serializable {
@ApiParam("可选项")
public List<WmsOptionModel> options;
@ApiParam("任务编号")
public String taskNo;
public List<WmsOptionModel> getOptions() {
if (options == null) {
options = new ArrayList<>();

@ -826,4 +826,10 @@ public class WmsDocMovementDetails extends BaseBean {
this.createUser = createUser;
}
public WmsDocMovementDetails (String erpSrcNo,String partNo,Double outQty) {
this.erpSrcNo = erpSrcNo;
this.partNo = partNo;
this.outQty = outQty;
}
}

@ -249,6 +249,10 @@ public class WmsPOMasterDetails extends BaseBean {
private Double sumRcQty;
@Transient
@ApiParam("退货数量")
private Double outQty;
@Transient
@ApiParam("单据集合")
private List<String> orderNoLst;

@ -309,6 +309,11 @@ public class WmsPart extends BaseBean {
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double weight ;
@Column(name = "PRODUCT_PLACE")
@ApiParam(value = "产地", example = "0")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isRequire = 2)
private String productPlace ;
public int getIqcVal() {
return this.iqc == null ? 0 : this.iqc.intValue();

@ -149,6 +149,21 @@ public class WmsStockSn extends BaseBean {
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
private String packageNo;
@Column(name = "CARTON_WEIGHT")
@ApiParam("箱重量")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double cartonWeight;
@Column(name = "PACKAGE_WEIGHT")
@ApiParam("托盘重量")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double packageWeight;
@Column(name = "PRODUCT_PLACE")
@ApiParam(value = "产地", example = "0")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isRequire = 2)
private String productPlace;
@Column(name = "UNIT")
@ApiParam(value = "单位")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
@ -633,6 +648,15 @@ public class WmsStockSn extends BaseBean {
return inputNCQty == null ? 0L : this.inputNCQty.doubleValue();
}
public Double getCartonWeightVal() {
return this.cartonWeight == null ? 0 : this.cartonWeight;
}
public Double getPackageWeightVal() {
return this.packageWeight == null ? 0 : this.packageWeight;
}
public WmsStockSn(Long snCount, Double sumPartQty, String locateNo) {
this.snCount = snCount;
this.sumPartQty = sumPartQty;
@ -1033,11 +1057,22 @@ public class WmsStockSn extends BaseBean {
this.vendorNo = vendorNo;
}
public WmsStockSn(String partNo, Double qty) {
this.partNo = partNo;
this.qty = qty;
}
public WmsStockSn(WmsStockSn wmsStockSn, String modifyDatetime ,String modifyUser) {
this.sn = wmsStockSn.getSn();
this.partNo = wmsStockSn.getPartNo();
this.partNameRdd = wmsStockSn.getPartNameRdd();
this.qty = wmsStockSn.getQty();
this.vendorNo = wmsStockSn.getVendorNo();
this.lotNo = wmsStockSn.getLotNo();
this.modifyDatetime = modifyDatetime;
this.modifyUser = modifyUser;
this.leftCode = wmsStockSn.getLeftCode();
this.dateCode = wmsStockSn.getDateCode();
this.fixLotNo = wmsStockSn.getFixLotNo();
}
}

@ -71,4 +71,10 @@ public class WmsTmsShipDto extends BaseDto implements Serializable {
@ApiParam("结束时间")
private String createDateTimeEnd;
@ApiParam("客户号")
private String custNo;
@ApiParam("客户名称")
private String custName;
}

Loading…
Cancel
Save