yun-zuoyi
joke.wang 5 years ago
commit 54ff0deb87

@ -4847,4 +4847,74 @@ public class MesEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CHECK_MODEL {
NO_CHECK(10, "不校验"),
CHECK(20, "校验设备就绪信号");
private int value;
private String description;
CHECK_MODEL(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;
}
}
/**
* PLC
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PLC_TYPE {
STANDARD(10, "标准"),
EQU_OPERATION_SIGNLE(20, "设备作业信号");
private int value;
private String description;
PLC_TYPE(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;
}
}
}

@ -2460,6 +2460,7 @@ public class MesPcnEnumUtil {
public enum STATION_BUSI_TYPE {
MESSAGE("message", "返回信息"),
STEP_LIST("stepList", "工步列表"),
STATE_LIST("stateList", "状态列表"),
STEP_CONTENT("stepContent", "工步内容"),
MODULE_CONTENT("moduleContent", "组件内容"),
CUSTOM_COMPONENT("customComponent", "定制内容"),
@ -3495,4 +3496,37 @@ public class MesPcnEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum STATUS_TYPE {
START(10, "START", "开始状态"),
EXECUTING(20, "EXECUTING", "执行中状态"),
TERMINATE(30, "TERMINATE", "中断状态"),
FINISH(40, "FINISH", "完成状态");
private int value;
private String code;
private String description;
STATUS_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
}
}

@ -11,6 +11,98 @@ import com.fasterxml.jackson.annotation.JsonFormat;
public class PtlEnumUtil {
/**
* -
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TRIGGER_TYPE {
INNER_TRIGGER(10, "内部触发"),
OUTER_TRIGGER(20, "外部触发");
private int value;
private String description;
TRIGGER_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ROUNT_STATUS_TRIGGER_EVENT {
SUCCESS("SUCCESS", "是"),
FAILURE("FAILURE", "否");
private String value;
private String description;
ROUNT_STATUS_TRIGGER_EVENT(String value, String description) {
this.value = value;
this.description = description;
}
public static ROUNT_STATUS_TRIGGER_EVENT getByValue(String value) {
for (ROUNT_STATUS_TRIGGER_EVENT triggerEvent : values()) {
if (triggerEvent.getValue().equals(value)) {
return triggerEvent;
}
}
return null;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum STATUS_TYPE {
START(10, "START", "开始状态"),
EXECUTING(20, "EXECUTING", "执行中状态"),
TERMINATE(30, "TERMINATE", "中断状态"),
FINISH(40, "FINISH", "完成状态");
private int value;
private String code;
private String description;
STATUS_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -46,21 +138,30 @@ public class PtlEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ROUTE_EVENT {
TRIGGER(10, "trigger", "触发"),
ENTRY(20, "entry", "进入状态"),
EXIT(30, "exit", "离开状态");
TRIGGER("10", "trigger", "触发"),
ENTRY("20", "entry", "进入状态"),
EXIT("30", "exit", "离开状态");
private int value;
private String value;
private String code;
private String description;
ROUTE_EVENT(int value, String code, String description) {
ROUTE_EVENT(String value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
public static ROUTE_EVENT getByValue(String value) {
for (ROUTE_EVENT routeEvent : values()) {
if (routeEvent.getValue().equals(value)) {
return routeEvent;
}
}
return null;
}
public String getValue() {
return value;
}

@ -554,21 +554,21 @@ public class PtlPcnEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ROUTE_EVENT {
TRIGGER(10, "trigger", "触发"),
ENTRY(20, "entry", "进入状态"),
EXIT(30, "exit", "离开状态");
TRIGGER("10", "trigger", "触发"),
ENTRY("20", "entry", "进入状态"),
EXIT("30", "exit", "离开状态");
private int value;
private String value;
private String code;
private String description;
ROUTE_EVENT(int value, String code, String description) {
ROUTE_EVENT(String value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
public String getValue() {
return value;
}
@ -933,8 +933,9 @@ public class PtlPcnEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum STATUS_TYPE {
START(10, "START", "开始状态"),
FINISH(20, "FINISH", "完成状态"),
TERMINATE(30, "TERMINATE", "中断状态");
EXECUTING(20, "EXECUTING", "执行中状态"),
TERMINATE(30, "TERMINATE", "中断状态"),
FINISH(40, "FINISH", "完成状态");
private int value;
private String code;

@ -240,7 +240,7 @@ public class WmsEnumUtil {
/**
* (ASN,PO,MOVE,QC)
* (ASN,PO,MOVE,QC,SO)
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MASTER_ORDER_STATUS {
@ -1283,8 +1283,8 @@ public class WmsEnumUtil {
public enum CS_STRATEGY_TYPE {
PART_COVERAGE(110, "物料分类覆盖"),
TOUCH(120, "动碰"),
ZORE_STOCK(130, "零库存");
ZORE_STOCK(130, "零库存"),
MATERIAL_COVERAGE(140, "物料覆盖");
private int value;
private String description;
@ -1328,7 +1328,8 @@ public class WmsEnumUtil {
AJUST_INVENTORY(50, "库存调整盘点"),
PART_COVERAGE(110, "物料分类覆盖"),
TOUCH(120, "动碰"),
ZORE_STOCK(130, "零库存");
ZORE_STOCK(130, "零库存"),
MATERIAL_COVERAGE(140, "物料覆盖");
private int value;
private String description;
@ -5951,4 +5952,244 @@ public class WmsEnumUtil {
return tmp;
}
}
}
/**
*
* 10
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PART_STEEL_TYPE {
NONE(10, "非钢卷料"),
NORMAL(20, "普通钢卷料"),
FINE(30, "精钢卷料");
private int value;
private String description;
PART_STEEL_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static PART_STEEL_TYPE codeOf(int value) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
return values()[i];
}
}
return null;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
* 10
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PART_SUPPLY_TYPE {
JIT(10, "JIT"),
NOT_JIT(20, "非JIT");
private int value;
private String description;
PART_SUPPLY_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static PART_SUPPLY_TYPE codeOf(int value) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
return values()[i];
}
}
return null;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
* 10
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PART_RECEIVING_METHOD {
STAND(10, "标准收货"),
PREPARE(20, "预收货");
private int value;
private String description;
PART_RECEIVING_METHOD(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static PART_RECEIVING_METHOD codeOf(int value) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
return values()[i];
}
}
return null;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
* 10
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WEEK_TYPE {
MONDAY(10, "星期一"),
TUESDAY(20, "星期二"),
WEDNESDAY(30, "星期三"),
THURSDAY(40, "星期四"),
FRIDAY(50, "星期五"),
SATURDAY(60, "星期六"),
SUNDAY(70, "星期七");
private int value;
private String description;
WEEK_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static WEEK_TYPE codeOf(int value) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
return values()[i];
}
}
return null;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SO_ORDER_TYPE {
SALES(10, "SALES", "销售");
private int value;
private String code;
private String description;
SO_ORDER_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getCode() {
return code;
}
public static String valueOf(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 descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
}
}

@ -0,0 +1,44 @@
package cn.estsh.i3plus.pojo.mes.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 java.io.Serializable;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\10\10 0010 11:56
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_EQU_FAULT_CAUSE")
@Api("MES_设备故障原因")
public class MesEquFaultCause extends BaseBean implements Serializable {
private static final long serialVersionUID = 1229825283741375978L;
@Column(name = "FC_CODE")
@ApiParam("故障原因代码")
private String fcCode;
@Column(name = "FC_NAME")
@ApiParam("故障原因描述")
private String fcName;
@Column(name = "EQUIPMENT_CODE")
@ApiParam("设备代码")
private String equipmentCode;
}

@ -0,0 +1,44 @@
package cn.estsh.i3plus.pojo.mes.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 java.io.Serializable;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\10\10 0010 11:53
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_EQU_FAULT_METHOD")
@Api("MES_设备故障处理措施")
public class MesEquFaultMethod extends BaseBean implements Serializable {
private static final long serialVersionUID = -1366849727309967125L;
@Column(name = "FM_CODE")
@ApiParam("故障方法代码")
private String fmCode;
@Column(name = "FM_NAME")
@ApiParam("故障方法描述")
private String fmName;
@Column(name = "EQUIPMENT_CODE")
@ApiParam("设备代码")
private String equipmentCode;
}

@ -0,0 +1,44 @@
package cn.estsh.i3plus.pojo.mes.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 java.io.Serializable;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\10\10 0010 11:42
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_EQU_FAULT_PHENOMENON")
@Api("MES_设备故障现象")
public class MesEquFaultPhenomenon extends BaseBean implements Serializable {
private static final long serialVersionUID = 4373435091738791300L;
@Column(name = "FP_CODE")
@ApiParam("故障现象代码")
private String fpCode;
@Column(name = "FP_NAME")
@ApiParam("故障现象描述")
private String fpName;
@Column(name = "EQUIPMENT_CODE")
@ApiParam("设备代码")
private String equipmentCode;
}

@ -81,6 +81,10 @@ public class MesEquipment extends BaseBean implements Serializable {
@ApiParam("连接类型")
private Integer connectType;
@Column(name = "CHECK_MODEL")
@ApiParam("作业校验模式")
private Integer checkModel;
@Column(name = "MEMO")
@ApiParam("备注")
private String memo;

@ -26,7 +26,7 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_FAULT_CAUSE")
@Api("mes设备故障原因表")
@Api("mes故障原因表")
public class MesFaultCause extends BaseBean implements Serializable {
private static final long serialVersionUID = 1229825197241375978L;
@ -38,7 +38,8 @@ public class MesFaultCause extends BaseBean implements Serializable {
@ApiParam("故障原因描述")
private String fcName;
@Column(name = "PARENT_FC_CODE")
@ApiParam("父阶原因代码")
private String parentFcCode;
// 对应(类型信息MesTypeCfg中的BUSINESS_TYPE_CODE字段
@Column(name = "FC_TYPE")
@ApiParam("故障原因类型编码")
private String fcType;
}

@ -26,7 +26,7 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_FAULT_METHOD")
@Api("mes设备故障方法表")
@Api("MES_故障处理措施")
public class MesFaultMethod extends BaseBean implements Serializable {
private static final long serialVersionUID = -1366849757709967125L;
@ -38,7 +38,8 @@ public class MesFaultMethod extends BaseBean implements Serializable {
@ApiParam("故障方法描述")
private String fmName;
@Column(name = "PARENT_FM_CODE")
@ApiParam("父阶故障代码")
private String parentFmCode;
// 对应(类型信息MesTypeCfg中的BUSINESS_TYPE_CODE字段
@Column(name = "FM_TYPE")
@ApiParam("故障措施类型编码")
private String fmType;
}

@ -26,7 +26,7 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_FAULT_PHENOMENON")
@Api("mes设备故障现象表")
@Api("mes故障现象表")
public class MesFaultPhenomenon extends BaseBean implements Serializable {
private static final long serialVersionUID = 4373435095236791300L;
@ -38,15 +38,8 @@ public class MesFaultPhenomenon extends BaseBean implements Serializable {
@ApiParam("故障现象描述")
private String fpName;
@Column(name = "PARENT_FP_CODE")
@ApiParam("父阶现象代码")
private String parentFpCode;
@Column(name = "EQUIPMENT_CODE")
@ApiParam("设备代码")
private String equipmentCode;
// 对应(类型信息MesTypeCfg中的BUSINESS_TYPE_CODE字段
@Column(name = "FP_TYPE")
@ApiParam("故障现象类型")
private Integer fpType;
@ApiParam("故障现象类型编码")
private String fpType;
}

@ -54,6 +54,10 @@ public class MesPlc extends BaseBean implements Serializable {
@ApiParam("通道")
private String channel;
@Column(name = "DEVICE")
@ApiParam("终端")
private String device;
@Column(name = "TAG_NAME")
@ApiParam("标签名称")
private String tagName;
@ -70,14 +74,26 @@ public class MesPlc extends BaseBean implements Serializable {
@ApiParam("分组名称")
private String groupName;
@Column(name = "DEVICE")
@ApiParam("驱动")
private String device;
@Column(name = "ANALYSIS_RULE")
@ApiParam("解析规则")
private String analysisRule;
@Column(name = "IS_ANALYSIS")
@ApiParam("是否解析")
private String isAnalysis;
@Column(name = "PLC_CFG")
@ApiParam("PLC配置")
private String plcCfg;
@Column(name = "EQUIPMENT_CODE")
@ApiParam("设备代码")
private String equipmentCode;
@Column(name = "TOOLING_CODE ")
@ApiParam("工装代码")
private String toolingCode;
@Column(name = "WORK_CENTER_CODE")
@ApiParam("生产线")
private String workCenterCode;
@ -86,18 +102,6 @@ public class MesPlc extends BaseBean implements Serializable {
@ApiParam("工位")
private String workCellCode;
@Column(name = "PLC_CFG")
@ApiParam("PLC的值的设定")
private String plcCfg;
@Column(name = "ANALYSIS_RULE")
@ApiParam("解析规则")
private String analysisRule;
@Column(name = "IS_ANALYSIS")
@ApiParam("是否解析")
private String isAnalysis;
@Column(name = "FEED_VALUE")
@ApiParam("反馈值")
private String feedValue;
@ -114,6 +118,10 @@ public class MesPlc extends BaseBean implements Serializable {
@ApiParam("空间索引")
private Integer nameSpaceIndex = 2;
@Column(name = "PLC_TYPE")
@ApiParam("PLC类型")
private Integer plcType;
@Column(name = "USER_NAME")
@ApiParam("用户名")
private String userName;
@ -130,10 +138,6 @@ public class MesPlc extends BaseBean implements Serializable {
@ApiParam("OPC值")
private List<ProductDataModel> opcValue;
@Column(name = "TOOLING_CODE ")
@ApiParam("工装代码")
private String toolingCode;
@Transient
@ApiParam("标签数据")

@ -0,0 +1,39 @@
package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @Description :
* @Reference :
* @Author : jimmy.zeng
* @CreateDate : 2020-03-30 13:42
* @Modify:
**/
@Data
@Api(value="生产工单导入",description = "生产工单导入")
public class MesWorkOrderModel {
@ApiParam("工单号")
@AnnoOutputColumn(required = false)
private String orderNo;
@ApiParam("物料号")
@AnnoOutputColumn
private String partNo;
@ApiParam("客户产线代码")
@AnnoOutputColumn
private String custProdLineCode;
@ApiParam("数量")
@AnnoOutputColumn
private Double qty;
@ApiParam("开始时间")
@AnnoOutputColumn
private String startTime;
}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesEquFaultCause;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\10\10 0010 13:08
* @Modify:
**/
public interface MesEquFaultCauseRepository extends BaseRepository<MesEquFaultCause, Long> {
}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesEquFaultMethod;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\10\10 0010 13:07
* @Modify:
**/
public interface MesEquFaultMethodRepository extends BaseRepository<MesEquFaultMethod, Long> {
}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesEquFaultPhenomenon;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\10\10 0010 13:05
* @Modify:
**/
public interface MesEquFaultPhenomenonRepository extends BaseRepository<MesEquFaultPhenomenon, Long> {
}

