Merge branch 'dev' into test

yun-zuoyi
crish 6 years ago
commit 4d3adf5daf

@ -0,0 +1,52 @@
package cn.estsh.i3plus.pojo.andon.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.AndonEnumUtil;
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 : ANDON_
* @Reference :
* @Author : crish.li
* @CreateDate : 2019-11-21 11:07
* @Modify:
**/
@Data
@Entity
@Table(name="ANDON_CELL_GROUP_CFG")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api("ANDON_工位分组配置")
public class AndonCellGroupCfg extends BaseBean {
@Column(name = "WORK_CENTER_CODE")
@ApiParam(value = "工作中心代码")
private String workCenterCode;
@Column(name = "WORK_CENTER_NAME")
@ApiParam(value = "工作中心名称")
private String workCenterName;
@Column(name = "CELL_GROUP")
@ApiParam(value = "工作单元组")
private String cellGroup;
@Column(name = "GROUP_CODE")
@ApiParam(value = "分组代码")
private String groupCode;
@Column(name = "GROUP_NAME")
@ApiParam(value = "分组名称")
private String groupName;
}

@ -0,0 +1,17 @@
package cn.estsh.i3plus.pojo.andon.repository;
import cn.estsh.i3plus.pojo.andon.bean.AndonAlarmCause;
import cn.estsh.i3plus.pojo.andon.bean.AndonCellGroupCfg;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import org.springframework.stereotype.Repository;
/**
* @Description : ANDON_
* @Reference :
* @Author : crish.li
* @CreateDate : 2019-11-21 11:07
* @Modify:
**/
@Repository
public interface IAndonCellGroupCfgRepository extends BaseRepository<AndonCellGroupCfg, Long> {
}

