yun-zuoyi
许心洁 5 years ago
commit de0d57179c

@ -31,4 +31,6 @@ public @interface FieldAnnotation {
int isRequire() default 1;
// 是否表单字段展示:默认1-显示2-隐藏
int isShow() default 1;
// 是否跳过本字段扫描 0-不跳过1-跳过
int isSkip() default 0;
}

@ -41,7 +41,7 @@ public abstract class BaseBean implements Serializable {
@ApiParam(value = "主键",example = "0")
@JsonSerialize(using = ToStringSerializer.class)
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
public Long id;
//get单独处理
@ -64,19 +64,19 @@ public abstract class BaseBean implements Serializable {
@Column(name="ORGANIZE_CODE")
@ApiParam(value ="组织代码")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isRequire = 2)
// @AnnoOutputColumn(hidden = true)
public String organizeCode;
@Column(name="IS_VALID", columnDefinition = "int default 1", nullable = false)
@ApiParam(value = "有效性",example = "1")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isSkip = 1)
@AnnoOutputColumn(refClass = WmsEnumUtil.TRUE_OR_FALSE.class,refForeignKey = "value",value = "description", hidden = true)
public Integer isValid; //CommonEnumUtil.IS_VAILD;
@Column(name="IS_DELETED", columnDefinition = "int default 2", nullable = false)
@ApiParam(value = "是否已删除",example = "2")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isSkip = 1)
@AnnoOutputColumn(hidden = true)
//逻辑删除,软删除
public Integer isDeleted; //CommonEnumUtil.TRUE_OR_FALSEA
@ -84,58 +84,64 @@ public abstract class BaseBean implements Serializable {
@Column(name="CREATE_USER",updatable = false)
@ApiParam(value = "创建用户")
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
public String createUser;
@Indexed(direction = IndexDirection.DESCENDING)
@Column(name="CREATE_DATE_TIME",updatable = false)
@ApiParam(value = "创建日期")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.DATETIME)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.DATETIME, isRequire = 2)
public String createDatetime;
@Column(name="MODIFY_USER")
@ApiParam(value = "修改人")
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
public String modifyUser;
@Column(name="MODIFY_DATE_TIME")
@ApiParam(value = "修改日期")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.DATETIME)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.DATETIME, isRequire = 2)
public String modifyDatetime;
@Transient
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiParam(value="创建日期查询用,查询起始日期",example = "2018-01-01 01:00:00")
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isSkip = 1)
public String createDateTimeStart;
@Transient
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiParam(value="创建日期查询用,查询结束日期",example = "2018-12-31 23:59:59")
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isSkip = 1)
public String createDateTimeEnd;
@Transient
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiParam(value="修改日期查询用,查询起始日期",example = "2018-01-01 01:00:00")
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isSkip = 1)
public String modifyDateTimeStart;
@Transient
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiParam(value = "修改日期查询用,查询结束日期",example = "2018-12-31 23:59:59")
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isSkip = 1)
public String modifyDateTimeEnd;
@Transient
@ApiParam(value = "排序属性")
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isSkip = 1)
public String orderByParam = "";
@Transient
@ApiParam(value = "排序类型1 正序2 倒序",example = "1")
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isSkip = 1)
//CommonEnumUtil.ASC_OR_DESC 1 asc,2 desc
public transient Integer ascOrDesc = 1;