@ -1324,8 +1324,50 @@ public class MesHqlPack {
if (!StringUtils.isEmpty(mesFaultMethod.getFmName())) {
DdlPreparedPack.getStringLikerPack(mesFaultMethod.getFmName(), "fmName", packBean);
}
if (!StringUtils.isEmpty(mesFaultMethod.getParentFmCode())) {
DdlPreparedPack.getStringLikerPack(mesFaultMethod.getParentFmCode(), "parentFmCode", packBean);
if (!StringUtils.isEmpty(mesFaultMethod.getFmType())) {
DdlPreparedPack.getStringLikerPack(mesFaultMethod.getFmType(), "fmType", packBean);
}
return packBean;
}
/**
* MES
*
* @param mesEquFaultMethod
* @param organizeCode
* @return
*/
public static DdlPackBean getMesEquFaultMethod(MesEquFaultMethod mesEquFaultMethod, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesEquFaultMethod, organizeCode);
if (!StringUtils.isEmpty(mesEquFaultMethod.getFmCode())) {
DdlPreparedPack.getStringLikerPack(mesEquFaultMethod.getFmCode(), "fmCode", packBean);
}
if (!StringUtils.isEmpty(mesEquFaultMethod.getFmName())) {
DdlPreparedPack.getStringLikerPack(mesEquFaultMethod.getFmName(), "fmName", packBean);
}
if (!StringUtils.isEmpty(mesEquFaultMethod.getEquipmentCode())) {
DdlPreparedPack.getStringLikerPack(mesEquFaultMethod.getEquipmentCode(), "equipmentCode", packBean);
}
return packBean;
}
/**
* MES
*
* @param mesEquFaultCause
* @param organizeCode
* @return
*/
public static DdlPackBean getMesEquFaultCause(MesEquFaultCause mesEquFaultCause, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesEquFaultCause, organizeCode);
if (!StringUtils.isEmpty(mesEquFaultCause.getFcCode())) {
DdlPreparedPack.getStringLikerPack(mesEquFaultCause.getFcCode(), "fcCode", packBean);
}
if (!StringUtils.isEmpty(mesEquFaultCause.getFcName())) {
DdlPreparedPack.getStringLikerPack(mesEquFaultCause.getFcName(), "fcName", packBean);
}
if (!StringUtils.isEmpty(mesEquFaultCause.getEquipmentCode())) {
DdlPreparedPack.getStringLikerPack(mesEquFaultCause.getEquipmentCode(), "equipmentCode", packBean);
}
return packBean;
}
@ -1345,8 +1387,8 @@ public class MesHqlPack {
if (!StringUtils.isEmpty(mesFaultCause.getFcName())) {
DdlPreparedPack.getStringLikerPack(mesFaultCause.getFcName(), "fcName", packBean);
}
if (!StringUtils.isEmpty(mesFaultCause.getParentFcCode())) {
DdlPreparedPack.getStringLikerPack(mesFaultCause.getParentFcCode(), "parentFcCode", packBean);
if (!StringUtils.isEmpty(mesFaultCause.getFcType())) {
DdlPreparedPack.getStringLikerPack(mesFaultCause.getFcType(), "fcType", packBean);
}
return packBean;
}
@ -1366,8 +1408,29 @@ public class MesHqlPack {
if (!StringUtils.isEmpty(mesFaultPhenomenon.getFpName())) {
DdlPreparedPack.getStringLikerPack(mesFaultPhenomenon.getFpName(), "fpName", packBean);
}
if (!StringUtils.isEmpty(mesFaultPhenomenon.getParentFpCode())) {
DdlPreparedPack.getStringLikerPack(mesFaultPhenomenon.getParentFpCode(), "parentFpCode", packBean);
if (!StringUtils.isEmpty(mesFaultPhenomenon.getFpType())) {
DdlPreparedPack.getStringLikerPack(mesFaultPhenomenon.getFpType(), "fpType", packBean);
}
return packBean;
}
/**
* MES
*
* @param mesEquFaultPhenomenon
* @param organizeCode
* @return
*/
public static DdlPackBean getMesEquFaultPhenomenon(MesEquFaultPhenomenon mesEquFaultPhenomenon, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesEquFaultPhenomenon, organizeCode);
if (!StringUtils.isEmpty(mesEquFaultPhenomenon.getFpCode())) {
DdlPreparedPack.getStringLikerPack(mesEquFaultPhenomenon.getFpCode(), "fpCode", packBean);
}
if (!StringUtils.isEmpty(mesEquFaultPhenomenon.getFpName())) {
DdlPreparedPack.getStringLikerPack(mesEquFaultPhenomenon.getFpName(), "fpName", packBean);
}
if (!StringUtils.isEmpty(mesEquFaultPhenomenon.getEquipmentCode())) {
DdlPreparedPack.getStringLikerPack(mesEquFaultPhenomenon.getEquipmentCode(), "equipmentCode", packBean);
}
return packBean;
}

@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.model.wms;
import cn.estsh.i3plus.pojo.wms.bean.WmsPart;
import cn.estsh.i3plus.pojo.wms.bean.WmsStockSn;
import io.swagger.annotations.ApiParam;
import lombok.Data;
@ -45,4 +46,10 @@ public class TransSnModle extends BaseComponetsParam implements Serializable {
@ApiParam(value = "物料信息")
public WmsPart wmsPart;
@ApiParam(value = "条码")
public WmsStockSn wmsStockSn;
@ApiParam(value = "新条码")
public WmsStockSn NewWmsStockSn;
}

@ -0,0 +1,57 @@
package cn.estsh.i3plus.pojo.ptl.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 java.io.Serializable;
/**
* @author wangjie
* @date 2020/2/12 17:41
* @desc
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "PTL_ROUTE_MODULE_PARAM")
@EqualsAndHashCode(callSuper = true)
@Api("PTL_流程组件调用参数")
public class PtlRouteModuleParam extends BaseBean implements Serializable {
private static final long serialVersionUID = -3036415977457877114L;
@Column(name = "ROUTE_CODE")
@ApiParam("流程代码")
private String routeCode;
@Column(name = "AMG_ID")
@ApiParam("组件集编号")
private Long amgId;
@Column(name = "AM_CODE")
@ApiParam("组件代码")
private String amCode;
@Column(name = "PARAM_CODE")
@ApiParam("参数代码")
private String paramCode;
@Column(name = "PARAM_VALUE")
@ApiParam("参数值")
private String paramValue;
@Column(name = "STATUS_CODE")
@ApiParam("状态代码")
private String statusCode;
}

@ -0,0 +1,36 @@
package cn.estsh.i3plus.pojo.ptl.model;
import cn.estsh.i3plus.pojo.ptl.bean.PtlAreaRouteModuleParam;
import cn.estsh.i3plus.pojo.ptl.bean.PtlRouteModuleParam;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @Description : Model
* @Reference :
* @Author : wangjie
* @CreateDate : 2020-04-10 13:27
* @Modify:
**/
@Data
@Api("流程明细Model")
public class ActionModuleGroupModel implements Serializable {
private static final long serialVersionUID = 3569055511035396175L;
@ApiParam("组件代码")
private String amCode;
@ApiParam("执行顺序")
private Integer seq;
@ApiParam("流程组件参数集合")
private List<PtlRouteModuleParam> routeModuleParamList;
@ApiParam("区域流程组件参数集合")
private List<PtlAreaRouteModuleParam> areaRouteModuleParamList;
}

@ -0,0 +1,35 @@
package cn.estsh.i3plus.pojo.ptl.model;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @Description : Model
* @Reference :
* @Author : wangjie
* @CreateDate : 2020-04-10 13:27
* @Modify:
**/
@Data
@Api("作业流程Model")
public class BussinessProcessModel implements Serializable {
private static final long serialVersionUID = 148029163662900001L;
@ApiParam("流程代码")
private String routeCode;
@ApiParam("GOJS位置")
private String position;
@ApiParam("流程明细Model集合")
private List<ProcessDetailModel> processDetailModelList;
@ApiParam("区域代码")
private String areaNo;
}

@ -0,0 +1,51 @@
package cn.estsh.i3plus.pojo.ptl.model;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
* @Description : Model
* @Reference :
* @Author : wangjie
* @CreateDate : 2020-04-10 13:27
* @Modify:
**/
@Data
@Api("流程明细Model")
public class ProcessDetailModel implements Serializable {
private static final long serialVersionUID = 3569055511035396175L;
@ApiParam("状态代码")
private String statusCode;
@ApiParam("状态名称")
private String statusName;
@ApiParam("触发类型")
private Integer triggerType;
@ApiParam("触发条件MVEL")
private String triggerWhere;
@ApiParam("组件集MAP")
private Map<String, List<ActionModuleGroupModel>> actionModuleGroupMap;
@ApiParam("下个状态点MAP")
private Map<String, String> nextStatusMap;
@ApiParam("触发调用")
private Long actionAmgId;
@ApiParam("进入状态调用")
private Long inAmgId;
@ApiParam("离开状态调用")
private Long outAmgId;
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.ptl.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.ptl.bean.PtlActionModuleParam;
/**
* @author wangjie
* @date 2020/2/12 17:41
* @desc
*/
public interface PtlActionModuleParamRepository extends BaseRepository<PtlActionModuleParam, Long> {
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.ptl.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.ptl.bean.PtlRouteModuleParam;
/**
* @author Wynne.Lu
* @date 2020/2/12 17:41
* @desc
*/
public interface PtlRouteModuleParamRepository extends BaseRepository<PtlRouteModuleParam, Long> {
}

@ -0,0 +1,157 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
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 : bom
* @Reference :
* @Author : jason
* @CreateDate : 2020-04-14
* @Modify:
**/
@Data
@Entity
@Table(name = "WMS_BOM_HISTORY")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api(value = "bom历史记录", description = "bom历史记录")
public class WmsBomHistory extends BaseBean {
@Column(name = "PART_NO")
@ApiParam(value = "父物料号")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String partNo;
@Column(name = "PART_NAME")
@ApiParam(value = "父物料描述")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String partName;
@Column(name = "UNIT")
@ApiParam(value = "计量单位")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String unit;
@Column(name = "QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ApiParam(value = "数量")
@ColumnDefault("0")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double qty;
@Column(name = "ITEM_PART_NO")
@ApiParam(value = "子物料号")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String itemPartNo;
@Column(name = "ITEM_PART_NAM")
@ApiParam(value = "子料物料描述")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String itemPartNam;
@Column(name = "ITEM_UNIT")
@ApiParam(value = "子计量单位")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String itemUnit;
@Column(name = "ITEM_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ApiParam(value = "子用量")
@ColumnDefault("0")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double itemQty;
@Column(name = "BOM_NUM")
@ApiParam(value = "BOM编号")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String bomNum;
@Column(name = "BOM_VERSION")
@ApiParam(value = "BOM版本号")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String bomVersion;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiParam(value = "有效起始日期", example = "2018-12-31 23:59:59")
@AnnoOutputColumn(hidden = true)
@Column(name = "EFF_START_TIME")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.DATETIME, isRequire = 2)
private String effStartTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiParam(value = "有效截止日期", example = "2018-12-31 23:59:59")
@AnnoOutputColumn(hidden = true)
@Column(name = "EFF_END_TIME")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.DATETIME, isRequire = 2)
private String effEndTime;
@Column(name = "LOCATE_NO")
@ApiParam(value = "线边库位代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String locateNo;
@Column(name = "TERMINAL_NO")
@ApiParam(value = "工位代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String terminalNo;
@Column(name = "NEW_BOM_VERSION")
@ApiParam(value = "工位代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String newBomVersion;
@ApiParam(value = "目标存储区")
@Transient
public String destZoneNo;
@ApiParam(value = "交易类型")
@Transient
public String transTypeCode;
@ApiParam(value = "线路代码")
@Transient
public String routingCode;
public Double getQty() {
return this.qty == null ? 0 : this.qty.doubleValue();
}
public Double getItemQty() {
return this.itemQty == null ? 0 : this.itemQty.doubleValue();
}
public WmsBomHistory() {
}
public WmsBomHistory(String itemPartNo, String itemPartNam, String itemUnit, String bomNum, Double itemQty) {
this.itemPartNo = itemPartNo;
this.itemPartNam = itemPartNam;
this.itemUnit = itemUnit;
this.bomNum = bomNum;
this.itemQty = itemQty;
}
public WmsBomHistory(String itemPartNo, String itemPartNam, String itemUnit, String bomNum, Double itemQty,String effStartTime) {
this.itemPartNo = itemPartNo;
this.itemPartNam = itemPartNam;
this.itemUnit = itemUnit;
this.bomNum = bomNum;
this.itemQty = itemQty;
this.effStartTime = effStartTime;
}
}

@ -100,4 +100,14 @@ public class WmsCsStrategy extends BaseBean implements Serializable {
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam(value = "备注")
private String remake;
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam(value = "已盘物料")
@Column(name="INVENTORY_MATERIAL")
private String inventoryMaterial;
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam(value = "已盘库位")
@Column(name="INVENTORY_LOCATION")
private String inventoryLocation;
}

@ -0,0 +1,47 @@
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;
/**
* @Description :
* @Reference :
* @Author : jason
* @CreateDate : 2020-04-14
* @Modify:
**/
@Data
@Entity
@Table(name="WMS_CUST_WINDOW")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api(value="客户窗口时间",description = "客户窗口时间")
public class WmsCustWindow extends BaseBean {
@Column(name = "CUST_NO")
@ApiParam(value = "客户编码")
private String custNo;
@Column(name = "CUST_WINDOW_TIME")
@ApiParam(value = "窗口时间")
private String custWindowTime;
@Column(name = "WEEKS")
@ApiParam(value = "星期")
private String weeks;
@Column(name = "DELAY_HOUR")
@ApiParam(value = "容差")
private Integer delayHour;
}

@ -0,0 +1,46 @@
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;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-04-11
* @Modify:
**/
@Data
@Entity
@Table(name="WMS_CUSTOMER_PART_SHIPPING")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api(value="客户物料发往地",description = "客户物料发往地")
public class WmsCustomerPartShipping extends BaseBean {
@Column(name = "CUSTOMER_CODE")
@ApiParam(value = "客户代码")
private String customerCode;
@Column(name = "CUSTOMER_PART_NO")
@ApiParam(value = "客户零件号")
private String customerPartNo;
@Column(name = "PART_NO")
@ApiParam(value = "物料编码")
private String partNo;
@Column(name = "SHIPPING_FLAG")
@ApiParam(value = "发往地")
private String shippingFlag;
}

@ -169,6 +169,10 @@ public class WmsDocMovementDetails extends BaseBean {
@ApiParam(value = "指定生产日期")
private String assignDateCode;
@Column(name = "SO_ORDER_NO")
@ApiParam(value = "销售单据号")
private String soOrderNo;
@Transient
@ApiParam("实际批次")
private String actualLot;

@ -0,0 +1,70 @@
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 lombok.ToString;
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;
/**
* @Description :
* @Reference :
* @Author : jimmy.zeng
* @CreateDate : 2020-04-13 13:30
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "WMS_DOC_SO_DETAILS")
@Api("销售订单明细表")
@ToString
public class WmsDocSoDetails extends BaseBean {
private static final long serialVersionUID = -8900949569711082994L;
@Column(name = "ORDER_NO")
@ApiParam(value = "单据号")
private String orderNo;
@Column(name = "ITEM")
@ApiParam("行号")
public Integer item;
@Column(name = "PART_NO")
@ApiParam("物料编码")
public String partNo;
@Column(name = "PART_NAME_RDD")
@ApiParam("物料名称")
public String partNameRdd;
@Column(name = "UNIT")
@ApiParam("单位")
public String unit;
@Column(name = "SNP_QTY")
@ApiParam(value = "标准包装", example = "1")
private Double snpQty;
@Column(name = "ITEM_STATUS")
@ApiParam(value = "状态", example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.ORDER_DETAILS_STATUS.class, refForeignKey = "value", value = "description")
private Integer itemStatus;
@Column(name = "QTY", columnDefinition = "decimal(18,8)")
@ColumnDefault("0")
@ApiParam(value = "需求数量", example = "0")
public Double qty;
}

@ -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 lombok.ToString;
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 : jimmy.zeng
* @CreateDate : 2020-04-13 13:19
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "WMS_DOC_SO_MASTER")
@Api("销售订单主表")
@ToString
public class WmsDocSoMaster extends BaseBean {
private static final long serialVersionUID = 8250843929041855006L;
@Column(name = "ORDER_NO")
@ApiParam(value = "单据号")
private String orderNo;
@Column(name = "ORDER_TYPE")
@ApiParam("订单类型")
@AnnoOutputColumn(refClass = WmsEnumUtil.SO_ORDER_TYPE.class, refForeignKey = "value", value = "description")
public Integer orderType;
@Column(name = "ORDER_STATUS")
@ApiParam(value = "订单状态", example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.MASTER_ORDER_STATUS.class, refForeignKey = "value", value = "description")
public Integer orderStatus;
@Column(name = "CUST_CODE")
@ApiParam(value = "客户编号")
private String custCode;
@Column(name = "CUST_DESC")
@ApiParam(value = "客户全称")
private String custDesc;
@Column(name = "CUST_DELIVERY_CODE")
@ApiParam(value = "客户发往地代码")
private String custDeliveryCode;
@Column(name = "FLAG_NAME")
@ApiParam(value = "客户发往地名称")
private String flagName;
}

@ -0,0 +1,159 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
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.Index;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-04-07
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "WMS_PART_EXTEND", indexes = {
@Index(columnList = "ORGANIZE_CODE")
})
@Api("物料扩展属性表")
public class WmsPartExtend extends BaseBean {
@Column(name = "PART_NO")
@ApiParam(value = "物料编码")
private String partNo;
@Column(name = "IS_SETTLE")
@ApiParam(value = "是否内部交易")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "TRUE_OR_FALSE")
private Integer isSettle;
@Column(name = "SETTLE_FACTORY_CODE")
@ApiParam(value = "结算工厂")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String settleFactoryCode;
@Column(name = "SETTLE_REC_ERP_WH")
@ApiParam(value = "结算物料收货库存")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String settleRecErpWh;
@Column(name = "VALUATION_CLASS")
@ApiParam(value = "评估类")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String valuationClass;
@Column(name = "VALUATION_CLASS_NAME")
@ApiParam(value = "评估类描述")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String valuationClassName;
@Column(name = "MC_CODE")
@ApiParam(value = "MRP控制者")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String mcCode;
@Column(name = "MC_NAME")
@ApiParam(value = "MRP控制者名称")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String mcName;
@Column(name = "IS_STEEL")
@ApiParam(value = "是否为钢卷料")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "PART_STEEL_TYPE")
private Integer isSteel;
@Column(name = "IS_PACKAGE_MATERIAL")
@ApiParam(value = "是否为包材")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "TRUE_OR_FALSE")
private Integer isPackageMaterial;
@Column(name = "RECEIVING_TYPE")
@ApiParam(value = "收货类型")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String receivingType;
@Column(name = "LOT_CONTROL")
@ApiParam(value = "批次控制")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String lotControl;
@Column(name = "RANGE_LOT")
@ApiParam(value = "批次容差")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
private Integer rangeLot;
@Column(name = "QUALITY_RATE")
@ApiParam(value = "质检率")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
private Double qualityRate;
@Column(name = "ROUTING")
@ApiParam(value = "工艺")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String routing;
@Column(name = "PO_PART_MULTIPLE")
@ApiParam(value = "乘倍包装")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String poPartMultiple;
@Column(name = "RANGE_QTY_RATE")
@ApiParam(value = "数量容差")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
private Integer rangeQtyRate;
@Column(name = "RANGE_INVENTORY")
@ApiParam(value = "盘点容差")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
private Integer rangeInventory;
@Column(name = "PROD_LINE")
@ApiParam(value = "产品类")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String prodLine;
@Column(name = "SUPPLY_TYPE")
@ApiParam(value = "供货类型")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "PART_SUPPLY_TYPE")
private Integer supplyType;
@Column(name = "RECEIVING_MODE")
@ApiParam(value = "收货方式")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "PART_RECEIVING_METHOD")
private Integer receivingMethod;
@Column(name = "PRE_RECEIVING_DAY")
@ApiParam(value = "预收货天数")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
private Integer preReceivingDay;
@Column(name = "IS_WAY_CALCULATION")
@ApiParam(value = "是否计算在途库存")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "TRUE_OR_FALSE")
private Integer isWayCalculation;
@Column(name = "IS_AUTO_PURCHASE")
@ApiParam(value = "是否自动采购")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "TRUE_OR_FALSE")
private Integer isAutoPurchase;
@Column(name = "AUTO_PURCHASE_QTY")
@ApiParam(value = "自动采购数量")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
private Integer autoPurchaseQty;
}

@ -70,6 +70,7 @@ public class WmsPoSn extends BaseBean {
/**
* :10- 20- 30- 40-
*/
@Column(name="QC_STATUS")
@ApiParam(value = "质量状态", example = "10")
public Integer qcStatus;
@ -150,6 +151,11 @@ public class WmsPoSn extends BaseBean {
@ApiParam("父层级packcode对应的可回用零件号")
private String parentReturnPart;
@Transient
@ApiParam(value = "生产批次")
private String leftCode = "";
public WmsPoSn(){}
public WmsPoSn(String orderNo,String earliestReceTime,String latestReceTime){

@ -0,0 +1,55 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
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.Index;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : dragon.xu
* @CreateDate : 2018-11-07 16:06
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "WMS_SUB_PART", indexes = {
@Index(columnList = "ORGANIZE_CODE")
})
@Api("替代料")
public class WmsSubPart extends BaseBean {
@Column(name = "PART_NO")
@ApiParam(value = "物料编码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String partNo;
@Column(name = "SUB_PART_NO")
@ApiParam(value = "替代物料编码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String subPartNo;
@Column(name = "PART_NAME")
@ApiParam(value = "物料名称")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String partName;
@Column(name = "SUB_PART_NAME")
@ApiParam(value = "替代物料名称")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String subPartName;
}

@ -301,4 +301,58 @@ public class WmsTmsShippingExtDetail extends BaseBean {
return orderMasterStatus == null ? 0 : this.orderMasterStatus.intValue();
}
public WmsTmsShippingExtDetail(WmsDocMovementDetails docMovementDetails,String moveNo) {
this.moveNo = moveNo;
this.partNo = docMovementDetails.getPartNo();
this.partNameRdd = docMovementDetails.getPartNameRdd();
this.item = docMovementDetails.getItem();
this.qty =docMovementDetails.getQty();
this.unit = docMovementDetails.getUnit();
this.orderNo = docMovementDetails.getOrderNo();
this.srcWhNo = docMovementDetails.getSrcWhNo();
this.srcZoneNo = docMovementDetails.getSrcZoneNo();
this.srcLocateNo = docMovementDetails.getSrcLocateNo();
this.destWhNo = docMovementDetails.getDestWhNo();
this.destZoneNo = docMovementDetails.getDestZoneNo();
this.destLocateNo = docMovementDetails.getDestLocateNo();
this.printQty = docMovementDetails.getPrintQty();
this.planDate = docMovementDetails.getPlanDate();
this.planTime = docMovementDetails.getPlanTime();
this.srcNo = docMovementDetails.getSrcNo();
this.itemStatus = docMovementDetails.getItemStatus();
this.isFree = docMovementDetails.getIsFree();
this.remark = docMovementDetails.getRemark();
this.pickQty = docMovementDetails.getPickQty();
this.outQty = docMovementDetails.getOutQty();
this.recQty = docMovementDetails.getRecQty();
this.moveQty = docMovementDetails.getMoveQty();
this.taskGenerateQty = docMovementDetails.getTaskGenerateQty();
this.srcAreaNo = docMovementDetails.getSrcAreaNo();
this.destAreaNo = docMovementDetails.getDestAreaNo();
this.lotNo = docMovementDetails.getLotNo();
this.srcItem = docMovementDetails.getSrcItem();
this.custOrderNo = docMovementDetails.getCustOrderNo();
this.assignDateCode = docMovementDetails.getAssignDateCode();
this.actualLot = docMovementDetails.getActualLot();
this.actualQty = docMovementDetails.getActualQty();
this.recommondLot = docMovementDetails.getRecommondLot();
this.recommondLocateNo = docMovementDetails.getRecommondLocateNo();
this.isSet = docMovementDetails.getIsSet();
this.dateCode = docMovementDetails.getDateCode();
this.inputMoveQty = docMovementDetails.getInputMoveQty();
this.snp = docMovementDetails.getSnp();
this.detailsSnCount = docMovementDetails.getDetailsSnCount();
this.restQty = docMovementDetails.getRestQty();
this.isTask = docMovementDetails.getIsTask();
this.orderMasterStatus = docMovementDetails.getOrderMasterStatus();
this.printStatus = docMovementDetails.getPrintStatus();
this.priority = docMovementDetails.getPriority();
this.sumQty = docMovementDetails.getSumQty();
this.sumPickQty = docMovementDetails.getSumPickQty();
this.executeStatus = docMovementDetails.getExecuteStatus();
this.lockVersion = docMovementDetails.getLockVersion();
this.moveType = docMovementDetails.getMoveType();
this.busiType = docMovementDetails.getBusiType();
this.isSn = docMovementDetails.getIsSn();
}
}

@ -145,4 +145,31 @@ public class WmsTmsShippingExtSn extends BaseBean {
this.countBox = countBox;
this.partNo = partNo;
}
public WmsTmsShippingExtSn(String moveNo,WmsDocMovementSn docMovementSn) {
this.moveNo = moveNo;
this.orderNo = docMovementSn.getOrderNo();
this.item = docMovementSn.getItem();
this.partNo = docMovementSn.getPartNo();
this.partNameRdd = docMovementSn.getPartNameRdd();
this.qty = docMovementSn.getQty();
this.unit = docMovementSn.getUnit();
this.snStatus = docMovementSn.getSnStatus();
this.sn = docMovementSn.getSn();
this.vendorNo = docMovementSn.getVendorNo();
this.snType = docMovementSn.getSnType();
this.isSet = docMovementSn.getIsSet();
this.destLocateNo = docMovementSn.getDestLocateNo();
this.srcLocateNo = docMovementSn.getSrcLocateNo();
this.dateCode = docMovementSn.getDateCode();
this.inputMoveQty = docMovementSn.getInputMoveQty();
this.planDate = docMovementSn.getPlanDate();
this.planTime = docMovementSn.getPlanTime();
this.erpWhNo = docMovementSn.getErpWhNo();
this.itemStatus = docMovementSn.getItemStatus();
this.customerPartNo = docMovementSn.getCustomerPartNo();
this.parentReturnPart = docMovementSn.getParentReturnPart();
this.templateNo = docMovementSn.getTemplateNo();
this.countBox = docMovementSn.getCountBox();
}
}

@ -0,0 +1,42 @@
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;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-04-11
* @Modify:
**/
@Data
@Entity
@Table(name="WMS_VENDOR_PLANNER")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api(value="供应商计划员",description = "供应商计划员")
public class WmsVendorPlanner extends BaseBean {
@Column(name = "VENDOR_NO")
@ApiParam(value = "供应商编号")
private String vendorNo;
@Column(name = "VENDOR_NAME")
@ApiParam(value = "供应商名称")
private String vendorName;
@Column(name = "PLANNER_NAME")
@ApiParam(value = "计划员")
private String plannerName;
}

@ -0,0 +1,46 @@
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;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-04-11
* @Modify:
**/
@Data
@Entity
@Table(name="WMS_VENDOR_RELATION")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api(value="供应商父子关系",description = "供应商父子关系")
public class WmsVendorRelation extends BaseBean {
@Column(name = "VENDOR_NO")
@ApiParam(value = "供应商编号")
private String vendorNo;
@Column(name = "VENDOR_NAME")
@ApiParam(value = "供应商名称")
private String vendorName;
@Column(name = "SUB_VENDOR_CODE")
@ApiParam(value = "子供应商编号")
private String subVendorNo;
@Column(name = "SUB_VENDOR_NAME")
@ApiParam(value = "子供应商名称")
private String subVendorName;
}

@ -0,0 +1,50 @@
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;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-04-11
* @Modify:
**/
@Data
@Entity
@Table(name="WMS_VENDOR_WINDOW")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api(value="供应商窗口时间",description = "供应商窗口时间")
public class WmsVendorWindow extends BaseBean {
@Column(name = "VENDOR_NO")
@ApiParam(value = "供应商编号")
private String vendorNo;
@Column(name = "VENDOR_NAME")
@ApiParam(value = "供应商名称")
private String vendorName;
@Column(name = "WINDOW_TIME")
@ApiParam(value = "窗口时间")
private String windowTime;
@Column(name = "DELAY_HOUR")
@ApiParam(value = "容差")
private Integer delayHour;
@Column(name = "WEEK_DAY")
@ApiParam(value = "星期")
private String weekDay;
}

@ -0,0 +1,9 @@
package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.bean.WmsBomHistory;
import org.springframework.stereotype.Repository;
@Repository
public interface WmsBomHistoryRepository extends BaseRepository<WmsBomHistory, Long> {
}

@ -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.WmsCustWindow;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jason
* @CreateDate : 2020-04-14
* @Modify:
**/
@Repository
public interface WmsCustWindowRepository extends BaseRepository<WmsCustWindow, Long> {
}

@ -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.WmsCustomerPartShipping;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-04-11
* @Modify:
**/
@Repository
public interface WmsCustomerPartShippingRepository extends BaseRepository<WmsCustomerPartShipping, Long> {
}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.bean.WmsDocSoDetails;
/**
* @Description :
* @Reference :
* @Author : jimmy.zeng
* @CreateDate : 2020-04-13 14:53
* @Modify:
**/
public interface WmsDocSoDetailsRepository extends BaseRepository<WmsDocSoDetails, Long> {
}

@ -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.WmsDocSoMaster;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jimmy.zeng
* @CreateDate : 2020-04-13 14:52
* @Modify:
**/
@Repository
public interface WmsDocSoMasterRepository extends BaseRepository<WmsDocSoMaster, Long> {
}

@ -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.WmsPartExtend;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-04-09
* @Modify:
**/
@Repository
public interface WmsPartExtendRepository extends BaseRepository<WmsPartExtend, Long> {
}

@ -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.WmsSubPart;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-04-14
* @Modify:
**/
@Repository
public interface WmsSubPartRepository extends BaseRepository<WmsSubPart, Long> {
}

@ -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.WmsVendorPlanner;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-04-11
* @Modify:
**/
@Repository
public interface WmsVendorPlannerRepository extends BaseRepository<WmsVendorPlanner, Long> {
}

@ -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.WmsVendorRelation;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-04-11
* @Modify:
**/
@Repository
public interface WmsVendorRelationRepository extends BaseRepository<WmsVendorRelation, Long> {
}

@ -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.WmsVendorWindow;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-04-11
* @Modify:
**/
@Repository
public interface WmsVendorWindowRepository extends BaseRepository<WmsVendorWindow, Long> {
}

@ -7,101 +7,7 @@ import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
import cn.estsh.i3plus.pojo.base.tool.HqlPack;
import cn.estsh.i3plus.pojo.base.util.StringUtil;
import cn.estsh.i3plus.pojo.wms.bean.BasCustomer;
import cn.estsh.i3plus.pojo.wms.bean.BasVendor;
import cn.estsh.i3plus.pojo.wms.bean.MesPpDetails;
import cn.estsh.i3plus.pojo.wms.bean.MesPpMaster;
import cn.estsh.i3plus.pojo.wms.bean.SwebProcurementPlanOrder;
import cn.estsh.i3plus.pojo.wms.bean.WareHouse;
import cn.estsh.i3plus.pojo.wms.bean.WmsASNMaster;
import cn.estsh.i3plus.pojo.wms.bean.WmsASNMasterDetails;
import cn.estsh.i3plus.pojo.wms.bean.WmsActionGroup;
import cn.estsh.i3plus.pojo.wms.bean.WmsActionGroupDetails;
import cn.estsh.i3plus.pojo.wms.bean.WmsActionLog;
import cn.estsh.i3plus.pojo.wms.bean.WmsActionLogData;
import cn.estsh.i3plus.pojo.wms.bean.WmsActionLogDetails;
import cn.estsh.i3plus.pojo.wms.bean.WmsActionModule;
import cn.estsh.i3plus.pojo.wms.bean.WmsActionModuleParam;
import cn.estsh.i3plus.pojo.wms.bean.WmsActionStep;
import cn.estsh.i3plus.pojo.wms.bean.WmsActionStepCall;
import cn.estsh.i3plus.pojo.wms.bean.WmsActionStepCallParam;
import cn.estsh.i3plus.pojo.wms.bean.WmsActionStepType;
import cn.estsh.i3plus.pojo.wms.bean.WmsAreaOwner;
import cn.estsh.i3plus.pojo.wms.bean.WmsBom;
import cn.estsh.i3plus.pojo.wms.bean.WmsBusiType;
import cn.estsh.i3plus.pojo.wms.bean.WmsCSFactTrans;
import cn.estsh.i3plus.pojo.wms.bean.WmsCSLocate;
import cn.estsh.i3plus.pojo.wms.bean.WmsCSOrderDetails;
import cn.estsh.i3plus.pojo.wms.bean.WmsCSOrderMaster;
import cn.estsh.i3plus.pojo.wms.bean.WmsCSPart;
import cn.estsh.i3plus.pojo.wms.bean.WmsCSRange;
import cn.estsh.i3plus.pojo.wms.bean.WmsCSZone;
import cn.estsh.i3plus.pojo.wms.bean.WmsCheckFactRecord;
import cn.estsh.i3plus.pojo.wms.bean.WmsConfig;
import cn.estsh.i3plus.pojo.wms.bean.WmsDataAuth;
import cn.estsh.i3plus.pojo.wms.bean.WmsDataMigrationConfig;
import cn.estsh.i3plus.pojo.wms.bean.WmsDocMovementDetails;
import cn.estsh.i3plus.pojo.wms.bean.WmsDocMovementMaster;
import cn.estsh.i3plus.pojo.wms.bean.WmsDocMovementSn;
import cn.estsh.i3plus.pojo.wms.bean.WmsFGInStock;
import cn.estsh.i3plus.pojo.wms.bean.WmsFix;
import cn.estsh.i3plus.pojo.wms.bean.WmsIbCheckPlan;
import cn.estsh.i3plus.pojo.wms.bean.WmsLineLocatePart;
import cn.estsh.i3plus.pojo.wms.bean.WmsLocate;
import cn.estsh.i3plus.pojo.wms.bean.WmsLocatePart;
import cn.estsh.i3plus.pojo.wms.bean.WmsMoveDetails;
import cn.estsh.i3plus.pojo.wms.bean.WmsMoveMaster;
import cn.estsh.i3plus.pojo.wms.bean.WmsMoveSn;
import cn.estsh.i3plus.pojo.wms.bean.WmsOpType;
import cn.estsh.i3plus.pojo.wms.bean.WmsPOMaster;
import cn.estsh.i3plus.pojo.wms.bean.WmsPOMasterDetails;
import cn.estsh.i3plus.pojo.wms.bean.WmsPackage;
import cn.estsh.i3plus.pojo.wms.bean.WmsPart;
import cn.estsh.i3plus.pojo.wms.bean.WmsPartGroup;
import cn.estsh.i3plus.pojo.wms.bean.WmsPartGroupDetails;
import cn.estsh.i3plus.pojo.wms.bean.WmsPartGroupRoute;
import cn.estsh.i3plus.pojo.wms.bean.WmsPartRelation;
import cn.estsh.i3plus.pojo.wms.bean.WmsPoSn;
import cn.estsh.i3plus.pojo.wms.bean.WmsPrinterConfigure;
import cn.estsh.i3plus.pojo.wms.bean.WmsPrintingQueue;
import cn.estsh.i3plus.pojo.wms.bean.WmsProdCfgType;
import cn.estsh.i3plus.pojo.wms.bean.WmsPullRule;
import cn.estsh.i3plus.pojo.wms.bean.WmsPullTaskDetails;
import cn.estsh.i3plus.pojo.wms.bean.WmsPullTaskMaster;
import cn.estsh.i3plus.pojo.wms.bean.WmsQCDetails;
import cn.estsh.i3plus.pojo.wms.bean.WmsQCMaster;
import cn.estsh.i3plus.pojo.wms.bean.WmsQCTrans;
import cn.estsh.i3plus.pojo.wms.bean.WmsRouting;
import cn.estsh.i3plus.pojo.wms.bean.WmsRoutingAssign;
import cn.estsh.i3plus.pojo.wms.bean.WmsRoutingDetail;
import cn.estsh.i3plus.pojo.wms.bean.WmsRoutingMaster;
import cn.estsh.i3plus.pojo.wms.bean.WmsRoutingRule;
import cn.estsh.i3plus.pojo.wms.bean.WmsShift;
import cn.estsh.i3plus.pojo.wms.bean.WmsShiftRest;
import cn.estsh.i3plus.pojo.wms.bean.WmsShipping;
import cn.estsh.i3plus.pojo.wms.bean.WmsShippingFlag;
import cn.estsh.i3plus.pojo.wms.bean.WmsSnOperateRecord;
import cn.estsh.i3plus.pojo.wms.bean.WmsSnPrint;
import cn.estsh.i3plus.pojo.wms.bean.WmsSnPrintRcd;
import cn.estsh.i3plus.pojo.wms.bean.WmsStockInitialize;
import cn.estsh.i3plus.pojo.wms.bean.WmsStockQuan;
import cn.estsh.i3plus.pojo.wms.bean.WmsStockSn;
import cn.estsh.i3plus.pojo.wms.bean.WmsTaskCreateLog;
import cn.estsh.i3plus.pojo.wms.bean.WmsTaskDetails;
import cn.estsh.i3plus.pojo.wms.bean.WmsTaskInfo;
import cn.estsh.i3plus.pojo.wms.bean.WmsTaskSrc;
import cn.estsh.i3plus.pojo.wms.bean.WmsTempOrderLock;
import cn.estsh.i3plus.pojo.wms.bean.WmsTerminal;
import cn.estsh.i3plus.pojo.wms.bean.WmsTransModule;
import cn.estsh.i3plus.pojo.wms.bean.WmsTransQuan;
import cn.estsh.i3plus.pojo.wms.bean.WmsTransType;
import cn.estsh.i3plus.pojo.wms.bean.WmsTransportRule;
import cn.estsh.i3plus.pojo.wms.bean.WmsUnit;
import cn.estsh.i3plus.pojo.wms.bean.WmsUnitConvert;
import cn.estsh.i3plus.pojo.wms.bean.WmsVendorPart;
import cn.estsh.i3plus.pojo.wms.bean.WmsWaveRule;
import cn.estsh.i3plus.pojo.wms.bean.WmsZonePart;
import cn.estsh.i3plus.pojo.wms.bean.WmsZones;
import cn.estsh.i3plus.pojo.wms.bean.*;
import cn.estsh.i3plus.pojo.wms.bean.dynamictable.WmsFieldInfo;
import cn.estsh.i3plus.pojo.wms.bean.dynamictable.WmsSearchElementFunction;
import cn.estsh.i3plus.pojo.wms.bean.plugin.BasPlugin;
@ -2341,6 +2247,111 @@ public class WmsHqlPack {
}
/**
*
*
* @param partExtend
* @return
*/
public static DdlPackBean packHqlWmsPartExtendByPart(WmsPartExtend partExtend) {
DdlPackBean packBean = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(partExtend.getPartNo(), "partNo", packBean);
getStringBuilderPack(partExtend, packBean);
return packBean;
}
/**
*
*
* @param subPart
* @return
*/
public static DdlPackBean packHqlWmsSubPartByPart(WmsSubPart subPart) {
DdlPackBean packBean = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(subPart.getPartNo(), "partNo", packBean);
getStringBuilderPack(subPart, packBean);
return packBean;
}
/**
*
*
* @param vendorWindow
* @return
*/
public static DdlPackBean packHqlWmsVendorWindow(WmsVendorWindow vendorWindow) {
DdlPackBean packBean = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(vendorWindow.getVendorNo(), "vendorNo", packBean);
getStringBuilderPack(vendorWindow, packBean);
return packBean;
}
/**
*
*
* @param custWindow
* @return
*/
public static DdlPackBean packHqlWmsCustWindow(WmsCustWindow custWindow) {
DdlPackBean packBean = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(custWindow.getCustNo(), "custNo", packBean);
getStringBuilderPack(custWindow, packBean);
return packBean;
}
/**
*
*
* @param shipping
* @return
*/
public static DdlPackBean packHqlWmsCustomerPartShipping(WmsCustomerPartShipping shipping) {
DdlPackBean packBean = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(shipping.getCustomerCode(), "customerCode", packBean);
getStringBuilderPack(shipping, packBean);
return packBean;
}
/**
*
*
* @param vendorPlanner
* @return
*/
public static DdlPackBean packHqlWmsVendorPlanner(WmsVendorPlanner vendorPlanner) {
DdlPackBean packBean = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(vendorPlanner.getVendorNo(), "vendorNo", packBean);
getStringBuilderPack(vendorPlanner, packBean);
return packBean;
}
/**
*
*
* @param vendorRelation
* @return
*/
public static DdlPackBean packHqlWmsVendorRelation(WmsVendorRelation vendorRelation) {
DdlPackBean packBean = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(vendorRelation.getVendorNo(), "vendorNo", packBean);
getStringBuilderPack(vendorRelation, packBean);
return packBean;
}
/**
*
*
* @param wmsUnit
@ -3033,4 +3044,42 @@ public class WmsHqlPack {
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue(), "isDeleted", result);
return result;
}
/**
* SO
*
* @param wmsDocSoMaster
* @return
*/
public static DdlPackBean packHqlWmsDocSoMaster(WmsDocSoMaster wmsDocSoMaster) {
DdlPackBean result = new DdlPackBean();
//查询参数封装
DdlPreparedPack.getStringRightLikerPack(wmsDocSoMaster.getOrderNo(), "orderNo", result);
DdlPreparedPack.getStringEqualPack(wmsDocSoMaster.getCustCode(), "custCode", result);
DdlPreparedPack.getStringEqualPack(wmsDocSoMaster.getCustDeliveryCode(), "custDeliveryCode", result);
DdlPreparedPack.getNumEqualPack(wmsDocSoMaster.getOrderStatus(), "orderStatus", result);
getStringBuilderPack(wmsDocSoMaster, result);
return result;
}
/**
* SO
*
* @param wmsDocSoDetails
* @return
*/
public static DdlPackBean packHqlWmsDocSoDetails(WmsDocSoDetails wmsDocSoDetails) {
DdlPackBean result = new DdlPackBean();
//查询参数封装
DdlPreparedPack.getStringEqualPack(wmsDocSoDetails.getOrderNo(), "orderNo", result);
DdlPreparedPack.getStringEqualPack(wmsDocSoDetails.getPartNo(), "partNo", result);
DdlPreparedPack.getStringEqualPack(wmsDocSoDetails.getPartNameRdd(), "partNameRdd", result);
getStringBuilderPack(wmsDocSoDetails, result);
return result;
}
}

@ -6,7 +6,7 @@ sonar.projectKey=i3plus.pojo:i3plus-pojo
# defaults to project key
sonar.projectName=i3plus-pojo
# defaults to 'not provided'
sonar.projectVersion=1.0-TEST-SNAPSHOT
sonar.projectVersion=1.0-DEV-SNAPSHOT
# Path is relative to the sonar-project.properties file. Defaults to .
#sonar.sources=./

Loading…
Cancel
Save