yun-zuoyi
Wynne 4 years ago
commit bd3dcbac3a

@ -26,6 +26,7 @@ public class CommonEnumUtil {
WMS(3, 8200, 10, 102000000L, "i3wms", "仓库管理软件"), WMS(3, 8200, 10, 102000000L, "i3wms", "仓库管理软件"),
SWEB(7, 8800, 19, 108000000L, "i3sweb", "供应商服务"), SWEB(7, 8800, 19, 108000000L, "i3sweb", "供应商服务"),
QMS(5, 0, 0, 0, "i3qms", "质量管理软件"), QMS(5, 0, 0, 0, "i3qms", "质量管理软件"),
TMS(101, 8250, 24, 118000000L, "i3tms", "运输管理系统"),
/** /**
* Mes * Mes

@ -2775,7 +2775,8 @@ public class MesEnumUtil {
FIRST_CHECK(10, "FIRST_CHECK", "首检"), FIRST_CHECK(10, "FIRST_CHECK", "首检"),
ON_SITE_CHECK(20, "ON_SITE_CHECK", "巡检"), ON_SITE_CHECK(20, "ON_SITE_CHECK", "巡检"),
END_CHECK(30, "END_CHECK", "末检"), END_CHECK(30, "END_CHECK", "末检"),
RC_CHECK(40, "RC_CHECK", "发货检验"); RC_CHECK(40, "RC_CHECK", "发货检验"),
OUTSOURCE_CHECK(50, "OUTSOURCE_CHECK","工序外协检");
private int value; private int value;
private String code; private String code;

@ -1030,7 +1030,8 @@ public class MesPcnEnumUtil {
FIRST_CHECK(10, "首检"), FIRST_CHECK(10, "首检"),
ON_SITE_CHECK(20, "巡检"), ON_SITE_CHECK(20, "巡检"),
END_CHECK(30, "末检"), END_CHECK(30, "末检"),
RC_CHECK(40, "发货检验"); RC_CHECK(40, "发货检验"),
OUTSOURCE_CHECK(50, "工序外协检");
private int value; private int value;
private String description; private String description;
@ -6758,4 +6759,37 @@ public class MesPcnEnumUtil {
} }
} }
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum OPC_TYPE {
UA(10, "UA"),
DA(20, "DA");
private int value;
private String code;
OPC_TYPE(int value, String code) {
this.value = value;
this.code = code;
}
public static String valueOfCode(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].code;
}
}
return tmp;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
}
} }

@ -238,6 +238,11 @@ public class WmsEnumUtil {
} }
return tmp; return tmp;
} }
public static String valueOfDescription(int val) {
return valueOf(val);
}
} }
@ -9589,6 +9594,7 @@ public class WmsEnumUtil {
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SCRAP_TYPE { public enum SCRAP_TYPE {
NORMAL_SCRAP(0, "NORMAL", "生产报废"),
ISOLATED_SCRAP(10, "ISOLATED", "隔离报废"), ISOLATED_SCRAP(10, "ISOLATED", "隔离报废"),
AUTO_SCRAP(20, "AUTO_SCRAP", "自动报废"); AUTO_SCRAP(20, "AUTO_SCRAP", "自动报废");

@ -207,10 +207,10 @@ public class MesProduceSn extends BaseBean implements Serializable {
@ApiParam("包规数量") @ApiParam("包规数量")
private Double packageQty; private Double packageQty;
@Version // @Version
@Column(name = "LOCK_VERSION") // @Column(name = "LOCK_VERSION")
@ApiParam(value = "乐观锁", example = "1") // @ApiParam(value = "乐观锁", example = "1")
public Integer lockVersion; // public Integer lockVersion;
@Transient @Transient
@ApiParam("缺陷代码") @ApiParam("缺陷代码")

@ -5,9 +5,6 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Transient;
/** /**
* @Description: * @Description:
* @Reference: * @Reference:
@ -159,4 +156,8 @@ public class StepPrintSnModel extends MesProduceSn {
private String qcCode; private String qcCode;
@ApiParam("打印机名称") @ApiParam("打印机名称")
private String printerName; private String printerName;
@ApiParam("是否DB件")
private String isDb;
@ApiParam("图片url")
private String imageUrl;
} }

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

@ -0,0 +1,160 @@
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(value = "userImportTemplate")
public class UserInfoImportModel {
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, name = "员工类型", refClass = SysDictionary.class, value = "name", refForeignKey = BaseConstWords.DICTIONARY_EMPLOYEE_TYPE)
private Integer infoEmployeeType;
@ApiModelProperty(value = "员工等级")
@AnnoOutputColumn(required = false, name = "员工等级", refClass = SysDictionary.class, value = "name", refForeignKey = BaseConstWords.DICTIONARY_EMPLOYEE_GRADE)
private Integer infoGrade;
@ApiModelProperty(value = "性别", example = "1", access = "性别1.男2.女)")
@AnnoOutputColumn(required = false,name = "性别", refClass = SysDictionary.class, value = "name", refForeignKey = BaseConstWords.DICTIONARY_SEX)
private Integer infoSex;
@ApiModelProperty(value = "婚姻", example = "1", access = "性别1.未知2.已婚,3未婚")
@AnnoOutputColumn(required = false, name = "婚姻",refClass = SysDictionary.class, value = "name", refForeignKey = BaseConstWords.DICTIONARY_MARRIAGE)
private Integer infoMarriage;
@ApiModelProperty(value = "证件类型")
@AnnoOutputColumn(required = false, name = "证件类型", 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,name = "学历", 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,name = "种族", 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 = "入职日期")
private String infoJoinDate;
@ApiModelProperty(value = "离职日期")
private String infoResignationDate;
@ApiModelProperty(value = "政治面貌")
@AnnoOutputColumn(required = false, name = "政治面貌", refClass = SysDictionary.class, value = "name", refForeignKey = BaseConstWords.DICTIONARY_POLITICAL_STATUS)
private Integer infoPoliticalStatus;
@ApiModelProperty(value = "出生日期")
private String infoBornDate;
@ApiModelProperty(value = "部门", access = "部门")
@AnnoOutputColumn
private String infoDepartmentNameRdds;
@ApiModelProperty(value = "主部门", access = "主部门")
@AnnoOutputColumn
private String infoDepartmentNameRdd;
@ApiModelProperty(value = "岗位", access = "岗位")
@AnnoOutputColumn
private String positionNameRdds;
@ApiModelProperty(value = "主岗位", access = "主岗位")
@AnnoOutputColumn
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;
}

@ -5,16 +5,10 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column; import javax.persistence.*;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Version;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -71,4 +65,7 @@ public class PtlControl extends BaseBean implements Serializable {
@ApiParam(value = "乐观锁", example = "1") @ApiParam(value = "乐观锁", example = "1")
public transient Integer lockVersion; public transient Integer lockVersion;
@Column(name = "BACKOFF")
@ApiParam("是否需要回调")
private Integer backoff;
} }

@ -424,6 +424,10 @@ public class WmsDocMovementDetails extends BaseBean {
@AnnoOutputColumn(refClass = WmsEnumUtil.SCRAP_TYPE.class, refForeignKey = "value", value = "description") @AnnoOutputColumn(refClass = WmsEnumUtil.SCRAP_TYPE.class, refForeignKey = "value", value = "description")
public Integer scrapType; public Integer scrapType;
@Transient
@ApiParam("报废类型名字")
public String scrapTypeName;
public String getRecommondLot() { public String getRecommondLot() {
@ -826,4 +830,10 @@ public class WmsDocMovementDetails extends BaseBean {
this.createUser = createUser; this.createUser = createUser;
} }
public WmsDocMovementDetails (String erpSrcNo,String partNo,Double outQty) {
this.erpSrcNo = erpSrcNo;
this.partNo = partNo;
this.outQty = outQty;
}
} }

@ -50,6 +50,7 @@ public class WmsPOMaster extends BaseBean {
*/ */
@Column(name = "PO_TYPE") @Column(name = "PO_TYPE")
@ApiParam("单据类型") @ApiParam("单据类型")
@AnnoOutputColumn(refClass = WmsEnumUtil.ORDER_TYPE.class, refForeignKey = "value", value = "description")
public String poType; public String poType;
/** /**
@ -89,6 +90,7 @@ public class WmsPOMaster extends BaseBean {
@Column(name = "IS_TASK") @Column(name = "IS_TASK")
@ApiParam(value = "是否生成任务", example = "1") @ApiParam(value = "是否生成任务", example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.IS_GENERAL_TASK.class, refForeignKey = "value", value = "description")
public Integer isTask; public Integer isTask;
@Column(name = "IS_PART") @Column(name = "IS_PART")
@ -121,6 +123,7 @@ public class WmsPOMaster extends BaseBean {
@Column(name = "IS_SN") @Column(name = "IS_SN")
@ApiParam(value = "是否生成条码", example = "1") @ApiParam(value = "是否生成条码", example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.IS_GENERAL_TASK.class, refForeignKey = "value", value = "description")
public Integer isSn; public Integer isSn;
@Column(name = "CONTAINER_NO") @Column(name = "CONTAINER_NO")
@ -177,6 +180,7 @@ public class WmsPOMaster extends BaseBean {
@Transient @Transient
@ApiParam("看板状态") @ApiParam("看板状态")
@AnnoOutputColumn(refClass = WmsEnumUtil.PO_QC_STATUS.class, refForeignKey = "value", value = "description")
private Integer boardStatus; private Integer boardStatus;
@Transient @Transient

@ -249,6 +249,10 @@ public class WmsPOMasterDetails extends BaseBean {
private Double sumRcQty; private Double sumRcQty;
@Transient @Transient
@ApiParam("退货数量")
private Double outQty;
@Transient
@ApiParam("单据集合") @ApiParam("单据集合")
private List<String> orderNoLst; private List<String> orderNoLst;
@ -330,7 +334,7 @@ public class WmsPOMasterDetails extends BaseBean {
} }
public WmsPOMasterDetails(String orderNo, String partNo, String partNameRdd, String planDate, String planTime, public WmsPOMasterDetails(String orderNo, String partNo, String partNameRdd, String planDate, String planTime,
Double snp, Long totalBoxes, Double qty) { Double snp, Long totalBoxes, Double qty,Double recQty,String modifyDatetime) {
this.orderNo = orderNo; this.orderNo = orderNo;
this.partNo = partNo; this.partNo = partNo;
this.partNameRdd = partNameRdd; this.partNameRdd = partNameRdd;
@ -339,6 +343,8 @@ public class WmsPOMasterDetails extends BaseBean {
this.snp = snp; this.snp = snp;
this.totalBoxes = totalBoxes.intValue(); this.totalBoxes = totalBoxes.intValue();
this.qty = qty; this.qty = qty;
this.rcQty = recQty;
this.modifyDatetime = modifyDatetime;
} }
public WmsPOMasterDetails(String orderNo, String erpSrcNo, Integer item,String partNo,String partNameRdd, Double qty, public WmsPOMasterDetails(String orderNo, String erpSrcNo, Integer item,String partNo,String partNameRdd, Double qty,

@ -1025,11 +1025,22 @@ public class WmsStockSn extends BaseBean {
this.vendorNo = vendorNo; this.vendorNo = vendorNo;
} }
public WmsStockSn(String partNo, Double qty) { public WmsStockSn(String partNo, Double qty) {
this.partNo = partNo; this.partNo = partNo;
this.qty = qty; 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();
}
} }

@ -64,4 +64,12 @@ public class WmsErpFgDetailsSnapshot extends BaseBean {
@ApiParam("存储区") @ApiParam("存储区")
private String zoneNo; private String zoneNo;
public WmsErpFgDetailsSnapshot(String snapshotTime,String createDatetime){
this.snapshotTime = snapshotTime;
this.createDatetime = createDatetime;
}
public WmsErpFgDetailsSnapshot(){
}
} }

@ -566,6 +566,8 @@ public class WmsHqlPack {
DdlPreparedPack.getStringLikerPack(wmsZones.getZoneNo(), "zoneNo", result); DdlPreparedPack.getStringLikerPack(wmsZones.getZoneNo(), "zoneNo", result);
//存储区名称 //存储区名称
DdlPreparedPack.getStringLikerPack(wmsZones.getZoneName(), "zoneName", result); DdlPreparedPack.getStringLikerPack(wmsZones.getZoneName(), "zoneName", result);
//是否字节点
DdlPreparedPack.getNumEqualPack(wmsZones.getIsSonNode(), "isSonNode", result);
getStringBuilderPack(wmsZones, result); getStringBuilderPack(wmsZones, result);

Loading…
Cancel
Save