@ -23,6 +23,21 @@ public class AndonHqlPack {
/**
*
* @param andonCellGroupCfg
* @return
*/
public static DdlPackBean getAndonCellGroupCfg(AndonCellGroupCfg andonCellGroupCfg) {
DdlPackBean packBean = DdlPackBean.getDdlPackBean();
DdlPreparedPack.getStringEqualPack(andonCellGroupCfg.getOrganizeCode(), "organizeCode", packBean);
DdlPreparedPack.getStringEqualPack(andonCellGroupCfg.getWorkCenterCode(), "workCenterCode", packBean);
DdlPreparedPack.getStringEqualPack(andonCellGroupCfg.getCellGroup(), "cellGroup", packBean);
DdlPreparedPack.getStringEqualPack(andonCellGroupCfg.getGroupCode(), "groupCode", packBean);
DdlPreparedPack.getStringEqualPack(andonCellGroupCfg.getGroupName(), "groupName", packBean);
return packBean;
}
/**
*
* @param andonResponse
* @return
*/
@ -176,12 +191,12 @@ public class AndonHqlPack {
* @param andonManageQueue
* @return
*/
public static DdlPackBean getAndonQueuePack(AndonManageQueue andonManageQueue, String statusCode) {
public static DdlPackBean getAndonQueuePack(AndonManageQueue andonManageQueue, String[] statusCodeArray) {
DdlPackBean packBean = DdlPackBean.getDdlPackBean();
DdlPreparedPack.getStringEqualPack(andonManageQueue.getOrganizeCode(), "organizeCode", packBean);
DdlPreparedPack.getStringEqualPack(andonManageQueue.getWorkCenterCode(), "workCenterCode", packBean);
DdlPreparedPack.getStringEqualPack(andonManageQueue.getWorkCellCode(), "workCellCode", packBean);
DdlPreparedPack.getStringEqualPack(statusCode, "statusCode", packBean);
DdlPreparedPack.getInPackArray(statusCodeArray, "statusCode", packBean);
return packBean;
}
/**

@ -1,5 +1,6 @@
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.base.enumutil.ApsEnumUtil;
import io.swagger.annotations.Api;
@ -26,14 +27,17 @@ import javax.persistence.Table;
public class DataLink extends BaseAPS {
@Column(name="CODE")
@ApiParam(value ="编码")
@FieldAnnotation(notEmpty = true)
private String code;
@Column(name="TYPE")
@ApiParam(value ="链接类型")
@FieldAnnotation(defaultValue = "CSV")
private ApsEnumUtil.DATA_LINK_TYPE type;
@Column(name="PATH")
@ApiParam(value ="IP/文件路径")
@FieldAnnotation(notEmpty = true)
private String path;
@Column(name="PORT")

@ -40,7 +40,7 @@ public class OperInput extends BaseAPS {
private Long materialId;
@Column(name="INPUT_COUNT")
@ApiParam(value ="输入量")
@ApiParam(value ="单位输入量")
private Double inputCount;
@Column(name="YIELD")

@ -39,7 +39,7 @@ public class OperOutput extends BaseAPS {
private Long materialId;
@Column(name="OUTPUT_COUNT")
@ApiParam(value ="输出量")
@ApiParam(value ="单位输出量")
private Double outputCount;
@Column(name="YIELD")

@ -135,6 +135,10 @@ public class Work extends BaseAPS {
@FieldAnnotation(modify = false)
private String failedReason;
@Column(name="REMARK")
@ApiParam(value ="备注")
private String remark;
@Column(name="OPERATION_ID")
@ApiParam(value ="工序")
@FieldAnnotation(property = false)

@ -312,6 +312,10 @@ public class BeanRelation {
}
}
public static void setOne(BaseBean bean, Enum<?> holder, BaseBean relaBean) {
get(bean).get(holder).add(relaBean);
}
/**
*
*

@ -2,7 +2,7 @@
<Class name="WorkPlan">
<Relation field="WorkResource" name="WorkResource" type="ONE_TO_ONE" owner="false">
</Relation>
<Relation field="AssPlans" name="WorkPlan" reverse="MainPlan" type="ONE_TO_MULTI" owner="false">
<Relation field="AssPlans" name="WorkPlan" reverse="MainPlan" type="ONE_TO_MULTI" owner="true">
</Relation>
<Relation field="PrevPlan" name="WorkPlan" reverse="PostPlan" type="MULTI_TO_MULTI" owner="false">
</Relation>

@ -11,6 +11,51 @@ import org.apache.commons.lang3.StringUtils;
* @Modify:
**/
public class AndonEnumUtil {
/**
*
* 10-20-
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ANDON_CONFIG_GROUP {
BROAD_GROUP(10,"广播配置分组");
private int value;
private String description;
ANDON_CONFIG_GROUP(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
public static int descriptionOfValue(String val) {
int tmp = -1;
for (int i = 0; i < values().length; i++) {
if (StringUtils.equalsIgnoreCase(values()[i].description, val)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
*
*

@ -223,9 +223,7 @@ public class CommonEnumUtil {
EXCEPTION_DETAIL(3, "异常明细"),
EXCEPTION_SOLUTION(4, "解决方案"),
ENUM(5, "枚举"),
MODULE(10, "模块"),
METHOD(11, "功能"),
BUTTON(12, "按钮"),
MENU(10, "功能权限"),
WEB(13, "前端");
private int value;
@ -597,6 +595,15 @@ public class CommonEnumUtil {
return tmp;
}
public static METHOD_LEVEL get(int id){
for (int i = 0; i < values().length; i++) {
if (values()[i].value == id) {
return values()[i];
}
}
return null;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {

@ -642,7 +642,8 @@ public class WmsEnumUtil {
VDA_CS_SEARCH(420,"VDA_CS_SEARCH", "VDA盘点查询"),
KT_DEFINITE(430,"KT_DEFINITE", "KT合格"),
VDA_PACKAGE_MANAGE(440,"VDA_PACKAGE_MANAGE", "VDA编组管理"),
KT_PURCHASE_RC(450,"KT_PURCHASE_RC", "采购收货");
KT_PURCHASE_RC(450,"KT_PURCHASE_RC", "采购收货"),
KT_PACK_RC(460,"KT_PACK_RC", "坤泰包装收货");
private int value;

@ -46,4 +46,8 @@ public class MesWorkCell extends BaseBean {
@Column(name = "WORK_CELL_TYPE")
@ApiParam("工位类型")
private Integer workCellType;
@Column(name = "SEQ")
@ApiParam("序号")
private Integer seq;
}

@ -129,6 +129,15 @@ public class MesProduceSn extends BaseBean {
@ApiParam("返回信息")
private String resultMsg;
@Transient
@ApiParam("下线时间开始")
private String outWorkCenterTimeStart;
@Transient
@ApiParam("下线时间截止")
private String outWorkCenterTimeEnd;
public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty;
}
@ -178,6 +187,8 @@ public class MesProduceSn extends BaseBean {
", snType='" + snType + '\'' +
", tray='" + tray + '\'' +
", resultMsg='" + resultMsg + '\'' +
", outWorkCenterTimeStart='" + outWorkCenterTimeStart + '\'' +
", outWorkCenterTimeEnd='" + outWorkCenterTimeEnd + '\'' +
'}';
}
}

@ -51,6 +51,10 @@ public class MesWorkCell extends BaseBean {
@ApiParam("工位类型")
private Integer workCellType;
@Column(name = "SEQ")
@ApiParam("序号")
private Integer seq;
@Transient
@ApiParam(value = "子集列表")
private List<MesEquipment> childTreeList;

@ -0,0 +1,27 @@
package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.mes.bean.MesLabelTemplate;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.List;
/**
* @Description:
* @Reference:
* @Author: wangjie
* @CreateDate:2019-08-27-13:24
* @Modify:
**/
@Data
@Api("打印信息封装模板")
public class SnPrintDataModel {
@ApiParam("打印数据")
private List<SnPrintValueModel> snPrintValueModel;
@ApiParam("打印模板及参数")
private MesLabelTemplate labelTemplate;
}

@ -0,0 +1,27 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @Description:
* @Reference:
* @Author: wangjie
* @CreateDate:2019-08-27-13:24
* @Modify:
**/
@Data
@Api("打印信息模板")
public class SnPrintModel extends SnPrintValueModel {
@ApiParam("过程条码")
private SnPrintDataModel snPrintModel;
@ApiParam("产品条码")
private SnPrintDataModel prodPrintModel;
@ApiParam("包装条码")
private SnPrintDataModel packagePrintModel;
}

@ -1,26 +0,0 @@
package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.mes.bean.MesLabelTemplate;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @Description : /model
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-08-18 11:00
* @Modify:
**/
@Data
public class SnPrintTemplateModel implements Serializable {
@ApiParam("产品条码模板")
private MesLabelTemplate prodSnPrintTemplate;
@ApiParam("包装条码模板集合")
private List<MesLabelTemplate> packageSnPrintTemplateList;
}

@ -0,0 +1,72 @@
package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.mes.bean.MesProduceSn;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @Description:
* @Reference:
* @Author: wangjie
* @CreateDate:2019-08-27-13:24
* @Modify:
**/
@Data
@Api("打印信息模板")
public class SnPrintValueModel extends MesProduceSn {
@ApiParam("打印描述")
private String printDesc;
@ApiParam("条码")
private String barCode;
@ApiParam("物料号")
private String partNo;
@ApiParam("批次号")
private String batchNo;
@ApiParam("箱数量")
private String boxQty;
@ApiParam("订单号")
private String orderNo;
@ApiParam("生产日期")
private String productionTime;
@ApiParam("包装编码")
private String packageNo;
@ApiParam("包装规格")
private String packageSpec;
@ApiParam("供应商")
private String supplier;
@ApiParam("客户名称")
private String customerName;
@ApiParam("客户零件号")
private String customerPartNo;
@ApiParam("客户物料名称")
private String customerPartName;
@ApiParam("物料名称")
private String partNameRdd;
@ApiParam("单位")
private String unit;
@ApiParam("特殊批号")
private String fixLotNo;
@ApiParam("生产工单号")
private String workOrderNo;
@ApiParam("生产线代码")
private String workCenterCode;
}

@ -1860,10 +1860,6 @@ public class MesHqlPack {
if (mesProduceSn.getQcStatus() != null) {
DdlPreparedPack.getNumEqualPack(mesProduceSn.getQcStatus(), "qcStatus", packBean);
}
DdlPreparedPack.timeBuilder(
mesProduceSn.getCreateDateTimeStart(),
mesProduceSn.getCreateDateTimeEnd(),
"createDatetime", packBean, true);
return packBean;
}
@ -1927,4 +1923,73 @@ public class MesHqlPack {
return packBean;
}
/**
*
* @param mesProduceSn
* @return
*/
public static DdlPackBean getProdSnPrint(MesProduceSn mesProduceSn) {
DdlPackBean packBean = getMesAllData(mesProduceSn.getOrganizeCode());
if (!StringUtils.isEmpty(mesProduceSn.getSerialNumber())) {
DdlPreparedPack.getStringLikerPack(mesProduceSn.getSerialNumber(), "serialNumber", packBean);
}
if (!StringUtils.isEmpty(mesProduceSn.getProductSn())) {
DdlPreparedPack.getStringLikerPack(mesProduceSn.getProductSn(), "productSn", packBean);
}
if (!StringUtils.isEmpty(mesProduceSn.getPartNo())) {
DdlPreparedPack.getStringLikerPack(mesProduceSn.getPartNo(), "partNo", packBean);
}
if (!StringUtils.isEmpty(mesProduceSn.getSnStatus())) {
DdlPreparedPack.getNumEqualPack(mesProduceSn.getSnStatus(), "snStatus", packBean);
}
// 时间段查询
DdlPreparedPack.timeBuilder(
mesProduceSn.getCreateDateTimeStart(),
mesProduceSn.getCreateDateTimeEnd(),
"createDatetime", packBean, true);
DdlPreparedPack.timeBuilder(
mesProduceSn.getOutWorkCenterTimeStart(),
mesProduceSn.getOutWorkCenterTimeEnd(),
"outWorkCenterTime", packBean, true);
return packBean;
}
/**
*
* @param mesPackage
* @return
*/
public static DdlPackBean getPackageSnPrint(MesPackage mesPackage) {
DdlPackBean packBean = getMesAllData(mesPackage.getOrganizeCode());
if (!StringUtils.isEmpty(mesPackage.getPartNo())) {
DdlPreparedPack.getStringLikerPack(mesPackage.getPartNo(), "partNo", packBean);
}
if (!StringUtils.isEmpty(mesPackage.getPackLevel())) {
DdlPreparedPack.getNumEqualPack(mesPackage.getPackLevel(), "packLevel", packBean);
}
if (!StringUtils.isEmpty(mesPackage.getPackageNo())) {
DdlPreparedPack.getStringLikerPack(mesPackage.getPackageNo(), "packageNo", packBean);
}
if (!StringUtils.isEmpty(mesPackage.getWorkCenterCode())) {
DdlPreparedPack.getStringLikerPack(mesPackage.getWorkCenterCode(), "workCenterCode", packBean);
}
// 时间段查询
DdlPreparedPack.timeBuilder(
mesPackage.getCreateDateTimeStart(),
mesPackage.getCreateDateTimeEnd(),
"createDatetime", packBean, true);
return packBean;
}
}

@ -56,6 +56,8 @@ public class WmsMessageStyleModel implements Serializable {
this.odStatus = WmsEnumUtil.MASTER_ORDER_STATUS.RECEIPT.getValue();
} else if (actQty == transQty) {//处理完成
this.odStatus = WmsEnumUtil.MASTER_ORDER_STATUS.RECEIPT_FINISH.getValue();
} else if (transQty < actQty) {//处理中 处理数量可以大于需求数量
this.odStatus = WmsEnumUtil.MASTER_ORDER_STATUS.RECEIPT.getValue();
}
}
}

@ -50,8 +50,9 @@ public class SysMenu extends BaseBean {
* , 线.
*/
@Column(name="SOFT_TYPE")
@ApiParam(value ="产品类型", example = "0")
private Integer softTyp;
@ApiParam(value ="产品类型", example = "0",access = "softTyp DOC: http://doc.estsh.com/docs/i3plus_api/i3plus_api-impp")
@AnnoOutputColumn
private Integer softType;
@Column(name="MENU_TYPE")
@ApiParam(value ="功能类型" , example ="-1" ,access = "枚举1.模块2.菜单3.按钮")

@ -257,22 +257,15 @@ public class CoreHqlPack {
DdlPackBean result = DdlPackBean.getDdlPackBean(menu);
DdlPreparedPack.getInPackList(idList,"id",result);
DdlPreparedPack.getNumEqualPack(menu.getParentId(),"parentId",result);
DdlPreparedPack.getNumEqualPack(menu.getMenuType(),"menuType",result);
DdlPreparedPack.getNumEqualPack(menu.getMenuStatus(),"menuStatus",result);
DdlPreparedPack.getStringLikerPack(menu.getName(),"name",result);
DdlPreparedPack.getStringLikerPack(menu.getMenuCode(),"menuCode",result);
result.setOrderByStr(menu.orderBy());
return result;
}
public static DdlPackBean packDdlBeanSysMenu(SysMenu menu){
DdlPackBean result = DdlPackBean.getDdlPackBean(menu);
DdlPreparedPack.getNumEqualPack(menu.getMenuStatus(),"menuStatus",result);
result.setOrderByStr(menu.orderBy());
if(menu != null){
DdlPreparedPack.getNumEqualPack(menu.getParentId(),"parentId",result);
DdlPreparedPack.getNumEqualPack(menu.getMenuType(),"menuType",result);
DdlPreparedPack.getNumEqualPack(menu.getMenuStatus(),"menuStatus",result);
DdlPreparedPack.getStringLikerPack(menu.getName(),"name",result);
DdlPreparedPack.getStringLikerPack(menu.getMenuCode(),"menuCode",result);
result.setOrderByStr(menu.orderBy());
}
return result;
}

@ -0,0 +1,22 @@
package cn.estsh.i3plus.pojo.wms.dto;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* DTO
*/
@Data
public class WmsPartQtyDto {
@ApiParam(value = "物料名称")
private String partName;
@ApiParam(value = "物料编码")
private String partNO;
@ApiParam(value = "应收数量")
private String qty;
@ApiParam(value = "实收数量")
private String rcQty;
@ApiParam(value = "待收数量")
private String dueQty;
}

@ -2414,7 +2414,9 @@ public class WmsHqlPack {
DdlPreparedPack.getNumEqualPack(wmsRoutingRule.getRuleType(), "ruleType", result);
DdlPreparedPack.getStringEqualPack(wmsRoutingRule.getRoutingCode(), "routingCode", result);
if (StringUtils.isNotBlank(wmsRoutingRule.getOrganizeCode())) {
DdlPreparedPack.getStringEqualPack(wmsRoutingRule.getOrganizeCode(), "organizeCode", result);
}
DdlPreparedPack.getInPack(wmsRoutingRule.getIsValid(), "isValid", result);
DdlPreparedPack.getInPack(wmsRoutingRule.getIsDeleted(), "isDeleted", result);
getStringBuilderPack(wmsRoutingRule, result);

Loading…
Cancel
Save