MES model修改

yun-zuoyi
yiming.gu 6 years ago
parent 5fc11292ea
commit 26fc821d1a

@ -33,17 +33,21 @@ public class MesPartScheduleBom extends BaseBean {
@Column(name="ITEM_PART_NO")
@ApiParam("关联物料号")
private Integer itemPartNo;
private String itemPartNo;
@Column(name="ITEM_QTY")
@ApiParam("用量")
private String itemQty;
private Double itemQty;
@Column(name="SCHEDULE_TYPE")
@ApiParam("排程类型")
private Double scheduleType;
private Integer scheduleType;
public double getItemQtyVal() {
return this.itemQty == null ? 0.0d : this.itemQty;
}
public double getScheduletTypeVal() {
return this.scheduleType == null ? 0.0d : this.scheduleType;
return this.scheduleType == null ? 0 : this.scheduleType;
}
}

@ -0,0 +1,46 @@
package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.mes.bean.MesArea;
import io.swagger.annotations.ApiParam;
import javax.persistence.Transient;
import java.util.List;
public class SysOrganizeModel {
@Transient
@ApiParam(value ="父节点")
private Long parentId;
@Transient
@ApiParam(value ="名称")
private String name;
@Transient
@ApiParam(value ="子集列表")
private List<MesArea> childTreeList;
public List<MesArea> getChildTreeList() {
return childTreeList;
}
public void setChildTreeList(List<MesArea> childTreeList) {
this.childTreeList = childTreeList;
}
public Long getParentId() {
return parentId;
}
public void setParentId(Long parentId) {
this.parentId = parentId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}

@ -632,4 +632,86 @@ public class MesHqlPack {
return packBean;
}
/**
* MES
* @param partCategory
* @return
*/
public static DdlPackBean getMesPartCategory(MesPartCategory partCategory, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(partCategory, organizeCode);
if (StringUtils.isNotEmpty(partCategory.getCategoryCode())){
DdlPreparedPack.getStringEqualPack(partCategory.getCategoryCode(), "categoryCode", packBean);
}
if (StringUtils.isNotEmpty(partCategory.getCategoryName())){
DdlPreparedPack.getStringLikerPack(partCategory.getCategoryName(), "categoryName", packBean);
}
return packBean;
}
/**
* MES
* @param packSpec
* @return
*/
public static DdlPackBean getMesPackSpec(MesPackSpec packSpec, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(packSpec, organizeCode);
if (StringUtils.isNotEmpty(packSpec.getSpecCode())){
DdlPreparedPack.getStringEqualPack(packSpec.getSpecCode(), "specCode", packBean);
}
if (StringUtils.isNotEmpty(packSpec.getSpecName())){
DdlPreparedPack.getStringLikerPack(packSpec.getSpecName(), "specName", packBean);
}
return packBean;
}
/**
* MES
* @param produceCategory
* @return
*/
public static DdlPackBean getMesProduceCategory(MesProduceCategory produceCategory, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(produceCategory, organizeCode);
if (StringUtils.isNotEmpty(produceCategory.getProduceCategoryCode())){
DdlPreparedPack.getStringEqualPack(produceCategory.getProduceCategoryCode(), "produceCategoryCode", packBean);
}
if (StringUtils.isNotEmpty(produceCategory.getProduceCategoryName())){
DdlPreparedPack.getStringLikerPack(produceCategory.getProduceCategoryName(), "produceCategoryName", packBean);
}
return packBean;
}
/**
* MES
* @param kpsnRule
* @return
*/
public static DdlPackBean getMesKpsnRule(MesKpsnRule kpsnRule, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(kpsnRule, organizeCode);
if (StringUtils.isNotEmpty(kpsnRule.getPartNo())){
DdlPreparedPack.getStringEqualPack(kpsnRule.getPartNo(), "partNo", packBean);
}
return packBean;
}
/**
* MES
* @param partScheduleBom
* @return
*/
public static DdlPackBean getMesPartScheduleBom(MesPartScheduleBom partScheduleBom, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(partScheduleBom, organizeCode);
if (StringUtils.isNotEmpty(partScheduleBom.getPartNo())){
DdlPreparedPack.getStringEqualPack(partScheduleBom.getPartNo(), "partNo", packBean);
}
if (StringUtils.isNotEmpty(partScheduleBom.getItemPartNo())){
DdlPreparedPack.getStringLikerPack(partScheduleBom.getItemPartNo(), "itemPartNo", packBean);
}
return packBean;
}
}

Loading…
Cancel
Save