@ -286,7 +286,8 @@ public class BlockReportEnumUtil {
ECHARTS_PIE(10, "饼图", "实芯饼图"),
ECHARTS_BAR(20, "柱状图", "柱状图-向上具状图"),
ECHARTS_LINE(30, "折线图", "向右折线条图"),
ECHARTS_TREEMAP(40, "矩形图", "矩形图");
ECHARTS_TREEMAP(40, "矩形图", "矩形图"),
SELECT_SINGLE(50, "下拉单选", "下拉单选");
private int value;
private String name;

@ -27,6 +27,9 @@ public class CommonEnumUtil {
MES_PCN(6, 8350, 12, "i3mes-pcn", "生产管理软件-节点中心"),
SWEB(7, 8800, 19, "i3sweb", "供应商服务"),
PTL(8, 8700, 20, "i3ptl", "亮灯自动拣选"),
PTL_PCN(9, 8750, 21, "i3ptl-pcn", "亮灯自动拣选-节点中心"),
FORM(20, 8900, 16, "block-form", "智能表单"),
REPORT(21, 8910, 17, "block-report", "智能报表"),
WORKFLOW(22, 0, 0, "block-workflow", "智能工作流"),
@ -35,7 +38,7 @@ public class CommonEnumUtil {
HARDSWITCH(25, 0, 0, "block-hardswitch", "硬件适配器"),
LAC(26, 8600, 13, "lac", "连接适配器"),
ANDON(27, 8500, 14, "andon", "安灯"),
APS(28, 8410, 15, "APS", "高级计划与排程"),
APS(28, 8400, 15, "APS", "高级计划与排程"),
CENTER(99, 8000, 1, "icloud-server", "注册中心"),
SURFACE(98, 0, 0, "i3surface", "对外服务"),
CLOUD(97, 0, 0, "i3cloud", "微服务"),

@ -13,6 +13,40 @@ import com.fasterxml.jackson.annotation.JsonFormat;
public class MesEnumUtil {
/**
* -module
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_ACTION_MODULE {
WORK_ORDER_LANDED(10, "生产工单下达");
private int value;
private String description;
MES_ACTION_MODULE(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;
}
}
/**
* JIS
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -3945,4 +3979,86 @@ public class MesEnumUtil {
}
}
/**
* MesMonitorTaskstatus
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MONITOR_TASK_STATUS {
NORMAL(10, "正常"),
CLOSE(20, "关闭");
private int value;
private String description;
MONITOR_TASK_STATUS(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;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MONITOR_TASK_OBJECT_TYPE {
PLC(10, "PLC"),
DB(20, "DB"),
OTHER(30, "其他");
private int value;
private String description;
MONITOR_TASK_OBJECT_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;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
}

@ -2685,4 +2685,121 @@ public class MesPcnEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MONITOR_TASK_OBJECT_TYPE {
PLC(10, "PLC"),
DB(20, "DB"),
OTHER(30, "其他");
private int value;
private String description;
MONITOR_TASK_OBJECT_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;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
* MesMonitorTaskstatus
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MONITOR_TASK_STATUS {
NORMAL(10, "正常"),
CLOSE(20, "关闭");
private int value;
private String description;
MONITOR_TASK_STATUS(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;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PLC_IS_PARSE {
TRUE(1, "是"),
FALSE(2, "否");
private int value;
private String description;
PLC_IS_PARSE(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;
}
}
}

@ -2117,7 +2117,8 @@ public class WmsEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum COMMON_SN {
PO_SN("PO_SN", "PO条码"),
VDA_SN("VDA_SN", "VDA条码");
VDA_SN("VDA_SN", "VDA条码"),
SELF_SN("SELF_SN", "自制件条码");
private String code;
private String description;

@ -321,6 +321,15 @@ public class DdlPreparedPack {
}
/**
*
*
* @param firstColumnName
* @param packBean
*/
public static void getNotEqueals(String firstColumnName, String twoColumnName, DdlPackBean packBean) {
packBean.addColumnQuery(null, " and UPPER(model." + firstColumnName + ")!= UPPER(model." + twoColumnName+")", null);
}
/**
* longintequal
*
* @param columnName

@ -0,0 +1,50 @@
package cn.estsh.i3plus.pojo.mes.pcn.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 : zcg
* @Date : 2020/1/8 0008 - 17:11
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_MONITOR_TASK")
@Api("监听任务")
public class MesMonitorTask extends BaseBean {
@Column(name = "TASK_NO")
@ApiParam("任务编号")
private String taskNo;
@Column(name = "TASK_NAME")
@ApiParam("任务名称")
private String taskName;
@Column(name = "TASK_OBJECT_TYPE")
@ApiParam("任务对象类型")
private Integer taskObjectType;
@Column(name = "TASK_STATUS")
@ApiParam("任务状态")
private Integer taskStatus;
@Column(name = "TASK_EXCEPTION_DESC")
@ApiParam("异常描述")
private String taskExceptionDesc;
}

@ -0,0 +1,46 @@
package cn.estsh.i3plus.pojo.mes.pcn.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 : zcg
* @Date : 2020/1/8 0008 - 17:19
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_MONITOR_TASK_DETAIL")
@Api("监听任务明细")
public class MesMonitorTaskDetail extends BaseBean {
@Column(name = "TASK_NO")
@ApiParam("任务编号")
private String taskNo;
@Column(name = "DATA_OBJECT_NO")
@ApiParam("数据对象编号")
private String dataObjectNo;
// @Column(name = "STORE_OBJECT_CODE")
// @ApiParam("存储对象代码")
// private String storeObjectCode;
//
// @Column(name = "STORE_FIELD_CODE")
// @ApiParam("存储字段代码")
// private String storeFieldCode;
}

@ -96,6 +96,10 @@ public class MesPlc extends BaseBean {
@ApiParam("反馈值")
private String feedValue;
@Column(name = "OBJECT_CODE")
@ApiParam("对象代码")
private String objectCode;
@Transient
@ApiParam("设备名称")
private String equipmentName;

@ -12,6 +12,7 @@ import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;
/**
* @Description:
@ -77,10 +78,18 @@ public class MesQcCheckStandard extends BaseBean {
@ApiParam("检测项类型")
private String checkItemType;
@Transient
@ApiParam("检测项类型名称")
private String checkItemTypeName;
@Transient
private List<MesQcCheckStandard> childQcList;
public MesQcCheckStandard() {
}
public MesQcCheckStandard(Long id, String partNo, String workCenterCode, String workCellCode, Integer checkType, String checkItem, String checkStandard, String checkGuide, String checkFrequency, String partName, String checkItemType) {
public MesQcCheckStandard(Long id, String partNo, String workCenterCode, String workCellCode, Integer checkType, String checkItem, String checkStandard
, String checkGuide, String checkFrequency, String partName, String checkItemType, String checkItemTypeName) {
this.id = id;
this.partNo = partNo;
this.workCenterCode = workCenterCode;
@ -92,5 +101,6 @@ public class MesQcCheckStandard extends BaseBean {
this.checkFrequency = checkFrequency;
this.partName = partName;
this.checkItemType = checkItemType;
this.checkItemTypeName = checkItemTypeName;
}
}

@ -0,0 +1,35 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/1/10 0010 - 15:28
*/
@Data
@Api("数据采集Model")
public class DataAcquisitionModel {
@ApiParam("对象代码")
private String objectCode;
@ApiParam("对象名称")
private String objectName;
@ApiParam("字段代码")
private String fieldCode;
@ApiParam("字段名称")
private String fieldName;
@ApiParam("字段值")
private String fieldValue;
//
// @ApiParam("组号")
// private String groupNo;
}

@ -0,0 +1,80 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesQcCheckStandard;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.List;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2020\1\13 17:23
* @Modify:
**/
@Data
public class QcCheckStandardModel {
private Long id;
@ApiParam("物料编码")
private String partNo;
@ApiParam("工作中心代码")
private String workCenterCode;
@ApiParam("工作单元代码")
private String workCellCode;
@ApiParam("检测类型")
private Integer checkType;
@ApiParam("检测项")
private String checkItem;
@ApiParam("检测标准")
private String checkStandard;
@ApiParam("检测指导")
private String checkGuide;
@ApiParam("频率")
private String checkFrequency;
@ApiParam("物料名称")
private String partName;
@ApiParam("检测结果")
private String checkResult;
@ApiParam("检测值")
private String checkValue;
@ApiParam("检测项类型")
private String checkItemType;
@ApiParam("检测项类型名称")
private String checkItemTypeName;
private List<MesQcCheckStandard> childQcList;
public QcCheckStandardModel() {
}
public QcCheckStandardModel(Long id, String partNo, String workCenterCode, String workCellCode, Integer checkType, String checkItem, String checkStandard
, String checkGuide, String checkFrequency, String partName, String checkItemType, String checkItemTypeName) {
this.id = id;
this.partNo = partNo;
this.workCenterCode = workCenterCode;
this.workCellCode = workCellCode;
this.checkType = checkType;
this.checkItem = checkItem;
this.checkStandard = checkStandard;
this.checkGuide = checkGuide;
this.checkFrequency = checkFrequency;
this.partName = partName;
this.checkItemType = checkItemType;
this.checkItemTypeName = checkItemTypeName;
}
}

@ -0,0 +1,69 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import io.swagger.annotations.Api;
import lombok.Data;
import java.util.Collection;
@Data
@Api("工步返回信息")
public class StepResult<T> {
private boolean isCompleted;
private T data;
private Collection<T> dataCollection;
private String msg;
public static StepResult getSuccessComplete() {
return new StepResult(true);
}
public static StepResult getNonComplete() {
return new StepResult(false);
}
public static StepResult getSuccessComplete(String msg) {
return new StepResult(true, msg);
}
public static StepResult getNonComplete(String msg) {
return new StepResult(false, msg);
}
public static <T> StepResult<T> getSuccessData(T data, String msg) {
return new StepResult<>(true, data, msg);
}
public static <T> StepResult<T> getSuccessData(Collection<T> data, String msg) {
return new StepResult<T>(true, data, msg);
}
private StepResult() {
}
private StepResult(boolean isCompleted) {
this.isCompleted = isCompleted;
}
private StepResult(boolean isCompleted, String msg) {
this.isCompleted = isCompleted;
this.msg = msg;
}
public StepResult(boolean isCompleted, T data, String msg) {
this.isCompleted = isCompleted;
this.data = data;
this.msg = msg;
}
public StepResult(boolean isCompleted, Collection<T> dataCollection, String msg) {
this.isCompleted = isCompleted;
this.dataCollection = dataCollection;
this.msg = msg;
}
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.mes.pcn.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesMonitorTaskDetail;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/1/8 0008 - 18:42
*/
@Repository
public interface MesMonitorTaskDetailRepository extends BaseRepository<MesMonitorTaskDetail, Long> {
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.mes.pcn.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesMonitorTask;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/1/8 0008 - 18:43
*/
@Repository
public interface MesMonitorTaskRepository extends BaseRepository<MesMonitorTask,Long> {
}

@ -173,8 +173,6 @@ public class MesHqlPack {
mesWorkOrder.getCreateDateTimeEnd(),
"createDatetime", packBean, true);
}
DdlPreparedPack.getOrderDefault(mesWorkOrder);
DdlPreparedPack.getOrderByPack(new Object[]{"2"}, new String[]{mesWorkOrder.getOrderByParam()}, packBean);
return packBean;
}
@ -205,9 +203,6 @@ public class MesHqlPack {
if (!StringUtils.isEmpty(mesPart.getCategoryCode3())) {
DdlPreparedPack.getStringEqualPack(mesPart.getCategoryCode3(), "categoryCode3", packBean);
}
DdlPreparedPack.getOrderDefault(mesPart);
DdlPreparedPack.getOrderByPack(new Object[]{"2"}, new String[]{mesPart.getOrderByParam()}, packBean);
return packBean;
}

@ -0,0 +1,50 @@
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;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/1/8 0008 - 17:11
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_MONITOR_TASK")
@Api("监听任务")
public class MesMonitorTask extends BaseBean {
@Column(name = "TASK_NO")
@ApiParam("任务编号")
private String taskNo;
@Column(name = "TASK_NAME")
@ApiParam("任务名称")
private String taskName;
@Column(name = "TASK_OBJECT_TYPE")
@ApiParam("任务对象类型")
private Integer taskObjectType;
@Column(name = "TASK_STATUS")
@ApiParam("任务状态")
private Integer taskStatus;
@Column(name = "TASK_EXCEPTION_DESC")
@ApiParam("异常描述")
private String taskExceptionDesc;
}

@ -0,0 +1,51 @@
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 javax.persistence.Transient;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/1/8 0008 - 17:19
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_MONITOR_TASK_DETAIL")
@Api("监听任务明细")
public class MesMonitorTaskDetail extends BaseBean {
@Column(name = "TASK_NO")
@ApiParam("任务编号")
private String taskNo;
@Column(name = "DATA_OBJECT_NO")
@ApiParam("数据对象编号")
private String dataObjectNo;
// @Column(name = "STORE_OBJECT_CODE")
// @ApiParam("存储对象代码")
// private String storeObjectCode;
//
// @Column(name = "STORE_FIELD_CODE")
// @ApiParam("存储字段代码")
// private String storeFieldCode;
@Transient
@ApiParam("任务名称")
private String taskName;
}

@ -98,6 +98,10 @@ public class MesPlc extends BaseBean {
@ApiParam("反馈值")
private String feedValue;
@Column(name = "OBJECT_CODE")
@ApiParam("对象代码")
private String objectCode;
@Transient
@ApiParam("设备名称")
private String equipmentName;

@ -32,4 +32,7 @@ public class ActionRequestBean<Obj> implements Serializable {
@ApiParam("Map请求集")
public Map<String, Object> resultMap;
@ApiParam("module代码")
public Integer moduleCode;
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesMonitorTaskDetail;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/1/8 0008 - 18:42
*/
@Repository
public interface MesMonitorTaskDetailRepository extends BaseRepository<MesMonitorTaskDetail, Long> {
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesMonitorTask;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/1/8 0008 - 18:43
*/
@Repository
public interface MesMonitorTaskRepository extends BaseRepository<MesMonitorTask,Long> {
}

@ -2085,6 +2085,7 @@ public class MesHqlPack {
/**
* JIS
*
* @param patternJis
* @param organizeCode
* @return
@ -2106,5 +2107,51 @@ public class MesHqlPack {
return packBean;
}
/**
*
*
* @param monitorTask
* @param organizeCode
* @return
*/
public static DdlPackBean getMesMonitorTask(MesMonitorTask monitorTask, String organizeCode) {
DdlPackBean packBean = getAllBaseData(organizeCode);
if (!StringUtils.isEmpty(monitorTask.getTaskNo())) {
DdlPreparedPack.getStringLikerPack(monitorTask.getTaskNo(), "taskNo", packBean);
}
if (!StringUtils.isEmpty(monitorTask.getTaskName())) {
DdlPreparedPack.getStringLikerPack(monitorTask.getTaskName(), "taskName", packBean);
}
if (!StringUtils.isEmpty(monitorTask.getTaskObjectType())) {
DdlPreparedPack.getNumEqualPack(monitorTask.getTaskObjectType(), "taskObjectType", packBean);
}
if (!StringUtils.isEmpty(monitorTask.getTaskStatus())) {
DdlPreparedPack.getNumEqualPack(monitorTask.getTaskStatus(), "taskStatus", packBean);
}
if (monitorTask.getIsValid() != null) {
DdlPreparedPack.getNumEqualPack(monitorTask.getIsValid(), "isValid", packBean);
}
return packBean;
}
/**
*
*
* @param monitorTaskDetail
* @param organizeCode
* @return
*/
public static DdlPackBean getMesMonitorTaskDetail(MesMonitorTaskDetail monitorTaskDetail, String organizeCode) {
DdlPackBean packBean = getAllBaseData(organizeCode);
if (!StringUtils.isEmpty(monitorTaskDetail.getTaskNo())) {
DdlPreparedPack.getStringLikerPack(monitorTaskDetail.getTaskNo(), "taskNo", packBean);
}
if (!StringUtils.isEmpty(monitorTaskDetail.getDataObjectNo())) {
DdlPreparedPack.getStringLikerPack(monitorTaskDetail.getDataObjectNo(), "dataObjectNo", packBean);
}
if (monitorTaskDetail.getIsValid() != null) {
DdlPreparedPack.getNumEqualPack(monitorTaskDetail.getIsValid(), "isValid", packBean);
}
return packBean;
}
}

@ -27,8 +27,12 @@ public class WmsFieldInfoModel implements Serializable {
@ApiParam(value = "新增数据操作类")
private String baseRepository;
public WmsFieldInfoModel (String baseRepository, List<WmsFieldInfo> wmsFieldInfoList) {
@ApiParam("处理类型")
private int handleType;
public WmsFieldInfoModel (String baseRepository, int handleType, List<WmsFieldInfo> wmsFieldInfoList) {
this.baseRepository = baseRepository;
this.wmsFieldInfoList = wmsFieldInfoList;
this.handleType = handleType;
}
}

@ -25,7 +25,7 @@ public class WmsListElementModel extends BaseBean {
@ApiParam(value = "用户编号")
private String userCode;
@ApiParam(value = "是否默认配置")
@ApiParam(value = "是否默认配置 1-默认2-自定义")
private Integer isDefault;
List<WmsListElement> wmsListElementList;

@ -34,6 +34,9 @@ public class WmsSearchElementModel extends BaseBean {
@ApiParam(value = "是否共享")
private Integer isShare;
@ApiParam(value = "搜索名称")
private String searchName;
@ApiParam(value = "Wms查询元素列表")
private List<WmsSearchElement> searchElementList;
}

@ -0,0 +1,20 @@
package cn.estsh.i3plus.pojo.model.wms;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.List;
/**
* @Description : WMSmodel
* @Reference :
* @Author : sjc
* @CreateDate : 2020-01-07 14:33
* @Modify:
**/
@Data
public class WmsSearchGroupModel {
@ApiParam(value = "组列表")
private List<WmsSearchElementModel> searchElementModelList;
}

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>i3plus-pojo-ptl-pcn</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>i3plus.pojo</groupId>
<artifactId>i3plus-pojo-base</artifactId>
</dependency>
</dependencies>
</project>

@ -0,0 +1,71 @@
package cn.estsh.i3plus.pojo.ptl.pcn.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
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 : wei.peng
* @CreateDate : 20-1-10 5:16
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="PTL_PCN_TEST_USER")
@Api(value="PTL PCN 测试用户",description = "测试用户")
public class PpTestUser extends BaseBean {
private static final long serialVersionUID = -8985367251249816850L;
@Column(name="USER_INFO_ID")
@ApiParam(value ="人员ID" , example = "-1")
@JsonSerialize(using = ToStringSerializer.class)
private Long userInfoId;
@Column(name="LANGUAGE_CODE")
@ApiParam(value ="用户语言")
private String languageCode;
@Column(name="USER_NAME_RDD")
@ApiParam(value ="用户名称" , access ="账号名称")
private String userName;
@Column(name="USER_LOGIN_NAME")
@ApiParam(value ="登陆名称" , access ="登陆名称")
private String userLoginName;
@Column(name="USER_EMP_NO")
@ApiParam(value ="工号")
private String userEmpNo;
@Column(name="USER_LOGIN_PASSWORD")
@ApiParam(value ="登陆密码")
private String userLoginPassword;
@Column(name="USER_TYPE")
@ApiParam(value ="账号类型(枚举,待定)" , example ="-1")
private Integer userType;
@Column(name="USER_EMAIL")
@ApiParam(value ="邮箱" , access ="邮箱")
private String userEmail;
@Column(name="USER_PHONE")
@ApiParam(value ="手机号" , access ="手机号")
private String userPhone;
}

@ -0,0 +1,14 @@
/**
* @Description :
* @Reference :
* @Author : wei.peng
* @CreateDate : 20-1-10 5:19
* @Modify:
**/
package cn.estsh.i3plus.pojo.ptl.pcn;
/**
* Bean cn.estsh.i3plus.pojo.ptl.pcn.bean
* Bean Pp
* Bean ID ()
*/

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.ptl.pcn.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.ptl.pcn.bean.PpTestUser;
/**
* @Description :
* @Reference :
* @Author : wei.peng
* @CreateDate : 20-1-10 5:18
* @Modify:
**/
public interface PpTestUserRepository extends BaseRepository<PpTestUser, Long> {
}

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>i3plus-pojo-ptl</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>i3plus.pojo</groupId>
<artifactId>i3plus-pojo-base</artifactId>
</dependency>
</dependencies>
</project>

@ -0,0 +1,73 @@
package cn.estsh.i3plus.pojo.ptl.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
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 : wei.peng
* @CreateDate : 20-1-10 5:16
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="PTL_TEST_USER")
@Api(value="PTL 测试用户",description = "测试用户")
public class PtlTestUser extends BaseBean {
private static final long serialVersionUID = -130240511327784335L;
@Column(name="USER_INFO_ID")
@ApiParam(value ="人员ID" , example = "-1")
@JsonSerialize(using = ToStringSerializer.class)
private Long userInfoId;
@Column(name="LANGUAGE_CODE")
@ApiParam(value ="用户语言")
private String languageCode;
@Column(name="USER_NAME_RDD")
@ApiParam(value ="用户名称" , access ="账号名称")
private String userName;
@Column(name="USER_LOGIN_NAME")
@ApiParam(value ="登陆名称" , access ="登陆名称")
private String userLoginName;
@Column(name="USER_EMP_NO")
@ApiParam(value ="工号")
private String userEmpNo;
@Column(name="USER_LOGIN_PASSWORD")
@ApiParam(value ="登陆密码")
private String userLoginPassword;
@Column(name="USER_TYPE")
@ApiParam(value ="账号类型(枚举,待定)" , example ="-1")
private Integer userType;
@Column(name="USER_EMAIL")
@ApiParam(value ="邮箱" , access ="邮箱")
private String userEmail;
@Column(name="USER_PHONE")
@ApiParam(value ="手机号" , access ="手机号")
private String userPhone;
}

@ -0,0 +1,14 @@
/**
* @Description :
* @Reference :
* @Author : wei.peng
* @CreateDate : 20-1-10 5:19
* @Modify:
**/
package cn.estsh.i3plus.pojo.ptl;
/**
* Bean cn.estsh.i3plus.pojo.ptl.bean
* Bean Ptl
* Bean ID ()
*/

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.ptl.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.ptl.bean.PtlTestUser;
/**
* @Description :
* @Reference :
* @Author : wei.peng
* @CreateDate : 20-1-10 5:18
* @Modify:
**/
public interface PtlTestUserRepository extends BaseRepository<PtlTestUser, Long> {
}

@ -30,7 +30,7 @@ public class BasCustomer extends BaseBean {
private static final long serialVersionUID = -1980207700343546396L;
@Column(name = "CUST_NO")
@ApiParam(value = "客户编")
@ApiParam(value = "客户编")
private String custNo;
@Column(name = "CUST_NAME")
@ -54,7 +54,7 @@ public class BasCustomer extends BaseBean {
private String custEmail;
@Column(name = "CUST_TEL")
@ApiParam(value = "联系人电话")
@ApiParam(value = "电话号码")
private String custTel;
@Column(name = "CUST_FAX")

@ -0,0 +1,113 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.io.Serializable;
/**
* @Description : BOM
* @Reference :
* @Author : jimmy.zeng
* @CreateDate : 2020-01-09 14:40
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name="QAD_BOP")
@Api("包材BOM信息")
public class QadBop implements Serializable {
private static final long serialVersionUID = 4673217061075875734L;
@Id
@GeneratedValue(generator = "IDGenerator")
@GenericGenerator(name = "IDGenerator", strategy = "assigned")
@Column(name="ID")
@ApiParam(value = "主键",example = "0")
@JsonSerialize(using = ToStringSerializer.class)
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
public Long id;
//get单独处理
public Long getId() {
if(id != null) {
return id.longValue();
}else{
return id;
}
}
/**
* MonogoDB _id
* @param id
*/
@JSONField(name="_id")
public void setId(Long id) {
this.id = id;
}
@Column(name="BOP_CODE")
@ApiParam("BOP编号")
public String bopCode;
@Column(name="BOP_DESC")
@ApiParam("BOP描述")
public String bopDesc;
@Column(name="BOP_DOMAIN")
@ApiParam("BOP所属Domain")
public String bopDomain;
@Column(name="PARENT_PART")
@ApiParam("父层级packcode对应的qad零件号")
public String parentPart;
@Column(name="PARENT_RETURN_PART")
@ApiParam("父层级packcode对应的可回用零件号")
public String parentReturnPart;
@Column(name="BOPDW_QTY")
@ApiParam("默认1 不考虑")
public String bopdwQty;
@Column(name="SUB_BOP_CODE")
@ApiParam("子层级packcode代码或者是物料零件号")
public String subBopCode;
@Column(name="SUB_BOP_PART")
@ApiParam("子层级packcode对应的qad零件号如果是物料零件这里为空")
public String subBopPart;
@Column(name="SUB_ITEM_PART")
@ApiParam("子层级packcode对应的可回用零件号如果是物料零件这里为空")
public String subItemPart;
@Column(name="SUB_QTY", columnDefinition = "decimal(18,8)")
@ColumnDefault("0")
@ApiParam(value = "该层级在父层级中的个数", example = "0")
public String subQty;
@Column(name="SUB_UNIT")
@ApiParam("单位")
public String subUnit;
@Column(name="CREATE_DATE_TIME")
@ApiParam("创建时间")
public String createDateTime;
}

@ -0,0 +1,91 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.io.Serializable;
/**
* @Description :
* @Reference :
* @Author : jimmy.zeng
* @CreateDate : 2020-01-09 14:04
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name="QAD_ITEM_PACKING")
@Api("零件包装主数据信息")
public class QadItemPacking implements Serializable {
private static final long serialVersionUID = -9204074690166851001L;
@Id
@GeneratedValue(generator = "IDGenerator")
@GenericGenerator(name = "IDGenerator", strategy = "assigned")
@Column(name="ID")
@ApiParam(value = "主键",example = "0")
@JsonSerialize(using = ToStringSerializer.class)
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
public Long id;
//get单独处理
public Long getId() {
if(id != null) {
return id.longValue();
}else{
return id;
}
}
/**
* MonogoDB _id
* @param id
*/
@JSONField(name="_id")
public void setId(Long id) {
this.id = id;
}
@Column(name="IN_ADDR")
@ApiParam("收货时是供应商编号,发运时是客户发往地")
public String inAddr;
@Column(name="IN_BOP_CODE")
@ApiParam("BOP编号")
public String inBopCode;
@Column(name="IN_DOMAIN")
@ApiParam("所属Domain")
public String inDomain;
@Column(name="IN_PART")
@ApiParam("物料代码")
public String inPart;
@Column(name="IN_SITE")
@ApiParam("工厂代码")
public String inSite;
@Column(name="IN_TRANS_TYPE")
@ApiParam("交易类型")
public String inTransType;
@Column(name="CREATE_DATE_TIME")
@ApiParam("创建时间")
public String createDateTime;
}

@ -89,7 +89,7 @@ public class WmsCSFactTrans extends BaseBean {
@Transient
@AnnoOutputColumn(hidden = true)
@ApiParam(value = "剩余数量", example = "1")
@ApiParam(value = "差异数量", example = "1")
public Double surplusQty;
@Column
@ -132,12 +132,11 @@ public class WmsCSFactTrans extends BaseBean {
* 60=,70=,80=,90=,100=
*/
@Transient
@AnnoOutputColumn(hidden = true)
@ApiParam(value = "条码状态", example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.STOCK_SN_STATUS.class,refForeignKey = "value",value = "description")
public Integer snStatus;
@Transient
@AnnoOutputColumn(hidden = true)
@AnnoOutputColumn(refClass = WmsEnumUtil.STOCK_SN_STATUS.class,refForeignKey = "value",value = "description")
@ApiParam(value = "条码状态(冻结时)", example = "1")
public Integer destSnStatus;

@ -122,7 +122,7 @@ public class WmsCSOrderDetails extends BaseBean {
public Double factQty;
@Transient
@ApiParam(value = "剩余数量", example = "1")
@ApiParam(value = "差异数量", example = "1")
@AnnoOutputColumn(hidden = true)
public Double surplusQty;

@ -50,7 +50,7 @@ public class WmsDataMigrationConfig extends BaseBean{
@Column(name="LAST_MRGRATION_QTY")
@ApiParam(value = "末次迁移记录数", example = "0")
private Integer LastmMigrationQty;
private Integer lastmMigrationQty;
@Column(name="NEXT_EXECUTION_TIME")
@ApiParam("下次执行时间")

@ -134,6 +134,11 @@ public class WmsLocate extends BaseBean {
this.destBoxQty = destBoxQty;
}
public WmsLocate(Integer boxQty , Double partQty,String locateNo){
this.boxQty=boxQty;
this.partQty=partQty;
this.locateNo=locateNo;
}
public Integer getMaxPackageQty() {
return this.maxPackageQty == null ? 0 : this.maxPackageQty.intValue();
}

@ -125,6 +125,10 @@ public class WmsMoveDetails extends BaseBean {
@ApiParam("关联单号")
public String refSrc;
@Column(name = "GROUP_NO")
@ApiParam("分组号")
public String groupNo;
@ApiParam(value = "待出库数量", example = "0")
@Transient
private Long waitingCounts;

@ -56,170 +56,170 @@ public class WmsPart extends BaseBean {
@Column(name = "PART_TYPE_DESC")
@ApiParam(value = "物料类型描述")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String partTypeDesc;
@Column(name = "GRAPHI_NO")
@ApiParam(value = "图号")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String graphiNo;
@Column(name = "VERSION")
@ApiParam(value = "版本")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String version;
@Column(name = "COLOR")
@ApiParam(value = "颜色")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String color;
@Column(name = "STOCK_UNIT")
@ApiParam(value = "库存单位")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String stockUnit;
@Column(name = "ABC")
@ApiParam(value = "分类")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String abc;
@Column(name = "BUY_UNIT")
@ApiParam(value = "采购单位")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String buyUnit;
@Column(name = "BU2SU", columnDefinition = "decimal(18,8)")
@ApiParam(value = "换算率1", example = "1")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double bu2su;
@Column(name = "PRICE_UNIT")
@ApiParam(value = "计价单位")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String priceUnit;
@Column(name = "PU2SU", columnDefinition = "decimal(18,8)")
@ApiParam(value = "换算率2", example = "1")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double pu2su;
@Column(name = "SNP", columnDefinition = "decimal(18,8)")
@ApiParam(value = "标包", example = "1")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double snp;
@ColumnDefault("2")
@Column(name = "IQC")
@ApiParam(value = "是否免检", example = "1")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isRequire = 2)
private Integer iqc;
@Column(name = "MIN", columnDefinition = "decimal(18,8)")
@ApiParam(value = "最低库存", example = "1")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double min;
@Column(name = "MAX", columnDefinition = "decimal(18,8)")
@ApiParam(value = "最高库存", example = "1")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double max;
@Column(name = "PART_GROUP")
@ApiParam(value = "物料组")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String partGroup;
@Column(name = "LOT_CHECK_RULE")
@ApiParam(value = "批次校验规则")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String lotCheckRule;
@Column(name = "SN_CONTROL")
@ApiParam(value = "是否条码管理", example = "1")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isRequire = 2)
private Integer snControl;
@Column(name = "VENDOR_NO")
@ApiParam(value = "供应商代码")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String vendorNo;
@Column(name = "IN_LOCATE_NO")
@ApiParam(value = "默认入库库位")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String inLocateNo;
@Column(name = "PROD_CFG_TYPE_CODE")
@ApiParam("项目代码")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String prodCfgTypeCode;
@Column(name = "PROD_CFG_TYPE_NAME")
@ApiParam("项目名称")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String prodCfgTypeName;
@Column(name = "OUT_CLOSE_FLAG")
@ApiParam("項目结算标识")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String outCloseFlag = "2";
@Column(name = "OUT_CLOSE_TYPE")
@ApiParam("结算方式")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String outCloseType;
@Column(name = "OUT_CLOSE_VENDOR")
@ApiParam("结算供应商")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String outCloseVendor;
@Column(name = "QUALITY_DAYS")
@ApiParam("保质期天数")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Integer qualityDays;
@Column(name = "IS_REPORT_PARTNO")
@ApiParam("是否报工零件")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isRequire = 2)
private Integer isReportPartNo;
@Column(name = "REPORT_LOCATE_NO")
@ApiParam("报工库位")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String reportLocateNo;
@Column(name = "REPORT_ZONE_NO")
@ApiParam("报工存储区")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String reportZoneNo;
@Column(name = "PRODUCT_LINES")
@ApiParam("报工产线")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String productLines;
@Column(name = "PROPORTION", columnDefinition = "decimal(10,5)")
@ApiParam(value = "待质检比例", example = "1")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double proportion;
@Column(name = "IS_VALUABLE", columnDefinition = "int default 2")
@ApiParam(value = "是否贵重")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isRequire = 2)
@AnnoOutputColumn(refClass = WmsEnumUtil.IS_VALUABLE.class, refForeignKey = "value", value = "description")
private Integer isValuable;
@Transient
@ApiParam("总数量")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double qty;
@Transient
@ApiParam("库存水平")
@AnnoOutputColumn(refClass = WmsEnumUtil.STOCK_LEVEL_STATUS.class, refForeignKey = "value", value = "description")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String stockLevelStatus;
@Column(name="verb_num")
@ -227,23 +227,23 @@ public class WmsPart extends BaseBean {
private Double verbNum;
@Column(name = "IS_PROD_LOT")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isRequire = 2)
@ApiParam(value = "是否录入生产批次", example = "1")
private Integer isProdLot = 2;
@Column(name = "PULL_WAY")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isRequire = 2)
@ApiParam(value = "拉动方式", example = "0")
private Integer pullWay = 0;
@Column(name = "CYCLE_RQUEST_PERIOD")
@ApiParam(value = "循环补货周期", example = "0")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Integer cycleRquestPeriod = 0;
@Column(name = "CYCLE_RQUEST_QTY")
@ApiParam(value = "循环补货数量", example = "0")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double cycleRquestQty = 0d;
public int getIqcVal(){

@ -10,6 +10,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
/**
@ -33,7 +34,7 @@ public class WmsPushConfig extends BaseBean{
@Column(name = "PUSH_NAME")
private String pushName;
@ApiParam("规则类型")
@ApiParam("规则表达式")
@Column(name = "QUARTZ_CRON")
private String quartzCron;
@ -49,10 +50,12 @@ public class WmsPushConfig extends BaseBean{
@Column(name = "SERIAL_NUMBER")
private Integer serialNumber;
@Lob
@ApiParam("查询Hql")
@Column(name = "HQL_STR")
private String hqlStr;
@Lob
@ApiParam("查询Sql")
@Column(name = "SQL_STR")
private String sqlStr;
@ -61,10 +64,12 @@ public class WmsPushConfig extends BaseBean{
@Column(name = "SCRIPT_NO")
private String scriptNo;
@Lob
@ApiParam("标题模板")
@Column(name = "TITLE_TEMPLATE")
private String titleTemplate;
@Lob
@ApiParam("消息体模板")
@Column(name = "CONTENT_TEMPLATE")
private String contentTemplate;

@ -10,6 +10,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
/**
@ -29,24 +30,23 @@ import javax.persistence.Table;
public class WmsPushLog extends BaseBean{
private static final long serialVersionUID = -1708833666516164845L;
@Column(name = "EXE_HQL")
@ApiParam("执行Hql")
private String exeHql;
@Column(name = "PUSH_TITLE")
@ApiParam("推送标题")
private String pushTitle;
@Lob
@Column(name = "PUSH_CONTENT")
@ApiParam("推送内容")
private String pushContent;
@Column(name = "PUSH_TYPE")
@ApiParam("推送类型")
private String pushType;
private Integer pushType;
@Column(name = "PATH_URL")
@ApiParam("推送地址")
private String pathUrl;
@Column(name = "PUSH_RESULT")
@ApiParam("推送结果")
private String pushResult;
}

@ -286,6 +286,10 @@ public class WmsStockSn extends BaseBean {
@ApiParam("打印模板名称")
private String templateName;
@Transient
@ApiParam("是否同批次条码")
private Integer isSameBatch;
public WmsStockSn() {
}

@ -77,4 +77,8 @@ public class WmsListElement extends BaseBean {
@Column(name = "USER_CODE")
@ApiParam(value = "用户编号")
private String userCode;
@Column(name = "FUNCTION_ID")
@ApiParam(value = "功能菜单ID")
private Long functionId;
}

@ -8,10 +8,7 @@ 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;
import javax.persistence.*;
/**
* @Description : WMS
@ -62,4 +59,14 @@ public class WmsSearchElement extends BaseBean {
@Column(name = "USER_CODE")
@ApiParam(value = "用户编号")
private String userCode;
/**
*
*/
private String groupName;
/**
*
*/
private String groupConnector;
}

@ -1,15 +1,16 @@
package cn.estsh.i3plus.pojo.wms.modelbean;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.List;
import java.util.Map;
@Data
public class MailMessageModel extends PushMessageModel {
//附加value 文件的绝对地址/动态模板数据
private Map<String, Object> attachment;
//推送数据
@ApiParam("推送数据集合")
List dataList;
}

@ -1,5 +1,7 @@
package cn.estsh.i3plus.pojo.wms.modelbean;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.List;
@ -9,17 +11,23 @@ import java.util.Map;
public class PushMessageModel {
//标题
@ApiParam("标题")
public String title;
//内容
@ApiParam("内容")
public String content;
//推送类型
//推送类型-枚举 WmsEnumUtil.PUSH_TYPE
@ApiParam("推送类型")
public String pushType;
//推送地址
//推送地址,邮箱以逗号分割
@ApiParam("推送地址")
public String pathUrl;
//推送数据
List<Map<Object,Object>> dataList;
@ApiParam("工厂代码")
private String organizeCode;
}

@ -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.QadBop;
/**
* @Description :
* @Reference :
* @Author : jimmy.zeng
* @CreateDate : 2020-01-09 15:06
* @Modify:
**/
public interface QadBopRepository extends BaseRepository<QadBop, 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.QadItemPacking;
/**
* @Description :
* @Reference :
* @Author : jimmy.zeng
* @CreateDate : 2020-01-09 15:06
* @Modify:
**/
public interface QadItemPackingRepository extends BaseRepository<QadItemPacking, Long> {
}

@ -32,6 +32,8 @@
<module>modules/i3plus-pojo-sweb</module>
<module>modules/i3plus-pojo-andon</module>
<module>modules/i3plus-pojo-lac</module>
<module>modules/i3plus-pojo-ptl</module>
<module>modules/i3plus-pojo-ptl-pcn</module>
</modules>
<dependencies>

Loading…
Cancel
Save