Merge remote-tracking branch 'origin/dev' into dev

yun-zuoyi
汪云昊 5 years ago
commit f09159dffa

@ -13,6 +13,7 @@
<artifactId>i3plus-pojo-aps</artifactId> <artifactId>i3plus-pojo-aps</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>i3plus.pojo</groupId> <groupId>i3plus.pojo</groupId>

@ -82,7 +82,8 @@ public abstract class BaseBean implements Serializable {
@Column(name="CREATE_USER",updatable = false) @Column(name="CREATE_USER",updatable = false)
@ApiParam(value = "创建用户") @ApiParam(value = "创建用户")
@AnnoOutputColumn(hidden = true) @AnnoOutputColumn(hidden = true)
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, selectRule = WmsEnumUtil.DYNAMIC_FIELD_SELECT_RULE.SINGLE_URL,
isRequire = 2, entityName = "/wms/inner-order/query/user-list", listColumnName = "name", explicitColumnName = "name")
public String createUser; public String createUser;
@Indexed(direction = IndexDirection.DESCENDING) @Indexed(direction = IndexDirection.DESCENDING)
@ -94,7 +95,8 @@ public abstract class BaseBean implements Serializable {
@Column(name="MODIFY_USER") @Column(name="MODIFY_USER")
@ApiParam(value = "修改人") @ApiParam(value = "修改人")
@AnnoOutputColumn(hidden = true) @AnnoOutputColumn(hidden = true)
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, selectRule = WmsEnumUtil.DYNAMIC_FIELD_SELECT_RULE.SINGLE_URL,
isRequire = 2, entityName = "/wms/inner-order/query/user-list", listColumnName = "name", explicitColumnName = "name")
public String modifyUser; public String modifyUser;
@Column(name="MODIFY_DATE_TIME") @Column(name="MODIFY_DATE_TIME")

@ -38,7 +38,7 @@ public class CommonEnumUtil {
HARDSWITCH(25, 0, 0, "block-hardswitch", "硬件适配器"), HARDSWITCH(25, 0, 0, "block-hardswitch", "硬件适配器"),
LAC(26, 8600, 13, "lac", "连接适配器"), LAC(26, 8600, 13, "lac", "连接适配器"),
ANDON(27, 8500, 14, "andon", "安灯"), ANDON(27, 8500, 14, "andon", "安灯"),
APS(28, 8400, 15, "i3aps", "高级计划与排"), APS(28, 8400, 15, "i3aps", "高级计划与排"),
CENTER(99, 8000, 1, "icloud-server", "注册中心"), CENTER(99, 8000, 1, "icloud-server", "注册中心"),
SURFACE(98, 0, 0, "i3surface", "对外服务"), SURFACE(98, 0, 0, "i3surface", "对外服务"),
CLOUD(97, 0, 0, "i3cloud", "微服务"), CLOUD(97, 0, 0, "i3cloud", "微服务"),

@ -13,6 +13,74 @@ import com.fasterxml.jackson.annotation.JsonFormat;
public class MesEnumUtil { public class MesEnumUtil {
/** /**
*
*/
public enum ASC_OR_DESC {
ASC(1, "正序"), DESC(2, "倒序");
private int value;
private String description;
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
private ASC_OR_DESC(int value, String description) {
this.value = value;
this.description = description;
}
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 MONITOR_TASK_DETAIL_COLLECT_TYPE {
SELF_ADDITION(10, "自增列"),
FEED_FIELD(20, "反馈字段");
private int value;
private String description;
MONITOR_TASK_DETAIL_COLLECT_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;
}
}
/**
* -module * -module
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -1735,7 +1803,8 @@ public class MesEnumUtil {
MES_PLC(390, "PLC地址清单"), MES_PLC(390, "PLC地址清单"),
MES_PROCESS(400, "工序信息"), MES_PROCESS(400, "工序信息"),
MES_KPSN_RULE(410, "关键件条码校验规则"), MES_KPSN_RULE(410, "关键件条码校验规则"),
MES_QUEUE_JIT_ACTUAL(420, "客户JIT生产队列"); MES_QUEUE_JIT_ACTUAL(420, "客户JIT生产队列"),
MES_PART_BOM_IMPORT(430, "散件BOM导入");
private int value; private int value;
private String description; private String description;
@ -1812,18 +1881,18 @@ public class MesEnumUtil {
} }
/** /**
* mes- * mes-
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_EQU_TASK_NOTIFY_CFG_PATTERN { public enum NOTIFY_CFG_PATTERN {
EMAIL(10, "邮件"), EMAIL(10, "邮件");
USERPHONE(20, "手机号"); // USERPHONE(20, "手机号");
private int value; private int value;
private String description; private String description;
MES_EQU_TASK_NOTIFY_CFG_PATTERN(int value, String description) { NOTIFY_CFG_PATTERN(int value, String description) {
this.value = value; this.value = value;
this.description = description; this.description = description;
} }
@ -4164,8 +4233,8 @@ public class MesEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MONITOR_TASK_OBJECT_TYPE { public enum MONITOR_TASK_OBJECT_TYPE {
PLC(10, "PLC"); PLC(10, "PLC"),
// DB(20, "DB"); DB(20, "DB");
private int value; private int value;
private String description; private String description;
@ -4645,4 +4714,137 @@ public class MesEnumUtil {
return tmp; return tmp;
} }
} }
/**
*
* 10=Groovy, 20=Jython, 30=JavaScript, 40=Scala, 50=JRuby
*/
public enum LANGUAGE_TYPE {
GROOVY(1, "Groovy", 10),
PYTHON(2, "jython", 20), // "jython" string can not change
JS(3, "JavaScript", 30);
// 下面这2种语言没人会写暂不支持
//SCALA(40,"scala"),
//JRUBY(50,"jruby");
private int index;
private String description;
private int value;
LANGUAGE_TYPE(int index, String description, int value) {
this.index = index;
this.description = description;
this.value = value;
}
public String getDescription() {
return description;
}
public int getIndex() {
return this.index;
}
public int getValue() {
return value;
}
// 根据枚举编号获取语言代码
public static String getCodeByIndex(Integer index) {
for (MesEnumUtil.LANGUAGE_TYPE languageType : MesEnumUtil.LANGUAGE_TYPE.values()) {
if (languageType.getValue() == index.intValue()) {
return languageType.getDescription();
}
}
return null;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PART_TRAIT {
NORMAL(10, "正常件"),
FICTITIOUS_ASSEMBLY(20, "虚拟散件总成"),
FICTITIOUS_HALF_ASSEMBLY(30, "虚拟散件半总成");
private int value;
private String description;
PART_TRAIT(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 String valueOfDescription2(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description.equals("已审批") ? "审批" : values()[i].description;
}
}
return tmp;
}
}
/**
*
*/
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PROD_CFG_TYPE {
NORMAL("10", "正常"),
SCATTERED("20", "散件");
private String value;
private String description;
PROD_CFG_TYPE(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value.equals(val)) {
tmp = values()[i].description;
}
}
return tmp;
}
}
} }

@ -3351,14 +3351,16 @@ public class MesPcnEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum STATION_REQUEST_BEAN_CMD { public enum STATION_REQUEST_BEAN_CMD {
JUMP_STATUS(10, "跳过状态点"), JUMP_STATE(10, "JUMP_STATE", "跳过状态点"),
FORCE_DO_SPEC_STATUS(20, "强制执行制定的状态点"); FORCE_STATE(20, "FORCE_STATE", "强制执行制定的状态点");
private int value; private int value;
private String code;
private String description; private String description;
STATION_REQUEST_BEAN_CMD(int value, String description) { STATION_REQUEST_BEAN_CMD(int value, String code, String description) {
this.value = value; this.value = value;
this.code = code;
this.description = description; this.description = description;
} }
@ -3366,6 +3368,10 @@ public class MesPcnEnumUtil {
return value; return value;
} }
public String getCode() {
return code;
}
public String getDescription() { public String getDescription() {
return description; return description;
} }
@ -3416,4 +3422,77 @@ public class MesPcnEnumUtil {
return tmp; return tmp;
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DIE_CHANGE_STATUS {
INITIALIZATION(0, "初始化"),
START(1, "开始换模"),
COMPLETE(2, "完成换模");
private int value;
private String description;
DIE_CHANGE_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 LOAD_FSM_ROUTE_TYPE {
BY_PART("0", "通过物料号加载"),
BY_AUTO("1", "自动加载");
private String value;
private String description;
LOAD_FSM_ROUTE_TYPE(String value, String description) {
this.value = value;
this.description = description;
}
public String 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.equals(val)) {
tmp = values()[i].description;
}
}
return tmp;
}
}
} }

@ -11,6 +11,113 @@ import com.fasterxml.jackson.annotation.JsonFormat;
public class PtlEnumUtil { public class PtlEnumUtil {
/** /**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ACTION_ROUTE_TYPE {
GEN_TASK(10, "GEN_TASK", "生成任务"),
OFF_TAG(20, "OFF_TAG", "灭灯");
private int value;
private String code;
private String description;
ACTION_ROUTE_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)
public enum ROUTE_EVENT {
TRIGGER(10, "trigger", "触发"),
ENTRY(20, "entry", "进入状态"),
EXIT(30, "exit", "离开状态");
private int value;
private String code;
private String description;
ROUTE_EVENT(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)
public enum ACTION_MODULE_PARAM_TYPE {
QUALIFIED(10, "number", "数字"),
DEFECTED(20, "text", "字符串"),
SCRAPED(30, "select", "可选值"),
BUTTON(40, "button", "按钮");
private int value;
private String code;
private String description;
ACTION_MODULE_PARAM_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;
}
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) @JsonFormat(shape = JsonFormat.Shape.OBJECT)

@ -3,6 +3,8 @@ package cn.estsh.i3plus.pojo.base.enumutil;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import static cn.estsh.i3plus.pojo.base.enumutil.PtlPcnEnumUtil.MONITOR_PROCESS_MESSAGE_TYPE.*;
/** /**
* @author Wynne.Lu * @author Wynne.Lu
* @date 2020/2/12 17:41 * @date 2020/2/12 17:41
@ -547,8 +549,11 @@ public class PtlPcnEnumUtil {
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RouteEvent { public enum ROUTE_EVENT {
TRIGGER(10, "trigger", "触发"), TRIGGER(10, "trigger", "触发"),
ENTRY(20, "entry", "进入状态"), ENTRY(20, "entry", "进入状态"),
EXIT(30, "exit", "离开状态"); EXIT(30, "exit", "离开状态");
@ -557,7 +562,7 @@ public class PtlPcnEnumUtil {
private String code; private String code;
private String description; private String description;
RouteEvent(int value, String code, String description) { ROUTE_EVENT(int value, String code, String description) {
this.value = value; this.value = value;
this.code = code; this.code = code;
this.description = description; this.description = description;
@ -576,8 +581,11 @@ public class PtlPcnEnumUtil {
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RouteState { public enum ROUTE_STATE {
START(10, "START", "开启流程"), START(10, "START", "开启流程"),
TERMINATE(20, "TERMINATE", "终止流程"), TERMINATE(20, "TERMINATE", "终止流程"),
FINISH(30, "FINISH", "结束流程"); FINISH(30, "FINISH", "结束流程");
@ -586,7 +594,7 @@ public class PtlPcnEnumUtil {
private String code; private String code;
private String description; private String description;
RouteState(int value, String code, String description) { ROUTE_STATE(int value, String code, String description) {
this.value = value; this.value = value;
this.code = code; this.code = code;
this.description = description; this.description = description;
@ -605,6 +613,9 @@ public class PtlPcnEnumUtil {
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TAG_TYPE { public enum TAG_TYPE {
BIN_TAG(10, "库位标签"), BIN_TAG(10, "库位标签"),
@ -639,15 +650,18 @@ public class PtlPcnEnumUtil {
} }
} }
/**
* -
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TriggerType { public enum TRIGGER_TYPE {
INNER_TRIGGER(10, "内部触发"), INNER_TRIGGER(10, "内部触发"),
OUTER_TRIGGER(20, "外部触发"); OUTER_TRIGGER(20, "外部触发");
private int value; private int value;
private String description; private String description;
TriggerType(int value, String description) { TRIGGER_TYPE(int value, String description) {
this.value = value; this.value = value;
this.description = description; this.description = description;
} }
@ -661,8 +675,11 @@ public class PtlPcnEnumUtil {
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RouteType { public enum ACTION_ROUTE_TYPE {
GEN_TASK(10, "GEN_TASK", "生成任务"), GEN_TASK(10, "GEN_TASK", "生成任务"),
OFF_TAG(20, "OFF_TAG", "灭灯"); OFF_TAG(20, "OFF_TAG", "灭灯");
@ -670,7 +687,7 @@ public class PtlPcnEnumUtil {
private String code; private String code;
private String description; private String description;
RouteType(int value, String code, String description) { ACTION_ROUTE_TYPE(int value, String code, String description) {
this.value = value; this.value = value;
this.code = code; this.code = code;
this.description = description; this.description = description;
@ -689,6 +706,9 @@ public class PtlPcnEnumUtil {
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MONITOR_PROCESS_MESSAGE_TYPE { public enum MONITOR_PROCESS_MESSAGE_TYPE {
CONNECT_CONTROL_CMD(10, "CONNECT_CONTROL_CMD", "connectControlService", "连接控制器"), CONNECT_CONTROL_CMD(10, "CONNECT_CONTROL_CMD", "connectControlService", "连接控制器"),
@ -732,7 +752,7 @@ public class PtlPcnEnumUtil {
if (StringUtils.isEmpty(code)) { if (StringUtils.isEmpty(code)) {
return null; return null;
} }
for (MONITOR_PROCESS_MESSAGE_TYPE enums : MONITOR_PROCESS_MESSAGE_TYPE.values()) { for (MONITOR_PROCESS_MESSAGE_TYPE enums : values()) {
if (enums.getCode().equals(code)) { if (enums.getCode().equals(code)) {
return enums; return enums;
} }
@ -741,6 +761,9 @@ public class PtlPcnEnumUtil {
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum INTERFACE_SIGNAL_MESSAGE_TYPE { public enum INTERFACE_SIGNAL_MESSAGE_TYPE {
CONNECT_CONTROL_CMD(10, "CONNECT_CONTROL_CMD", "connectControlService", "连接控制器"), CONNECT_CONTROL_CMD(10, "CONNECT_CONTROL_CMD", "connectControlService", "连接控制器"),
@ -794,7 +817,7 @@ public class PtlPcnEnumUtil {
} }
/** /**
* actor message type *
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum GEN_TASK_MESSAGE_TYPE { public enum GEN_TASK_MESSAGE_TYPE {
@ -841,8 +864,11 @@ public class PtlPcnEnumUtil {
} }
} }
/**
* websocket
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WsBusiType { public enum WS_BUSI_TYPE {
MONITOR_PROCESS(10, "MONITOR_PROCESS", "控制器相关"), MONITOR_PROCESS(10, "MONITOR_PROCESS", "控制器相关"),
INTERFACE_PROCESS(20, "INTERFACE_PROCESS", "界面处理"); INTERFACE_PROCESS(20, "INTERFACE_PROCESS", "界面处理");
@ -850,7 +876,7 @@ public class PtlPcnEnumUtil {
private String code; private String code;
private String description; private String description;
WsBusiType(int value, String code, String description) { WS_BUSI_TYPE(int value, String code, String description) {
this.value = value; this.value = value;
this.description = description; this.description = description;
this.code = code; this.code = code;
@ -869,8 +895,11 @@ public class PtlPcnEnumUtil {
} }
} }
/**
* websocket
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WsDataType { public enum WS_DATA_TYPE {
TEXT(10, "TEXT", "正常信息"), TEXT(10, "TEXT", "正常信息"),
EXP_TEXT(20, "EXP_TEXT", "异常信息"), EXP_TEXT(20, "EXP_TEXT", "异常信息"),
TABLE(30, "TABLE", "表格"); TABLE(30, "TABLE", "表格");
@ -879,7 +908,7 @@ public class PtlPcnEnumUtil {
private String code; private String code;
private String description; private String description;
WsDataType(int value, String code, String description) { WS_DATA_TYPE(int value, String code, String description) {
this.value = value; this.value = value;
this.code = code; this.code = code;
this.description = description; this.description = description;
@ -898,6 +927,9 @@ public class PtlPcnEnumUtil {
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum STATUS_TYPE { public enum STATUS_TYPE {
START(10, "START", "开始状态"), START(10, "START", "开始状态"),

@ -5906,4 +5906,49 @@ public class WmsEnumUtil {
return tmp; return tmp;
} }
} }
/**
*
* 10
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DOCK_TYPE {
WAIT_SEND(10, "收货道口"),
HAS_SENDED(20, "发运道口");
private int value;
private String description;
DOCK_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static DOCK_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;
}
}
} }

@ -21,6 +21,23 @@ import java.util.Map;
public interface BaseRepository <T, ID extends Serializable> extends JpaRepository<T, ID> { public interface BaseRepository <T, ID extends Serializable> extends JpaRepository<T, ID> {
/** /**
* service
*/
void clearSession();
/**
*
* @param t
*/
void detachObject(T t);
/**
*
* @param list
*/
void detachList(List<T> list);
/**
* <br/> * <br/>
* idlong0 * idlong0
* uuid * uuid

@ -48,6 +48,24 @@ public class BaseRepositoryImpl<T, ID extends Serializable> extends SimpleJpaRep
this.snowflakeIdMaker = snowflakeIdMaker; this.snowflakeIdMaker = snowflakeIdMaker;
} }
public void clearSession(){
entityManager.clear();
}
public void detachObject(T t){
entityManager.detach(t);
}
//集合设置为游离态
public void detachList(List<T> list){
if(list != null){
for(T t : list) {
//设置对象为游离态
entityManager.detach(t);
}
}
}
private void setParameter(Query query, String[] propName, Object[] propValue) { private void setParameter(Query query, String[] propName, Object[] propValue) {
String name = null; String name = null;
Object value = null; Object value = null;

@ -13,6 +13,7 @@
<artifactId>i3plus-pojo-form</artifactId> <artifactId>i3plus-pojo-form</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<dependencies> <dependencies>
<dependency> <dependency>

@ -13,6 +13,7 @@
<artifactId>i3plus-pojo-jobflow</artifactId> <artifactId>i3plus-pojo-jobflow</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<profiles> <profiles>
<profile> <profile>
<id>dev</id> <id>dev</id>

@ -0,0 +1,103 @@
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 : amy
* @CreateDate : 2018-11-07 14:21
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="BAS_VENDOR")
@Api("供应商信息")
public class BasVendor extends BaseBean{
private static final long serialVersionUID = 9214639813072592779L;
@Column(name="VENDOR_NO")
@ApiParam("供应商编号")
private String vendorNo;
@Column(name="VENDOR_NAME")
@ApiParam("供应商简称")
private String vendorName;
@Column(name="VENDOR_DESC")
@ApiParam("供应商全称")
private String vendorDesc;
@Column(name="VENDOR_ADDR")
@ApiParam("供应商地址")
private String vendorAddr;
@Column(name="VENDOR_OWNER")
@ApiParam("联系人")
private String vendorOwner;
@Column(name="VENDOR_EMAIL")
@ApiParam("邮箱")
private String vendorEmail;
@Column(name = "IS_ASN")
@ApiParam(value = "是否发ASN", example = "0")
private Integer isAsn;
@Column(name = "USER_NAME")
@ApiParam(value = "用户名")
private String userName;
@Column(name = "PASSWORD")
@ApiParam(value = "密码")
private String password;
@Column(name = "VENDOR_CALL")
@ApiParam("供应商电话")
private String vendorCall;
@Column(name = "VENDOR_FAX")
@ApiParam("传真")
private String vendorFax;
@Column(name = "VENDOR_PHONE")
@ApiParam("手机")
private String vendorPhone;
@Column(name = "KILOBIT")
@ApiParam("千位符号")
private String kilobit;
@Column(name = "DECIMALS")
@ApiParam("小数位符号")
private String decimals;
//20-承运商
@Column(name = "VENDOR_TYPE")
private Integer vendorType;
@Column(name = "MAP_LOCATION")
@ApiParam("经纬度")
private String mapLocation;
public BasVendor() {
}
public BasVendor(Long id, String userName) {
this.id = id;
this.userName = userName;
}
}

@ -79,13 +79,12 @@ public class IfQueueShipping extends BaseBean implements Serializable {
@ApiParam("异常消息") @ApiParam("异常消息")
private String errorMessage; private String errorMessage;
@Column(name = "ACTION_CODE") @Column(name = "ACTION_CODE")
@ApiParam("动作代码") @ApiParam("动作代码")
private String actionCode; private String actionCode;
@Column(name = "IF_CODE") @Column(name = "IF_CODE")
@ApiParam("接口代码") @ApiParam("接口代码")
private Integer ifCode; private String ifCode;
} }

@ -0,0 +1,63 @@
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.Lob;
import javax.persistence.Table;
import java.io.Serializable;
/**
* @Author: wangjie
* @CreateDate: 2020/04/03 7:12 PM
* @Description:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_DATA_WARNING")
@Api("数据预警配置")
public class MesDataWarning extends BaseBean implements Serializable {
private static final long serialVersionUID = -8328008752104417017L;
@Column(name = "OBJECT_CODE")
@ApiParam("对象代码")
private String objectCode;
@Column(name = "WARNING_RULE")
@ApiParam("预警规则")
private String warningRule;
@Column(name = "CHECK_TIME")
@ApiParam("校验时间")
private String checkTime;
@Column(name = "QTY")
@ApiParam("数据量最大限制(分钟)")
private Integer qty;
@Column(name = "WARNING_ITEM")
@ApiParam("预警内容项")
private String warningItem;
@Column(name = "INFORM_MODE")
@ApiParam("通知方式")
private Integer informMode;
@Lob
@Column(name = "INFORM_USER")
@ApiParam("通知对象")
private String informUser;
}

@ -37,6 +37,10 @@ public class MesDefectRecord extends BaseBean implements Serializable {
@ApiParam("产品条码") @ApiParam("产品条码")
private String serialNumber; private String serialNumber;
@Column(name = "WORK_ORDER_NO")
@ApiParam("生产工单号")
private String workOrderNo;
@Column(name = "PART_NO") @Column(name = "PART_NO")
@ApiParam("物料号") @ApiParam("物料号")
private String partNo; private String partNo;
@ -77,6 +81,11 @@ public class MesDefectRecord extends BaseBean implements Serializable {
@ApiParam("备注") @ApiParam("备注")
private String memo; private String memo;
// @Column(name = "WORK_ORDER_NO")
// @ApiParam("工单号")
// private String workOrderNo;
@Transient @Transient
private List<MesDefect> mesDefectList; private List<MesDefect> mesDefectList;

@ -56,6 +56,10 @@ public class MesDismantleRecord extends BaseBean implements Serializable {
@ApiParam("产品条码") @ApiParam("产品条码")
private String sn; private String sn;
@Column(name = "WORK_ORDER_NO")
@ApiParam("生产工单号")
private String workOrderNo;
@Column(name = "QTY") @Column(name = "QTY")
@ApiParam("产品数量") @ApiParam("产品数量")
private Double qty; private Double qty;
@ -92,6 +96,10 @@ public class MesDismantleRecord extends BaseBean implements Serializable {
@ApiParam("关联批次") @ApiParam("关联批次")
private String lotNo; private String lotNo;
// @Column(name = "WORK_ORDER_NO")
// @ApiParam("工单号")
// private String workOrderNo;
@Transient @Transient
private String serialNumber; private String serialNumber;
} }

@ -92,6 +92,10 @@ public class MesPart extends BaseBean implements Serializable {
@ApiParam("产品类型名称") @ApiParam("产品类型名称")
private String pptCode; private String pptCode;
@Column(name = "PART_TRAIT")
@ApiParam("物料特性")
private Integer partTrait;
@Transient @Transient
@ApiParam("产品类型名称") @ApiParam("产品类型名称")
private String produceCategoryName; private String produceCategoryName;

@ -53,7 +53,7 @@ public class MesPartCheck extends BaseBean implements Serializable {
private String recordNumSpelExpress; private String recordNumSpelExpress;
@Column(name = "RECORD_NUM_DESC") @Column(name = "RECORD_NUM_DESC")
@ApiParam("校验表达式") @ApiParam("校验表达式描述")
private String recordNumDesc; private String recordNumDesc;
} }

@ -2,6 +2,7 @@ package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.mes.model.ProductDataModel;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -127,7 +128,7 @@ public class MesPlc extends BaseBean implements Serializable {
@Transient @Transient
@ApiParam("OPC值") @ApiParam("OPC值")
private String opcValue; private List<ProductDataModel> opcValue;
@Column(name = "TOOLING_CODE ") @Column(name = "TOOLING_CODE ")
@ApiParam("工装代码") @ApiParam("工装代码")

@ -123,6 +123,7 @@ public class MesProduceSn extends BaseBean implements Serializable {
@ApiParam("条码类型 10=正常 20=首检件") @ApiParam("条码类型 10=正常 20=首检件")
private Integer snType; private Integer snType;
@Column(name = "TRAY_NO") @Column(name = "TRAY_NO")
@ApiParam("托盘号") @ApiParam("托盘号")
private String trayNo; private String trayNo;
@ -164,6 +165,8 @@ public class MesProduceSn extends BaseBean implements Serializable {
@ApiParam("条码类型名称") @ApiParam("条码类型名称")
private String snTypeName; private String snTypeName;
public MesProduceSn() { public MesProduceSn() {
} }

@ -82,6 +82,10 @@ public class MesQueueJitActual extends BaseBean implements Serializable {
@ApiParam("生产组代码") @ApiParam("生产组代码")
private String pgCode; private String pgCode;
@Column(name = "JIT_SEQ")
@ApiParam("JIT排序号")
private String jitSeq;
@Transient @Transient
@ApiParam("客户需求开始时间") @ApiParam("客户需求开始时间")
private String custPointStartDate; private String custPointStartDate;

@ -92,6 +92,14 @@ public class MesQueueOrder extends BaseBean implements Serializable {
@ApiParam("生产组代码") @ApiParam("生产组代码")
private String pgCode; private String pgCode;
@Column(name = "JIT_LOT_NO")
@ApiParam("JIT队列批次")
private String jitLotNo;
@Column(name = "JIT_ACTUAL_NO")
@ApiParam("客户JIT队列编号")
private String jitActualNo;
@Transient @Transient
@ApiParam("起始车号") @ApiParam("起始车号")
private String custFlagNoStart; private String custFlagNoStart;

@ -0,0 +1,66 @@
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 :MES_JIT
* @Reference :
* @Author : qianhausheng
* @CreateDate : 2020-03-06 10:16
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_QUEUE_SHIPPING")
@Api("MES_JIT发运队列")
public class MesQueueShipping extends BaseBean implements Serializable {
private static final long serialVersionUID = 655875369308414110L;
@Column(name = "JIT_NO")
@ApiParam("队列编号")
private String jitNo;
@Column(name = "PROD_CFG_CODE")
@ApiParam("配置代码")
private String prodCfgCode;
@Column(name = "VIN_CODE")
@ApiParam("vin")
private String vinCode;
@Column(name = "CUST_FLAG_NO")
@ApiParam("客户标识号")
private String custFlagNo;
@Column(name = "SEQ")
@ApiParam("排序号")
private Double seq;
@Column(name = "STATUS")
@ApiParam("状态")
private Integer status;
@Column(name = "CUST_CODE")
@ApiParam("客户代码")
private String custCode;
@Column(name = "CUST_PLANT_CODE")
@ApiParam("客户产线代码")
private String custPlantCode;
}

@ -0,0 +1,73 @@
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 :MES_JIT
* @Reference :
* @Author : qianhausheng
* @CreateDate : 2020-03-06 10:16
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_QUEUE_SHIPPING_DETAIL")
@Api("MES_JIT发运队列明细")
public class MesQueueShippingDetail extends BaseBean implements Serializable {
private static final long serialVersionUID = 1442091799346314190L;
@Column(name = "JIT_NO")
@ApiParam("队列编号")
private String jitNo;
@Column(name = "PROD_CFG_CODE")
@ApiParam("配置代码")
private String prodCfgCode;
@Column(name = "PART_NO")
@ApiParam("物料号")
private String partNo;
@Column(name = "PART_NAME_RDD")
@ApiParam("物料名称")
private String partNameRdd;
@Column(name = "status")
@ApiParam("状态")
private Integer status;
@Column(name="SERIAL_NUMBER")
@ApiParam("过程条码")
private String serialNumber;
@Column(name = "QUEUE_GROUP_NO")
@ApiParam("分组队列编号")
private String queueGroupNo;
@Column(name = "GROUP_NO")
@ApiParam("组内编号")
private Integer groupNo;
@Column(name = "GROUP_SEQ")
@ApiParam("分组序号")
private String groupSeq;
@Column(name = "qty")
@ApiParam("数量")
private Double qty;
}

@ -33,6 +33,10 @@ public class MesStateMachineStatus extends BaseBean implements Serializable {
@ApiParam("状态机代码") @ApiParam("状态机代码")
private String smCode; private String smCode;
@Column(name = "ROUTE_CODE")
@ApiParam("流程代码")
private String routeCode;
@Column(name = "STATUS_CODE") @Column(name = "STATUS_CODE")
@ApiParam("状态代码") @ApiParam("状态代码")
private String statusCode; private String statusCode;

@ -11,6 +11,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
import java.util.List;
/** /**
* @Description: * @Description:
@ -187,6 +188,10 @@ public class MesWorkOrder extends BaseBean implements Serializable {
private String areaCodeName; private String areaCodeName;
@Transient @Transient
@ApiParam("状态-下达,启动,暂停")
private List<Integer> statusList;
@Transient
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiParam(value = "计划开始日期查询用,查询开始日期", example = "2018-12-31 23:59:59") @ApiParam(value = "计划开始日期查询用,查询开始日期", example = "2018-12-31 23:59:59")
public String startTimeStart; public String startTimeStart;
@ -219,6 +224,18 @@ public class MesWorkOrder extends BaseBean implements Serializable {
@ApiParam("批量打包开窗页面查询工单=1") @ApiParam("批量打包开窗页面查询工单=1")
private String pageType; private String pageType;
@Transient
@ApiParam("产品批次")
private String productBatch;
@Transient
@ApiParam("工单类型描述")
private String workOrderTypeDesc;
@Transient
@ApiParam("工单状态描述")
private String workOrderStatusDesc;
public double getQtyVal() { public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty; return this.qty == null ? 0.0d : this.qty;
} }

@ -0,0 +1,50 @@
package cn.estsh.i3plus.pojo.mes.dbinterface;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* Mes - SAP
*
*
* @author Rock.Yu
* @since 2019-06-09 21:06
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MappingItem {
/**
*
*/
public String srcName;
/**
*
*/
public String destBeanName;
/**
*
*/
public String destName;
/**
*
* 1=
*/
public Integer destPk;
/**
*
* 使 #date, #time, #guid, #Q.warehouse(#zone)
*/
public Object defaultValue;
@Override
public String toString() {
return "srcName:"
+ this.srcName + ", destBeanName:"
+ this.destBeanName + ", destName"
+ this.destName + ", defaultValue:"
+ this.defaultValue + ", destPk:"
+ this.destPk;
}
}

@ -0,0 +1,161 @@
package cn.estsh.i3plus.pojo.mes.dbinterface;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* Mes - SAP
*
* @author Rock.Yu
* @since 2019-06-09 20:08
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_INTERFACE_DATA_MAPPER")
@Api("接口数据映射")
public class MesInterfaceDataMapper extends BaseBean {
/**
*
*/
@Column(name = "SEQ")
public Integer seq;
/**
*
*/
@Column(name = "SRC_GET_LIMIT")
public Integer srcGetLimit;
/**
*
*/
@Column(name = "SRC_DATA_SOURCE", length = 50)
public String dataSource;
/**
*
*/
@Column(name = "SRC_TABLE_NAME", length = 50)
public String srcTableName;
/**
*
*/
@Column(name = "SRC_ORDER_BY", length = 50)
public String srcOrderBy;
/**
*
*/
@Column(name = "SRC_WHERE", length = 500)
public String srcWhere;
/**
*
*/
@Column(name = "SRC_GROUP_COLUMNS", length = 255)
public String srcGroupColumns;
/**
*
* SYNFLG=Y,SYNDATE={#XX}
* 使 #sap_date, #sap_time, #date, #time, #guid
*/
@Column(name = "SRC_UPDATE_SYNC", length = 255)
public String srcUpdateSync;
/**
*
*/
@Column(name = "SRC_PK_COLUMNS", length = 255)
public String srcPkColumns;
/**
* ()...
*/
@Column(name = "COPY_BY_ORGS", length = 50)
public String copyByOrgs;
/**
*
*/
@Column(name = "DEST_BEAN_NAME", length = 500)
public String destBeanName;
/**
*
*/
@Column(name = "DEST_PK_PROPERTIES", length = 500)
public String destPkProperties;
/**
* List<MappingItem> JSON
*
*/
@Column(name = "DEST_COLUMN_MAPPING", length = 5000)
public String destColumnMapping;
/**
*
* SAP2WMS, WMS2SAP, MES2WMS
*/
@Column(name = "GROUP_NAME")
public String groupName;
/**
*
*
*/
@Column(name = "BUSI_ROUTE")
public String busiRoute;
/**
*
*/
@Column(name = "SYNC_FREQUENCY")
public Integer syncFrequency;
/**
*
*/
@Column(name = "LAST_SYNC_TIME")
public String lastSyncTime;
/**
*
*/
@Column(name = "SOFT_ADAPATOR_CODE")
public String softAdaptorCode;
/**
*
*/
@Column(name = "SCRIPT_NO")
public String scriptNo;
/**
*
*/
@Column(name = "USE_SCRIPT_PULL")
public Integer useScriptPull;
/**
*
*/
@Column(name = "USE_SCRIPT_PUSH")
public Integer useScriptPush;
/**
*
*/
@Column(name = "USE_SCRIPT_MARK")
public Integer useScriptMark;
/**
*
*/
@Column(name = "USE_SCRIPT_FILTER")
public Integer useScriptFilter;
}

@ -0,0 +1,74 @@
package cn.estsh.i3plus.pojo.mes.dbinterface;
import com.fasterxml.jackson.annotation.JsonFormat;
public class MesInterfaceEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DIRECTION_TYPE {
SAP2WMS(10, "SAP2WMS", "SAP --> WMS"),
WMS2SAP(20, "WMS2SAP", "WMS --> SAP"),
MES2WMS(30, "MES2WMS", "MES --> WMS"),
WMS2MES(40, "WMS2MES", "WMS --> MES");
private int value;
private String name;
private String description;
DIRECTION_TYPE() {
}
DIRECTION_TYPE(int value, String name, String description) {
this.value = value;
this.name = name;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getName() {
return name;
}
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].getName();
}
}
return tmp;
}
public static int nameOf(String val) {
int tmp = -1;
for (int i = 0; i < values().length; i++) {
if (values()[i].name.equals(val)) {
tmp = values()[i].value;
}
}
return tmp;
}
/**
* -1
* @param desc
* @return
*/
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;
}
}
}

@ -0,0 +1,26 @@
package cn.estsh.i3plus.pojo.mes.dbinterface;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
*
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdateSyncItem {
/**
*
*/
public String columnName;
/**
*
*
* #sap_date, #sap_time, #guid
*/
public String updateValue;
}

@ -52,4 +52,7 @@ public class ButtonComponentReqModel {
@ApiParam("客户标识号") @ApiParam("客户标识号")
private String custFlagNo; private String custFlagNo;
@ApiParam("用户信息")
private String userInfo;
} }

@ -39,4 +39,7 @@ public class ExcelImportResultModel<T> implements Serializable {
@ApiParam("导入数据集合") @ApiParam("导入数据集合")
private List<T> excelList; private List<T> excelList;
@ApiParam("导入进度")
private String importSpeed;
} }

@ -43,6 +43,15 @@ public class GenSerialNoModel {
@ApiParam("日") @ApiParam("日")
private String day; private String day;
@ApiParam("时")
private String hour;
@ApiParam("分")
private String minute;
@ApiParam("秒")
private String second;
@ApiParam("过程条码") @ApiParam("过程条码")
private String serialNumber; private String serialNumber;

@ -0,0 +1,118 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.LinkedList;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Api("散件BOM导入MODEL")
public class ImportBomExcelDataModel {
@ApiParam("零件号")
private String partNo;
@ApiParam("零件名称")
private String partName;
@ApiParam("零件简称")
private String briefText;
@ApiParam("零件规格")
private String partSpec;
@ApiParam("分类1")
private String categoryCode1;
@ApiParam("分类2")
private String categoryCode2;
@ApiParam("分类3")
private String categoryCode3;
@ApiParam("单位")
private String unit;
@ApiParam("包装规格代码")
private String packSpecCode;
@ApiParam("默认工作中心")
private String defaultWorkCenter;
@ApiParam("产品位置")
private String produceCategoryCode;
@ApiParam("过程编码匹配类型")
private Integer processMatchType;
@ApiParam("包装编码匹配类型")
private Integer packageMatchType;
@ApiParam("产品编码匹配类型")
private Integer productMatchType;
@ApiParam("产品类型代码")
private String pptCode;
@ApiParam("物料特性")
private Integer partTrait;
@ApiParam("产品类型名称")
private String produceCategoryName;
@ApiParam("过程编码匹配类型名称")
private String processMatchTypeName;
@ApiParam("包装编码匹配类型")
private String packageMatchTypeName;
@ApiParam("产品编码匹配类型")
private String productMatchTypeName;
@ApiParam("分类名称")
private String categoryName;
@ApiParam("原材料物料号")
private String itemPartNo;
@ApiParam("原材料物料名称")
private String itemPartName;
@ApiParam("产线")
private String workCenterCode;
@ApiParam("产出工位")
private String workCellCode;
@ApiParam("工位名称")
private String workCellName;
@ApiParam(value = "数量", example = "0")
private Double qty;
@ApiParam("消耗工位")
private String usedWorkCellCode;
@ApiParam("客户物料号")
private String custPartNo;
@ApiParam("配置")
private LinkedList<String> cfgCodeList;
@ApiParam("工厂代码")
private String organizeCode;
@ApiParam("用户名")
private String userName;
@ApiParam("关键物料类型")
private String keyPartType;
@ApiParam("是否关键件")
private String isKeyPart;
}

@ -63,4 +63,12 @@ public class MesQueueShipping extends BaseBean implements Serializable {
@ApiParam("客户产线代码") @ApiParam("客户产线代码")
private String custPlantCode; private String custPlantCode;
@Column(name = "JIT_LOT_NO")
@ApiParam("JIT队列批次")
private String jitLotNo;
@Column(name = "JIT_ACTUAL_NO")
@ApiParam("客户JIT队列编号")
private String jitActualNo;
} }

@ -24,4 +24,7 @@ public class MesRouteCfgModel {
@ApiParam("流程代码") @ApiParam("流程代码")
private String routeCode; private String routeCode;
@ApiParam("是否执行 1=是 2=否")
private Integer isActive;
} }

@ -18,8 +18,5 @@ public class MesRouteCfgParamModel {
@ApiParam("工序代码") @ApiParam("工序代码")
private String processCode; private String processCode;
@ApiParam("是否执行 1=是 2=否")
private Integer isActive;
List<MesRouteCfgStepModel> stepModelList; List<MesRouteCfgStepModel> stepModelList;
} }

@ -18,5 +18,11 @@ public class MesRouteCfgStepModel {
@ApiParam("工步代码") @ApiParam("工步代码")
private String stepCode; private String stepCode;
@ApiParam("参数代码")
private String paramCode;
@ApiParam("参数值")
private String paramValue;
List<MesRouteCfgModel> routeCfgModelList; List<MesRouteCfgModel> routeCfgModelList;
} }

@ -29,7 +29,7 @@ import java.util.List;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Api("用户信息model") @Api("用户信息model")
public class EquTaskNotifyUserModel extends BaseBean { public class NotifyUserModel extends BaseBean {
@ApiParam(value ="账户ID") @ApiParam(value ="账户ID")
private Long userInfoId; private Long userInfoId;

@ -88,6 +88,15 @@ public class QcCheckDataModel {
@ApiParam(value = "修改日期") @ApiParam(value = "修改日期")
private String modifyDatetime; private String modifyDatetime;
@ApiParam(value = "工单开始时间")
private String startTime;
@ApiParam(value = "工单结束时间")
private String endTime;
@ApiParam(value = "检测时间")
private String checkTime;
public QcCheckDataModel() { public QcCheckDataModel() {
} }
@ -121,4 +130,45 @@ public class QcCheckDataModel {
this.modifyUser = modifyUser; this.modifyUser = modifyUser;
this.modifyDatetime = modifyDatetime; this.modifyDatetime = modifyDatetime;
} }
public QcCheckDataModel(Long id, String organizeCode, String createUser, String createDatetime, String partNo, String workCenterCode
, String workCellCode, String partName, String modifyUser, String modifyDatetime, String startTime, String endTime, String orderNo) {
this.id = id;
this.organizeCode = organizeCode;
this.createUser = createUser;
this.createDatetime = createDatetime;
this.partNo = partNo;
this.workCenterCode = workCenterCode;
this.workCellCode = workCellCode;
this.partName = partName;
this.modifyUser = modifyUser;
this.modifyDatetime = modifyDatetime;
this.startTime = startTime;
this.endTime = endTime;
this.orderNo = orderNo;
}
public QcCheckDataModel(Long id, String organizeCode, String createUser, String createDatetime, Integer checkType) {
this.id = id;
this.organizeCode = organizeCode;
this.createUser = createUser;
this.createDatetime = createDatetime;
this.checkType = checkType;
}
public QcCheckDataModel(Long id, String organizeCode, String createUser, String createDatetime, Integer checkType, String checkItem, String checkStandard, String checkGuide
, String checkFrequency, String checkValue, String checkResult, String sn) {
this.id = id;
this.organizeCode = organizeCode;
this.createUser = createUser;
this.createDatetime = createDatetime;
this.checkType = checkType;
this.checkItem = checkItem;
this.checkStandard = checkStandard;
this.checkGuide = checkGuide;
this.checkFrequency = checkFrequency;
this.checkValue = checkValue;
this.checkResult = checkResult;
this.sn = sn;
}
} }

@ -0,0 +1,43 @@
package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.mes.bean.MesQcCheckData;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.List;
/**
* @author Wynne.Lu
* @date 2020/4/9 18:00
* @desc
*/
@Data
public class QcCheckDataResultModel {
@ApiParam("是否完成首检")
private Integer isFirstCheck;
@ApiParam("首检结果")
private List<MesQcCheckData> firstCheckResult;
@ApiParam("是否完成巡检")
private Integer isOnSiteCheck;
@ApiParam("巡检结果")
private List<MesQcCheckData> onSiteCheckResult;
@ApiParam("是否完成尾检")
private Integer isEndCheck;
@ApiParam("尾检结果")
private List<MesQcCheckData> endCheckResult;
public QcCheckDataResultModel() {
}
public QcCheckDataResultModel(Integer isFirstCheck, Integer isOnSiteCheck, Integer isEndCheck) {
this.isFirstCheck = isFirstCheck;
this.isOnSiteCheck = isOnSiteCheck;
this.isEndCheck = isEndCheck;
}
}

@ -4,6 +4,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Transient; import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
@ -74,6 +75,10 @@ public class QueueOrderModel implements Serializable {
@ApiParam("料架是否已打印") @ApiParam("料架是否已打印")
private Integer isGroupPrinted; private Integer isGroupPrinted;
@Column(name = "PPT_CODE")
@ApiParam("产品类型名称")
private String pptCode;
public QueueOrderModel() { public QueueOrderModel() {
} }
@ -183,8 +188,9 @@ public class QueueOrderModel implements Serializable {
this.orderNo = orderNo; this.orderNo = orderNo;
} }
//getWaitQueueOrderModelNoSn
public QueueOrderModel(String serialNumber, String orderNo, Long id, Double queueSeq, Double queDetailSeq, String custFlagNo, String prodCfgNameRdd, String categoryNameRdd, public QueueOrderModel(String serialNumber, String orderNo, Long id, Double queueSeq, Double queDetailSeq, String custFlagNo, String prodCfgNameRdd, String categoryNameRdd,
String partNo, String partNameRdd, String workType, Double finsihQty, Double qty) { String partNo, String partNameRdd, String workType, Double finsihQty, Double qty,String pptCode) {
this.serialNumber = serialNumber; this.serialNumber = serialNumber;
this.id = id; this.id = id;
this.queueSeq = queueSeq; this.queueSeq = queueSeq;
@ -198,8 +204,9 @@ public class QueueOrderModel implements Serializable {
this.finsihQty = finsihQty; this.finsihQty = finsihQty;
this.qty = qty; this.qty = qty;
this.orderNo = orderNo; this.orderNo = orderNo;
this.pptCode=pptCode;
} }
//getAlreadyQueueOrderModelNoSn
public QueueOrderModel(String serialNumber,String orderNo, Long id, Double queueSeq, Double queDetailSeq, String custFlagNo, String prodCfgNameRdd, String categoryNameRdd, public QueueOrderModel(String serialNumber,String orderNo, Long id, Double queueSeq, Double queDetailSeq, String custFlagNo, String prodCfgNameRdd, String categoryNameRdd,
String partNo, String partNameRdd, String workType) { String partNo, String partNameRdd, String workType) {
this.id = id; this.id = id;
@ -214,6 +221,7 @@ public class QueueOrderModel implements Serializable {
this.orderNo = orderNo; this.orderNo = orderNo;
this.serialNumber=serialNumber; this.serialNumber=serialNumber;
} }
//料架分组队列展示组件 //料架分组队列展示组件
public QueueOrderModel(String queueGroupNo, Integer groupNo, String orderNo, public QueueOrderModel(String queueGroupNo, Integer groupNo, String orderNo,
Double queueSeq, Double queDetailSeq, String partNo, String partNameRdd, String organizeCode) { Double queueSeq, Double queDetailSeq, String partNo, String partNameRdd, String organizeCode) {

@ -0,0 +1,22 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @author Wynne.Lu
* @date 2020/4/9 19:40
* @desc
*/
@Data
public class ReworkResultModel {
@ApiParam("已维修数量")
private Integer alreadyRepairCount;
@ApiParam("未维修数量")
private Integer notRepairCount;
@ApiParam("拆解数量")
private Integer dismantleCount;
}

@ -0,0 +1,35 @@
package cn.estsh.i3plus.pojo.mes.model;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author Wynne.Lu
* @date 2020/3/13 17:55
* @desc
*/
@Data
@NoArgsConstructor
public class StateDispatchModel {
private String statesKey;
private String firstScanKey;
private String cellParamKey;
private String requestBeanKey;
private String moduleDataMapKey;
private String scanInfo;
public StateDispatchModel(String statesKey, String firstScanKey, String cellParamKey, String requestBeanKey, String moduleDataMapKey, String scanInfo) {
this.statesKey = statesKey;
this.firstScanKey = firstScanKey;
this.cellParamKey = cellParamKey;
this.requestBeanKey = requestBeanKey;
this.moduleDataMapKey = moduleDataMapKey;
this.scanInfo = scanInfo;
}
}

@ -1,10 +1,7 @@
package cn.estsh.i3plus.pojo.mes.model; package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.mes.bean.MesRouteStatus;
import cn.estsh.i3plus.pojo.mes.bean.MesStateMachineStatus; import cn.estsh.i3plus.pojo.mes.bean.MesStateMachineStatus;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -34,6 +31,9 @@ public class StationRequestBean implements Serializable {
@ApiParam("物料号") @ApiParam("物料号")
private String partNo; private String partNo;
@ApiParam("生产类型")
private String pptCode;
@ApiParam("组织代码") @ApiParam("组织代码")
private String organizeCode; private String organizeCode;
@ -105,6 +105,9 @@ public class StationRequestBean implements Serializable {
@ApiParam("工步列表") @ApiParam("工步列表")
private List<StepModel> stepList; private List<StepModel> stepList;
@ApiParam("工位参数")
private Map<String, String> wcpcMap;
@ApiParam("生产主队列编号") @ApiParam("生产主队列编号")
private String orderNo; private String orderNo;
@ -123,6 +126,12 @@ public class StationRequestBean implements Serializable {
@ApiParam("展示组件") @ApiParam("展示组件")
private Object moduleService; private Object moduleService;
@ApiParam("客户工厂代码")
private String customerFactoryCode;
@ApiParam("发运命令")
private String shippingCmd;
@Override @Override
public String toString() { public String toString() {
return "StationRequestBean{" + return "StationRequestBean{" +

@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.mes.model; package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import cn.estsh.i3plus.pojo.base.enumutil.MesPcnEnumUtil; import cn.estsh.i3plus.pojo.base.enumutil.MesPcnEnumUtil;
import cn.estsh.i3plus.pojo.mes.bean.MesWcCheckRecord; import cn.estsh.i3plus.pojo.mes.bean.MesWcCheckRecord;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
@ -36,6 +37,9 @@ public class WcCheckModel {
@ApiParam("是否通过") @ApiParam("是否通过")
private Integer isPass; private Integer isPass;
@ApiParam("输入框是否可以重选")
private Integer isEnable;
@ApiParam("开线信号") @ApiParam("开线信号")
private Integer onlineSignal; private Integer onlineSignal;
@ -53,6 +57,7 @@ public class WcCheckModel {
public WcCheckModel initialWcCheckModel() { public WcCheckModel initialWcCheckModel() {
WcCheckModel wcCheckModel = new WcCheckModel(); WcCheckModel wcCheckModel = new WcCheckModel();
wcCheckModel.setIsEnable(CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue());
wcCheckModel.setOnlineSignal(MesPcnEnumUtil.ONLINE_SIGNAL.NON_CHECK.getValue()); wcCheckModel.setOnlineSignal(MesPcnEnumUtil.ONLINE_SIGNAL.NON_CHECK.getValue());
wcCheckModel.setIsPass(MesPcnEnumUtil.IS_WCCHECK_PASS.NON_PASS.getValue()); wcCheckModel.setIsPass(MesPcnEnumUtil.IS_WCCHECK_PASS.NON_PASS.getValue());
onlineSignalEqu = new MesWcCheckRecord(); onlineSignalEqu = new MesWcCheckRecord();

@ -0,0 +1,38 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.engine.script.EngineScriptPersistence;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
/**
* @Description :
* @Reference :
* @Author : Rock.Yu
* @CreateDate : 2019-04-16 09:53
* @Modify:
**/
public interface IEngineScriptPersistenceRepository extends BaseRepository<EngineScriptPersistence, Long> {
/**
*
* @param organizeCode
* @param scriptNo
* @return
*/
EngineScriptPersistence findByOrganizeCodeAndScriptNo(String organizeCode, String scriptNo);
/**
*
* @param scriptNo
* @return
*/
EngineScriptPersistence findByScriptNo(String scriptNo);
/**
*
* @return
*/
@Query("select t.languageType from EngineScriptPersistence t group by t.organizeCode, t.languageType")
List findGroupByLanguageType();
}

@ -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.IfDismantleRecord;
import cn.estsh.i3plus.pojo.mes.bean.MesContainer;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\11\18 10:33
* @Modify:
**/
public interface MesContainerRepository extends BaseRepository<MesContainer, Long> {
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesDataWarning;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-04-02
* @Modify:
**/
@Repository
public interface MesDataWarningRepository extends BaseRepository<MesDataWarning, Long> {
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.dbinterface.MesInterfaceDataMapper;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jessica.chen
* @CreateDate : 2019-06-28 15:17
* @Modify:
**/
@Repository
public interface MesInterfaceDataMapperRepository extends BaseRepository<MesInterfaceDataMapper,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.MesQueueShippingDetail;
/**
* @Description :
* @Reference :
* @Author : qianhuasheng
* @CreateDate : 2020-03-06 10:56
* @Modify:
**/
public interface MesQueueShippingDetailRepository extends BaseRepository<MesQueueShippingDetail, 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.MesQueueShipping;
/**
* @Description :
* @Reference :
* @Author : qianhuasheng
* @CreateDate : 2020-03-06 10:56
* @Modify:
**/
public interface MesQueueShippingRepository extends BaseRepository<MesQueueShipping, Long> {
}

@ -7,6 +7,7 @@ import cn.estsh.i3plus.pojo.base.enumutil.MesEnumUtil;
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack; import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
import cn.estsh.i3plus.pojo.base.util.StringUtil; import cn.estsh.i3plus.pojo.base.util.StringUtil;
import cn.estsh.i3plus.pojo.mes.bean.*; import cn.estsh.i3plus.pojo.mes.bean.*;
import cn.estsh.i3plus.pojo.mes.dbinterface.MesInterfaceDataMapper;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
/** /**
@ -2175,9 +2176,15 @@ public class MesHqlPack {
if (!StringUtils.isEmpty(monitorTaskDetail.getDataObjectNo())) { if (!StringUtils.isEmpty(monitorTaskDetail.getDataObjectNo())) {
DdlPreparedPack.getStringLikerPack(monitorTaskDetail.getDataObjectNo(), "dataObjectNo", packBean); DdlPreparedPack.getStringLikerPack(monitorTaskDetail.getDataObjectNo(), "dataObjectNo", packBean);
} }
if (!StringUtils.isEmpty(monitorTaskDetail.getStoreObjectCode())) {
DdlPreparedPack.getStringLikerPack(monitorTaskDetail.getStoreObjectCode(), "storeObjectCode", packBean);
}
if (monitorTaskDetail.getIsValid() != null) { if (monitorTaskDetail.getIsValid() != null) {
DdlPreparedPack.getNumEqualPack(monitorTaskDetail.getIsValid(), "isValid", packBean); DdlPreparedPack.getNumEqualPack(monitorTaskDetail.getIsValid(), "isValid", packBean);
} }
if (monitorTaskDetail.getCollectType() != null) {
DdlPreparedPack.getNumEqualPack(monitorTaskDetail.getCollectType(), "collectType", packBean);
}
return packBean; return packBean;
} }
@ -2283,4 +2290,114 @@ public class MesHqlPack {
} }
return packBean; return packBean;
} }
/**
*
* @param dataWarning
* @param organizeCode
* @return
*/
public static DdlPackBean getMesDataWarning(MesDataWarning dataWarning, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(dataWarning, organizeCode);
if(!StringUtils.isEmpty(dataWarning.getObjectCode())){
DdlPreparedPack.getStringLikerPack(dataWarning.getObjectCode(), "objectCode", packBean);
}
if(!StringUtils.isEmpty(dataWarning.getWarningRule())){
DdlPreparedPack.getStringLikerPack(dataWarning.getWarningRule(), "warningRule", packBean);
}
if(!StringUtils.isEmpty(dataWarning.getWarningItem())){
DdlPreparedPack.getStringLikerPack(dataWarning.getWarningItem(), "warningItem", packBean);
}
if(!StringUtils.isEmpty(dataWarning.getInformMode())){
DdlPreparedPack.getNumEqualPack(dataWarning.getInformMode(), "informMode", packBean);
}
return packBean;
}
/**
*
*
* @param mesInterfaceDataMapper
* @return
*/
public static DdlPackBean packHqlMesInterfaceDataMapper(MesInterfaceDataMapper mesInterfaceDataMapper) {
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringLikerPack(mesInterfaceDataMapper.getSrcTableName(), "srcTableName", result);
DdlPreparedPack.getStringLikerPack(mesInterfaceDataMapper.getDestBeanName(), "destBeanName", result);
DdlPreparedPack.getStringLikerPack(mesInterfaceDataMapper.getBusiRoute(), "busiRoute", result);
DdlPreparedPack.getStringLikerPack(mesInterfaceDataMapper.getGroupName(), "groupName", result);
getStringBuilderPack(mesInterfaceDataMapper, result);
return result;
}
/**
*
*
* @param bean
* @param hqlStr
* @return
*/
public static DdlPackBean getStringBuilderPack(BaseBean bean, DdlPackBean hqlStr) {
// 判断工厂代码是否为空
if (org.apache.commons.lang3.StringUtils.isNotBlank(bean.getOrganizeCode())) {
DdlPreparedPack.getStringEqualPack(bean.getOrganizeCode(), "organizeCode", hqlStr);
}
DdlPreparedPack.getStringEqualPack(bean.getCreateUser(), "createUser", hqlStr);
if (org.apache.commons.lang3.StringUtils.isNotBlank(bean.getCreateDateTimeStart()) && org.apache.commons.lang3.StringUtils.isNotBlank(bean.getCreateDateTimeEnd())) {
DdlPreparedPack.timeBuilder(bean.getCreateDateTimeStart(), bean.getCreateDateTimeEnd(), "createDatetime", hqlStr, true);
}
// 封装有效状态、删除状态、创建人和创建时间
DdlPreparedPack.getNumEqualPack(bean.getIsValid(), "isValid", hqlStr);
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue(), "isDeleted", hqlStr);
return hqlStr;
}
/**
*
* @param mesProduceSn
* @return
*/
public static DdlPackBean getProdSnPrint(MesProduceSn mesProduceSn) {
DdlPackBean packBean = getAllBaseData(mesProduceSn.getOrganizeCode());
if (!StringUtils.isEmpty(mesProduceSn.getSerialNumber())) {
DdlPreparedPack.getStringLikerPack(mesProduceSn.getSerialNumber(), "serialNumber", packBean);
}
if (!StringUtils.isEmpty(mesProduceSn.getProductSn())) {
DdlPreparedPack.getStringLikerPack(mesProduceSn.getProductSn(), "productSn", packBean);
}
if (!StringUtils.isEmpty(mesProduceSn.getPartNo())) {
DdlPreparedPack.getStringLikerPack(mesProduceSn.getPartNo(), "partNo", packBean);
}
if (!StringUtils.isEmpty(mesProduceSn.getSnStatus())) {
DdlPreparedPack.getNumEqualPack(mesProduceSn.getSnStatus(), "snStatus", packBean);
}
DdlPreparedPack.getNumEqualPack(mesProduceSn.getPrintStatus(), "printStatus", packBean);
DdlPreparedPack.getStringLikerPack(mesProduceSn.getWorkOrderNo(), "workOrderNo", packBean);
// 时间段查询
if (!StringUtils.isEmpty(mesProduceSn.getCreateDateTimeStart()) || !StringUtils.isEmpty(mesProduceSn.getCreateDateTimeEnd())) {
DdlPreparedPack.timeBuilder(
mesProduceSn.getCreateDateTimeStart(),
mesProduceSn.getCreateDateTimeEnd(),
"createDatetime", packBean, true);
}
if (!StringUtils.isEmpty(mesProduceSn.getOutWorkCenterTimeStart()) || !StringUtils.isEmpty(mesProduceSn.getOutWorkCenterTimeEnd())) {
DdlPreparedPack.timeBuilder(
mesProduceSn.getOutWorkCenterTimeStart(),
mesProduceSn.getOutWorkCenterTimeEnd(),
"outWorkCenterTime", packBean, true);
}
return packBean;
}
} }

@ -6,6 +6,7 @@ import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import cn.estsh.i3plus.pojo.base.enumutil.MesPcnEnumUtil; import cn.estsh.i3plus.pojo.base.enumutil.MesPcnEnumUtil;
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack; import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
import cn.estsh.i3plus.pojo.mes.bean.*; import cn.estsh.i3plus.pojo.mes.bean.*;
import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
/** /**
@ -177,6 +178,11 @@ public class MesPcnHqlPack {
DdlPreparedPack.getNumEqualPack(mesWorkOrder.getIsValid(), "isValid", packBean); DdlPreparedPack.getNumEqualPack(mesWorkOrder.getIsValid(), "isValid", packBean);
} }
// 工单管理,查询下达,启动,暂停状态
if (!CollectionUtils.isEmpty(mesWorkOrder.getStatusList())){
DdlPreparedPack.getInPackList(mesWorkOrder.getStatusList(), "workOrderStatus", packBean);
}
// 时间段查询 // 时间段查询
if (!StringUtils.isEmpty(mesWorkOrder.getStartTimeStart()) || !StringUtils.isEmpty(mesWorkOrder.getStartTimeEnd())) { if (!StringUtils.isEmpty(mesWorkOrder.getStartTimeStart()) || !StringUtils.isEmpty(mesWorkOrder.getStartTimeEnd())) {
DdlPreparedPack.timeBuilder( DdlPreparedPack.timeBuilder(

@ -13,6 +13,7 @@
<artifactId>i3plus-pojo-platform</artifactId> <artifactId>i3plus-pojo-platform</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>i3plus.pojo</groupId> <groupId>i3plus.pojo</groupId>

@ -13,6 +13,7 @@
<artifactId>i3plus-pojo-ptl</artifactId> <artifactId>i3plus-pojo-ptl</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>i3plus.pojo</groupId> <groupId>i3plus.pojo</groupId>

@ -0,0 +1,54 @@
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_ACTION_MODULE_PARAM")
@EqualsAndHashCode(callSuper = true)
@Api("组件参数")
public class PtlActionModuleParam extends BaseBean implements Serializable {
private static final long serialVersionUID = -1015028092547846989L;
@Column(name = "AM_CODE")
@ApiParam("组件代码")
private String amCode;
@Column(name = "PARAM_CODE")
@ApiParam("参数代码")
private String paramCode;
@Column(name = "PARAM_NAME")
@ApiParam("参数名称")
private String paramName;
@Column(name = "PARAM_TYPE")
@ApiParam("参数类型")
private String paramType;
@Column(name = "DEFAULT_VALUE")
@ApiParam("默认值")
private String defaultValue;
}

@ -10,6 +10,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table; import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
@ -40,4 +41,9 @@ public class PtlActionRoute extends BaseBean implements Serializable {
@Column(name = "ROUTE_TYPE") @Column(name = "ROUTE_TYPE")
@ApiParam("流程类型") @ApiParam("流程类型")
private Integer routeType; private Integer routeType;
@Lob
@Column(name = "POSITION")
@ApiParam("GOJS位置")
private String position;
} }

@ -1,9 +1,7 @@
package cn.estsh.i3plus.pojo.ptl.bean; package cn.estsh.i3plus.pojo.ptl.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; 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.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -37,11 +35,9 @@ public class PtlArea extends BaseBean implements Serializable {
@Column(name = "AREA_NO") @Column(name = "AREA_NO")
@ApiParam("区域代码") @ApiParam("区域代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String areaNo; private String areaNo;
@Column(name = "AREA_NAME") @Column(name = "AREA_NAME")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("区域名称") @ApiParam("区域名称")
private String areaName; private String areaName;

@ -1,9 +1,7 @@
package cn.estsh.i3plus.pojo.ptl.bean; package cn.estsh.i3plus.pojo.ptl.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; 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.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -34,26 +32,21 @@ public class PtlAreaActorAction extends BaseBean implements Serializable {
@Column(name = "AREA_NO") @Column(name = "AREA_NO")
@ApiParam("区域代码") @ApiParam("区域代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String areaNo; private String areaNo;
@Column(name = "ACTOR_CODE") @Column(name = "ACTOR_CODE")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("观察者编码") @ApiParam("观察者编码")
private String actorCode; private String actorCode;
@Column(name = "MT_CODE") @Column(name = "MT_CODE")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("消息类型代码") @ApiParam("消息类型代码")
private String mtCode; private String mtCode;
@Column(name = "OTHER_WHERE") @Column(name = "OTHER_WHERE")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("特定条件") @ApiParam("特定条件")
private String otherWhere; private String otherWhere;
@Column(name = "AMG_ID") @Column(name = "AMG_ID")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("组件集编号") @ApiParam("组件集编号")
private Long amgId; private Long amgId;
} }

@ -1,9 +1,7 @@
package cn.estsh.i3plus.pojo.ptl.bean; package cn.estsh.i3plus.pojo.ptl.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; 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.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -34,31 +32,25 @@ public class PtlAreaRouteModuleParam extends BaseBean implements Serializable {
@Column(name = "AREA_NO") @Column(name = "AREA_NO")
@ApiParam("区域代码") @ApiParam("区域代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String areaNo; private String areaNo;
@Column(name = "ROUTE_CODE") @Column(name = "ROUTE_CODE")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("流程代码") @ApiParam("流程代码")
private String routeCode; private String routeCode;
@Column(name = "AMG_ID") @Column(name = "AMG_ID")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("组件集编号") @ApiParam("组件集编号")
private Long amgId; private Long amgId;
@Column(name = "AM_CODE") @Column(name = "AM_CODE")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("组件代码") @ApiParam("组件代码")
private String amCode; private String amCode;
@Column(name = "PARAM_CODE") @Column(name = "PARAM_CODE")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("参数代码") @ApiParam("参数代码")
private String paramCode; private String paramCode;
@Column(name = "PARAM_VALUE") @Column(name = "PARAM_VALUE")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("参数值") @ApiParam("参数值")
private String paramValue; private String paramValue;

@ -1,8 +1,6 @@
package cn.estsh.i3plus.pojo.ptl.bean; package cn.estsh.i3plus.pojo.ptl.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -13,7 +11,6 @@ import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
/** /**
* @author Wynne.Lu * @author Wynne.Lu
@ -32,61 +29,49 @@ public class PtlBom extends BaseBean implements Serializable {
@Column(name = "PART_NO") @Column(name = "PART_NO")
@ApiParam("父物料号") @ApiParam("父物料号")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String partNo; private String partNo;
@Column(name = "PART_NAME", columnDefinition = "varchar(255) default '1'", nullable = false) @Column(name = "PART_NAME", columnDefinition = "varchar(255) default '1'", nullable = false)
@ApiParam("父物料描述") @ApiParam("父物料描述")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String partName; private String partName;
@Column(name = "UNIT") @Column(name = "UNIT")
@ApiParam("计量单位") @ApiParam("计量单位")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String unit; private String unit;
@Column(name = "QTY") @Column(name = "QTY")
@ApiParam("数量") @ApiParam("数量")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private Double qty; private Double qty;
@Column(name = "ITEM_PART_NO") @Column(name = "ITEM_PART_NO")
@ApiParam("子物料号") @ApiParam("子物料号")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String itemPartNo; private String itemPartNo;
@Column(name = "ITEM_PART_NAME") @Column(name = "ITEM_PART_NAME")
@ApiParam("子物料描述") @ApiParam("子物料描述")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String itemPartName; private String itemPartName;
@Column(name = "ITEM_UNIT") @Column(name = "ITEM_UNIT")
@ApiParam("子计量单位") @ApiParam("子计量单位")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String itemUnit; private String itemUnit;
@Column(name = "ITEM_QTY") @Column(name = "ITEM_QTY")
@ApiParam("子用量") @ApiParam("子用量")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private Integer itemQty; private Integer itemQty;
@Column(name = "BOM_NUM") @Column(name = "BOM_NUM")
@ApiParam("BOM编号") @ApiParam("BOM编号")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String bomNum; private String bomNum;
@Column(name = "BOM_VERSION") @Column(name = "BOM_VERSION")
@ApiParam("BOM版本号") @ApiParam("BOM版本号")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String bomVersion; private String bomVersion;
@Column(name = "EFF_START_TIME") @Column(name = "EFF_START_TIME")
@ApiParam("有效起始日期") @ApiParam("有效起始日期")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String effStartTime; private String effStartTime;
@Column(name = "EFF_END_TIME") @Column(name = "EFF_END_TIME")
@ApiParam("有效截止日期") @ApiParam("有效截止日期")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String effEndTime; private String effEndTime;
} }

@ -1,9 +1,7 @@
package cn.estsh.i3plus.pojo.ptl.bean; package cn.estsh.i3plus.pojo.ptl.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; 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.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -35,42 +33,34 @@ public class PtlControl extends BaseBean implements Serializable {
@Column(name = "CONTROL_NO") @Column(name = "CONTROL_NO")
@ApiParam("控制器编号") @ApiParam("控制器编号")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String controlNo; private String controlNo;
@Column(name = "CONTROL_NAME") @Column(name = "CONTROL_NAME")
@ApiParam("控制器名称") @ApiParam("控制器名称")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String controlName; private String controlName;
@Column(name = "CONTROL_TYPE") @Column(name = "CONTROL_TYPE")
@ApiParam("控制器类型") @ApiParam("控制器类型")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "PTL_CONTROL_TYPE")
private Integer controlType; private Integer controlType;
@Column(name = "IP") @Column(name = "IP")
@ApiParam("ip地址") @ApiParam("ip地址")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String ip; private String ip;
@Column(name = "PORT") @Column(name = "PORT")
@ApiParam("端口地址") @ApiParam("端口地址")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String port; private String port;
@Column(name = "AREA_NO") @Column(name = "AREA_NO")
@ApiParam("区域代码") @ApiParam("区域代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String areaNo; private String areaNo;
@Column(name = "STATUS") @Column(name = "STATUS")
@ApiParam("控制器状态") @ApiParam("控制器状态")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "PTL_CONTROL_STATUS")
private Integer status; private Integer status;
@Column(name = "FREQUENCY") @Column(name = "FREQUENCY")
@ApiParam("监听频率") @ApiParam("监听频率")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
private Integer frequency; private Integer frequency;
@Version @Version

@ -1,9 +1,7 @@
package cn.estsh.i3plus.pojo.ptl.bean; package cn.estsh.i3plus.pojo.ptl.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; 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.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -34,26 +32,21 @@ public class PtlIf extends BaseBean implements Serializable {
@Column(name = "IF_CODE") @Column(name = "IF_CODE")
@ApiParam("接口代码") @ApiParam("接口代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String ifCode; private String ifCode;
@Column(name = "IF_NAME") @Column(name = "IF_NAME")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("接口名称") @ApiParam("接口名称")
private String ifName; private String ifName;
@Column(name = "IF_CONNECT_TYPE") @Column(name = "IF_CONNECT_TYPE")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT)
@ApiParam("交互方式") @ApiParam("交互方式")
private String ifConnectType; private String ifConnectType;
@Column(name = "IF_CLASS") @Column(name = "IF_CLASS")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT)
@ApiParam("接口实现类") @ApiParam("接口实现类")
private String ifClass; private String ifClass;
@Column(name = "IF_CALL_TYPE") @Column(name = "IF_CALL_TYPE")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT)
@ApiParam("接口调用方向") @ApiParam("接口调用方向")
private String ifCallType; private String ifCallType;
} }

@ -1,8 +1,6 @@
package cn.estsh.i3plus.pojo.ptl.bean; package cn.estsh.i3plus.pojo.ptl.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; 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.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -33,22 +31,18 @@ public class PtlPart extends BaseBean implements Serializable {
@Column(name = "PART_NO") @Column(name = "PART_NO")
@ApiParam("物料编号") @ApiParam("物料编号")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String partNo; private String partNo;
@Column(name = "PART_NAME") @Column(name = "PART_NAME")
@ApiParam("物料名称") @ApiParam("物料名称")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String partName; private String partName;
@Column(name = "PART_TYPE") @Column(name = "PART_TYPE")
@ApiParam("物料类型") @ApiParam("物料类型")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "PTL_PART_TYPE")
private String partType; private String partType;
@Column(name = "UNIT") @Column(name = "UNIT")
@ApiParam("单位") @ApiParam("单位")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String unit; private String unit;
} }

@ -1,9 +1,7 @@
package cn.estsh.i3plus.pojo.ptl.bean; package cn.estsh.i3plus.pojo.ptl.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; 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.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -34,26 +32,21 @@ public class PtlRfid extends BaseBean implements Serializable {
@Column(name = "RFID_CONTROL_NO") @Column(name = "RFID_CONTROL_NO")
@ApiParam("RFID读写器代码") @ApiParam("RFID读写器代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String rfidControlNo; private String rfidControlNo;
@Column(name = "IP") @Column(name = "IP")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("IP") @ApiParam("IP")
private String ip; private String ip;
@Column(name = "PORT") @Column(name = "PORT")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("端口号") @ApiParam("端口号")
private String port; private String port;
@Column(name = "AREA_NO") @Column(name = "AREA_NO")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT)
@ApiParam("区域代码") @ApiParam("区域代码")
private String areaNo; private String areaNo;
@Column(name = "RFID_VALUE") @Column(name = "RFID_VALUE")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("rfid内容") @ApiParam("rfid内容")
private String rfidValue; private String rfidValue;
} }

@ -1,9 +1,7 @@
package cn.estsh.i3plus.pojo.ptl.bean; package cn.estsh.i3plus.pojo.ptl.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; 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.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -35,22 +33,18 @@ public class PtlSection extends BaseBean implements Serializable {
@Column(name = "SECTION_NO") @Column(name = "SECTION_NO")
@ApiParam("区段编号") @ApiParam("区段编号")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String sectionNo; private String sectionNo;
@Column(name = "SECTION_NAME") @Column(name = "SECTION_NAME")
@ApiParam("区段名称") @ApiParam("区段名称")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String sectionName; private String sectionName;
@Column(name = "SECTION_SEQ") @Column(name = "SECTION_SEQ")
@ApiParam("区段顺序号") @ApiParam("区段顺序号")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
private Integer sectionSeq; private Integer sectionSeq;
@Column(name = "AREA_NO") @Column(name = "AREA_NO")
@ApiParam("区域代码") @ApiParam("区域代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String areaNo; private String areaNo;
@Transient @Transient

@ -1,9 +1,7 @@
package cn.estsh.i3plus.pojo.ptl.bean; package cn.estsh.i3plus.pojo.ptl.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; 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.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -34,82 +32,66 @@ public class PtlTag extends BaseBean implements Serializable {
@Column(name = "TAG_NO") @Column(name = "TAG_NO")
@ApiParam("标签代码") @ApiParam("标签代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
private Integer tagNo; private Integer tagNo;
@Column(name = "CONTROL_NO") @Column(name = "CONTROL_NO")
@ApiParam("控制器代码") @ApiParam("控制器代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String controlNo; private String controlNo;
@Column(name = "AREA_NO") @Column(name = "AREA_NO")
@ApiParam("区域代码") @ApiParam("区域代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String areaNo; private String areaNo;
@Column(name = "SECTION_NO") @Column(name = "SECTION_NO")
@ApiParam("区段代码") @ApiParam("区段代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String sectionNo; private String sectionNo;
@Column(name = "PART_NO") @Column(name = "PART_NO")
@ApiParam("物料编号") @ApiParam("物料编号")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String partNo; private String partNo;
@Column(name = "BIN_NO") @Column(name = "BIN_NO")
@ApiParam("BIN位代码") @ApiParam("BIN位代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String binNo; private String binNo;
@Column(name = "TAG_TYPE") @Column(name = "TAG_TYPE")
@ApiParam("标签类型") @ApiParam("标签类型")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "PTL_TAG_TYPE")
private Integer tagType; private Integer tagType;
@Column(name = "LIGHT_STATUS") @Column(name = "LIGHT_STATUS")
@ApiParam("亮灯状态") @ApiParam("亮灯状态")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "PTL_LIGHT_STATUS")
private Integer lightStatus; private Integer lightStatus;
@Column(name = "TAG_STATUS") @Column(name = "TAG_STATUS")
@ApiParam("标签状态") @ApiParam("标签状态")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "PTL_TAG_STATUS")
private Integer tagStatus; private Integer tagStatus;
@Column(name = "LIGHT_MODE") @Column(name = "LIGHT_MODE")
@ApiParam("亮灯方式") @ApiParam("亮灯方式")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "PTL_LIGHT_MODE")
private Integer lightMode; private Integer lightMode;
@Column(name = "LIGHT_COLOR") @Column(name = "LIGHT_COLOR")
@ApiParam("亮灯颜色") @ApiParam("亮灯颜色")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "PTL_LIGHT_COLOR")
private Integer lightColor; private Integer lightColor;
@Column(name = "IS_BUZZING") @Column(name = "IS_BUZZING")
@ApiParam("是否蜂鸣") @ApiParam("是否蜂鸣")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "PTL_IS_BUZZING")
private Integer isBuzzing; private Integer isBuzzing;
@Column(name = "MUSIC_TYPE") @Column(name = "MUSIC_TYPE")
@ApiParam("音乐类型") @ApiParam("音乐类型")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "PTL_MUSIC_TYPE")
private Integer musicType; private Integer musicType;
@Column(name = "DISPLAY_CONTEXT") @Column(name = "DISPLAY_CONTEXT")
@ApiParam("显示内容") @ApiParam("显示内容")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String displayContent; private String displayContent;
@Column(name = "ERROR_COUNT") @Column(name = "ERROR_COUNT")
@ApiParam("卡键次数") @ApiParam("卡键次数")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
private Integer errorCount; private Integer errorCount;
@Column(name = "CUSTOM_ATTRIBUTE") @Column(name = "CUSTOM_ATTRIBUTE")
@ApiParam("自定义属性") @ApiParam("自定义属性")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String customAttribute; private String customAttribute;
} }

@ -1,9 +1,7 @@
package cn.estsh.i3plus.pojo.ptl.bean; package cn.estsh.i3plus.pojo.ptl.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; 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.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -14,10 +12,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/** /**
* @author Wynne.Lu * @author Wynne.Lu
@ -37,11 +32,9 @@ public class PtlWindow extends BaseBean implements Serializable {
@Column(name = "WINDOW_NO") @Column(name = "WINDOW_NO")
@ApiParam("界面代码") @ApiParam("界面代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String windowNo; private String windowNo;
@Column(name = "WINDOW_NAME") @Column(name = "WINDOW_NAME")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("界面名称") @ApiParam("界面名称")
private String windowName; private String windowName;
} }

@ -1,9 +1,7 @@
package cn.estsh.i3plus.pojo.ptl.bean; package cn.estsh.i3plus.pojo.ptl.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; 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.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -34,11 +32,9 @@ public class PtlWindowElement extends BaseBean implements Serializable {
@Column(name = "WINDOW_NO") @Column(name = "WINDOW_NO")
@ApiParam("界面代码") @ApiParam("界面代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String windowNo; private String windowNo;
@Column(name = "ELEMENT_NO") @Column(name = "ELEMENT_NO")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("元素代码") @ApiParam("元素代码")
private String elementNo; private String elementNo;
} }

@ -1,9 +1,7 @@
package cn.estsh.i3plus.pojo.ptl.bean; package cn.estsh.i3plus.pojo.ptl.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; 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.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -34,21 +32,17 @@ public class PtlWindowElementAttribute extends BaseBean implements Serializable
@Column(name = "WINDOW_NO") @Column(name = "WINDOW_NO")
@ApiParam("界面代码") @ApiParam("界面代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String windowNo; private String windowNo;
@Column(name = "ELEMENT_NO") @Column(name = "ELEMENT_NO")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("元素代码") @ApiParam("元素代码")
private String elementNo; private String elementNo;
@Column(name = "ATTRIBUTE_NO") @Column(name = "ATTRIBUTE_NO")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("属性代码") @ApiParam("属性代码")
private String attributeNo; private String attributeNo;
@Column(name = "ATTRIBUTE_VALUE") @Column(name = "ATTRIBUTE_VALUE")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("属性值") @ApiParam("属性值")
private String attributeValue; private String attributeValue;

@ -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.PtlActionRoute;
/**
* @author wangjie
* @date 2020/2/12 17:41
* @desc
*/
public interface PtlActionRouteRepository extends BaseRepository<PtlActionRoute, Long> {
}

@ -306,4 +306,32 @@ public class PtlHqlPack {
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.IS_DEAL.NO.getValue(), "isDeleted", result); DdlPreparedPack.getNumEqualPack(CommonEnumUtil.IS_DEAL.NO.getValue(), "isDeleted", result);
return result; return result;
} }
/**
*
*
* @param actionRoute
* @return
*/
public static DdlPackBean packHqlPtlActionRoute(PtlActionRoute actionRoute, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(actionRoute, organizeCode);
DdlPreparedPack.getStringLikerPack(actionRoute.getRouteCode(), "routeCode", packBean);
DdlPreparedPack.getStringLikerPack(actionRoute.getRouteName(), "routeName", packBean);
DdlPreparedPack.getNumEqualPack(actionRoute.getRouteType(), "routeType", packBean);
return packBean;
}
/**
*
* @param areaRoute
* @param organizeCode
* @return
*/
public static DdlPackBean packHqlPtlAreaRoute(PtlAreaRoute areaRoute, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(areaRoute, organizeCode);
DdlPreparedPack.getStringLikerPack(areaRoute.getRouteCode(), "routeCode", packBean);
DdlPreparedPack.getStringLikerPack(areaRoute.getAreaNo(), "areaNo", packBean);
DdlPreparedPack.getNumEqualPack(areaRoute.getRouteType(), "routeType", packBean);
return packBean;
}
} }

@ -235,6 +235,15 @@ public class ReportHqlPack {
return result; return result;
} }
public static DdlPackBean packHqlBrPojoView(BrPojoView bean){
DdlPackBean result = DdlPackBean.getDdlPackBean(bean);
DdlPreparedPack.getNumEqualPack(bean.getPojoId(),"pojoId",result);
DdlPreparedPack.getNumEqualPack(bean.getViewType(),"viewType",result);
return result;
}
public static DdlPackBean packHqlBrPojoViewAttr(BrPojoViewAttr bean){ public static DdlPackBean packHqlBrPojoViewAttr(BrPojoViewAttr bean){
DdlPackBean result = DdlPackBean.getDdlPackBean(bean); DdlPackBean result = DdlPackBean.getDdlPackBean(bean);

@ -13,6 +13,7 @@
<artifactId>i3plus-pojo-sweb</artifactId> <artifactId>i3plus-pojo-sweb</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>i3plus.pojo</groupId> <groupId>i3plus.pojo</groupId>

@ -13,6 +13,7 @@
<artifactId>i3plus-pojo-wms</artifactId> <artifactId>i3plus-pojo-wms</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>i3plus.pojo</groupId> <groupId>i3plus.pojo</groupId>

@ -43,7 +43,6 @@ public class AmpJisRec extends BaseBean {
public String partNameRdd; public String partNameRdd;
@Column(name = "QTY", columnDefinition = "decimal(18,8) default 0", nullable = false) @Column(name = "QTY", columnDefinition = "decimal(18,8) default 0", nullable = false)
@ColumnDefault("0")
@ApiParam(value = "数量", example = "0") @ApiParam(value = "数量", example = "0")
public Double qty; public Double qty;

@ -49,17 +49,17 @@ public class WmsActionGroup extends BaseBean {
@AnnoOutputColumn @AnnoOutputColumn
private String agDescC; private String agDescC;
@Column(name = "INIT_AM_ID", columnDefinition = "bigint(20) default 0") @Column(name = "INIT_AM_ID", columnDefinition = "bigint default 0")
@ApiParam(value = "初始化组件编号", example = "0") @ApiParam(value = "初始化组件编号", example = "0")
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private Long initAmId; private Long initAmId;
@Column(name = "DETAILS_AM_ID", columnDefinition = "bigint(20) default 0") @Column(name = "DETAILS_AM_ID", columnDefinition = "bigint default 0")
@ApiParam(value = "明细处理组件编号", example = "0") @ApiParam(value = "明细处理组件编号", example = "0")
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private Long detailsAmId; private Long detailsAmId;
@Column(name = "END_AM_ID", columnDefinition = "bigint(20) default 0") @Column(name = "END_AM_ID", columnDefinition = "bigint default 0")
@ApiParam(value = "结束组件编号", example = "0") @ApiParam(value = "结束组件编号", example = "0")
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private Long endAmId; private Long endAmId;
@ -82,7 +82,7 @@ public class WmsActionGroup extends BaseBean {
private Integer isAutoCommit; private Integer isAutoCommit;
@Lob @Lob
@Column(name = "POSITION") @Column(name = "POSITION", columnDefinition = "TEXT")
@ApiParam(value = "GOJS位置") @ApiParam(value = "GOJS位置")
private String position; private String position;

@ -100,7 +100,7 @@ public class WmsActionGroupDetails extends BaseBean {
@ApiParam(value = "是否预显示") @ApiParam(value = "是否预显示")
private Integer preShow; private Integer preShow;
@Column(name = "SHOW_AM_ID", columnDefinition = "bigint(20) default 0") @Column(name = "SHOW_AM_ID", columnDefinition = "bigint default 0")
@ApiParam(value = "回显组件方法ID") @ApiParam(value = "回显组件方法ID")
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private Long showAmId; private Long showAmId;

@ -65,17 +65,17 @@ public class WmsActionLogData extends BaseBean {
private String endTime; private String endTime;
@Lob @Lob
@Column(name = "IN_PARAMS") @Column(name = "IN_PARAMS", columnDefinition = "TEXT")
@ApiParam(value = "输入参数") @ApiParam(value = "输入参数")
private String inParams; private String inParams;
@Lob @Lob
@Column(name = "OUT_PARAMS") @Column(name = "OUT_PARAMS", columnDefinition = "TEXT")
@ApiParam(value = "输出参数") @ApiParam(value = "输出参数")
private String outParams; private String outParams;
@Lob @Lob
@Column(name = "ERROR_MSG") @Column(name = "ERROR_MSG", columnDefinition = "TEXT")
@ApiParam(value = "异常信息") @ApiParam(value = "异常信息")
private String errorMsg; private String errorMsg;
} }

@ -9,6 +9,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
@ -49,8 +50,9 @@ public class WmsBom extends BaseBean {
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String unit; private String unit;
@Column(name = "QTY", columnDefinition = "decimal(18,8)") @Column(name = "QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ApiParam(value = "数量") @ApiParam(value = "数量")
@ColumnDefault("0")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double qty; private Double qty;
@ -69,8 +71,9 @@ public class WmsBom extends BaseBean {
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String itemUnit; private String itemUnit;
@Column(name = "ITEM_QTY", columnDefinition = "decimal(18,8)") @Column(name = "ITEM_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ApiParam(value = "子用量") @ApiParam(value = "子用量")
@ColumnDefault("0")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double itemQty; private Double itemQty;

@ -5,6 +5,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
@ -40,8 +41,9 @@ public class WmsBomTotal extends BaseBean {
@ApiParam("计量单位") @ApiParam("计量单位")
private String UNIT; private String UNIT;
@Column(name = "QTY", columnDefinition = "decimal(18,8)") @Column(name = "QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ApiParam("数量") @ApiParam("数量")
@ColumnDefault("0")
private Double qty; private Double qty;
@Column(name = "ITEM_PART_NO") @Column(name = "ITEM_PART_NO")
@ -56,8 +58,9 @@ public class WmsBomTotal extends BaseBean {
@ApiParam(value = "子计量单位") @ApiParam(value = "子计量单位")
private String itemUnit; private String itemUnit;
@Column(name = "ITEM_QTY", columnDefinition = "decimal(18,8)") @Column(name = "ITEM_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ApiParam(value = "子用量") @ApiParam(value = "子用量")
@ColumnDefault("0")
private Double itemQty; private Double itemQty;
@Column(name = "BOM_NUM") @Column(name = "BOM_NUM")

@ -5,6 +5,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
@ -53,7 +54,7 @@ public class WmsConfig extends BaseBean {
private String configValueType; private String configValueType;
@Lob @Lob
@Column(name="CONFIG_VALUE") @Column(name="CONFIG_VALUE", columnDefinition = "TEXT")
@ApiParam(value ="参数值") @ApiParam(value ="参数值")
private String configValue; private String configValue;

@ -53,41 +53,51 @@ public class WmsCsStrategy extends BaseBean implements Serializable {
@Column(name = "CYCLE_RULE") @Column(name = "CYCLE_RULE")
@ApiParam(value = "循环规则") @ApiParam(value = "循环规则")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String cycleRule; private String cycleRule;
@Column(name = "START_DATE") @Column(name = "START_DATE")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam(value = "开始日期", example = "0") @ApiParam(value = "开始日期", example = "0")
private String startDate; private String startDate;
@Column(name = "END_DATE") @Column(name = "END_DATE")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam(value = "结束日期", example = "0") @ApiParam(value = "结束日期", example = "0")
private String endDate; private String endDate;
@Column(name = "NUM_MAX") @Column(name = "NUM_MAX")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam(value = "明细数量上限") @ApiParam(value = "明细数量上限")
private Integer numMax; private Integer numMax;
@Column(name = "COVERAGE_RATE") @Column(name = "COVERAGE_RATE")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam(value = "抽盘覆盖率") @ApiParam(value = "抽盘覆盖率")
private Double coverageRate; private Double coverageRate;
@Column(name = "ZONE_NOS") @Column(name = "ZONE_NOS")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam(value = "存储区") @ApiParam(value = "存储区")
private String zoneNos; private String zoneNos;
@Column(name = "LOCATES") @Column(name = "LOCATES")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam(value = "盘点库位") @ApiParam(value = "盘点库位")
private String locates; private String locates;
@Column(name = "last_run_time") @Column(name = "last_run_time")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam(value = "上次运行时间") @ApiParam(value = "上次运行时间")
private String lastRunTime; private String lastRunTime;
@Column(name = "next_run_time") @Column(name = "next_run_time")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam(value = "下次运行时间") @ApiParam(value = "下次运行时间")
private String nextRunTime; private String nextRunTime;
@Column(name = "REMAKE") @Column(name = "REMAKE")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam(value = "备注") @ApiParam(value = "备注")
private String remake; private String remake;
} }

@ -46,6 +46,6 @@ public class WmsDock extends BaseBean {
@Column(name="DOCK_TYPE") @Column(name="DOCK_TYPE")
@ApiParam("道口类型") @ApiParam("道口类型")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "DOCK_TYPE")
private String dockType; private Integer dockType;
} }

@ -13,6 +13,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import javax.persistence.Transient;
/** /**
* @Description : * @Description :
@ -69,4 +70,8 @@ public class WmsDockOrderInfo extends BaseBean {
@ApiParam("单据号") @ApiParam("单据号")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String orderNo; private String orderNo;
@Transient
@ApiParam("库位代码")
private Integer masterStatus;
} }

@ -7,6 +7,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
@ -58,16 +59,19 @@ public class WmsMoveDetails extends BaseBean {
@ApiParam("客户编号") @ApiParam("客户编号")
public String custNo; public String custNo;
@Column(name = "TRANS_QTY", columnDefinition = "decimal(18,8)") @Column(name = "TRANS_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ApiParam(value = "处理数量", example = "0") @ApiParam(value = "处理数量", example = "0")
@ColumnDefault("0")
public Double transQty; public Double transQty;
@Column(name = "HANDLED_QTY", columnDefinition = "decimal(18,8)") @Column(name = "HANDLED_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ApiParam(value = "已处理数量", example = "0") @ApiParam(value = "已处理数量", example = "0")
@ColumnDefault("0")
public Double handledQty; public Double handledQty;
@Column(name = "REJECT_QTY", columnDefinition = "decimal(18,8)") @Column(name = "REJECT_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ApiParam(value = "不合格处理数量", example = "0") @ApiParam(value = "不合格处理数量", example = "0")
@ColumnDefault("0")
public Double rejectQty; public Double rejectQty;
public Double getRejectQty() { public Double getRejectQty() {

@ -68,6 +68,10 @@ public class WmsMoveMaster extends BaseBean {
@ApiParam(value = "车牌号") @ApiParam(value = "车牌号")
private String carNo; private String carNo;
@Column(name = "DRIVER_NO")
@ApiParam("司机")
public String driverNo;
@Column(name = "BUSI_TYPE_CODE") @Column(name = "BUSI_TYPE_CODE")
@ApiParam(value = "业务类型编码") @ApiParam(value = "业务类型编码")
@AnnoOutputColumn(refClass = WmsEnumUtil.OUT_MOVEMENT_BUSI_TYPE.class, refForeignKey = "value", value = "description") @AnnoOutputColumn(refClass = WmsEnumUtil.OUT_MOVEMENT_BUSI_TYPE.class, refForeignKey = "value", value = "description")

@ -84,7 +84,7 @@ public class WmsMoveSn extends BaseBean {
@ApiParam("容器编号") @ApiParam("容器编号")
public String packAgeNo; public String packAgeNo;
@Column(name = "SRC_QTY", columnDefinition = "decimal(18,8)") @Column(name = "SRC_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "源数量", example = "0") @ApiParam(value = "源数量", example = "0")
public Double srcQty; public Double srcQty;
@ -121,12 +121,12 @@ public class WmsMoveSn extends BaseBean {
@Transient @Transient
private Long finishedCounts; private Long finishedCounts;
@Column(name = "DEST_QTY", columnDefinition = "decimal(18,8)") @Column(name = "DEST_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "目标数量", example = "0") @ApiParam(value = "目标数量", example = "0")
public Double destQty; public Double destQty;
@Column(name = "QTY", columnDefinition = "decimal(18,8)") @Column(name = "QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "数量", example = "0") @ApiParam(value = "数量", example = "0")
public Double qty; public Double qty;

@ -6,6 +6,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
@ -65,6 +66,10 @@ public class WmsMoveToERP extends BaseBean {
@ApiParam(value = "车牌号") @ApiParam(value = "车牌号")
private String carNo; private String carNo;
@Column(name = "DRIVER_NO")
@ApiParam("司机")
public String driverNo;
@Column(name="ITEM") @Column(name="ITEM")
@ApiParam(value = "行号") @ApiParam(value = "行号")
public String item; public String item;
@ -85,12 +90,14 @@ public class WmsMoveToERP extends BaseBean {
@ApiParam("客户编号") @ApiParam("客户编号")
public String custNo; public String custNo;
@Column(name="TRANS_QTY", columnDefinition = "decimal(18,8)") @Column(name="TRANS_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ApiParam(value = "处理数量", example = "0") @ApiParam(value = "处理数量", example = "0")
@ColumnDefault("0")
public Double transQty; public Double transQty;
@Column(name="REJECT_QTY", columnDefinition = "decimal(18,8)") @Column(name="REJECT_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ApiParam(value = "不合格处理数量", example = "0") @ApiParam(value = "不合格处理数量", example = "0")
@ColumnDefault("0")
public Double rejectQty; public Double rejectQty;
@Column(name="UNIT") @Column(name="UNIT")
@ -143,8 +150,9 @@ public class WmsMoveToERP extends BaseBean {
@ApiParam("关联单位") @ApiParam("关联单位")
public String refUnit; public String refUnit;
@Column(name="REF_QTY", columnDefinition = "decimal(18,8)") @Column(name="REF_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ApiParam("关联数量") @ApiParam("关联数量")
@ColumnDefault("0")
public Double refQty; public Double refQty;
@Column(name = "SRC_AREA_NO") @Column(name = "SRC_AREA_NO")

@ -39,7 +39,7 @@ public class WmsPOMasterDetails extends BaseBean {
@ApiParam("物料编码") @ApiParam("物料编码")
private String partNo; private String partNo;
@Column(name = "BOX_QTY") @Column(name = "BOX_QTY", nullable = false)
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "箱数", example = "0") @ApiParam(value = "箱数", example = "0")
private Integer boxQty; private Integer boxQty;
@ -52,7 +52,7 @@ public class WmsPOMasterDetails extends BaseBean {
@ApiParam("行号") @ApiParam("行号")
private Integer item; private Integer item;
@Column(name = "QTY", columnDefinition = "decimal(18,8)") @Column(name = "QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "需求数量", example = "0") @ApiParam(value = "需求数量", example = "0")
private Double qty; private Double qty;
@ -69,28 +69,28 @@ public class WmsPOMasterDetails extends BaseBean {
@ApiParam("订单号") @ApiParam("订单号")
private String orderNo; private String orderNo;
@Column(name = "PRINT_QTY", columnDefinition = "decimal(18,8)") @Column(name = "PRINT_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "条码打印数量", example = "0") @ApiParam(value = "条码打印数量", example = "0")
private Double printQty; private Double printQty;
//private Double getPrintQty(){ return this.printQty == null ? new Double(0) : this.printQty; } //private Double getPrintQty(){ return this.printQty == null ? new Double(0) : this.printQty; }
@Column(name = "RC_QTY", columnDefinition = "decimal(18,8)") @Column(name = "RC_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "收货数量", example = "0") @ApiParam(value = "收货数量", example = "0")
private Double rcQty = 0d; private Double rcQty = 0d;
//private Double getRcQty(){ return this.rcQty == null ? new Double(0) : this.rcQty; } //private Double getRcQty(){ return this.rcQty == null ? new Double(0) : this.rcQty; }
@Column(name = "PASS_QTY", columnDefinition = "decimal(18,8)") @Column(name = "PASS_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "质检合格数量", example = "0") @ApiParam(value = "质检合格数量", example = "0")
private Double passQty; private Double passQty;
//private Double getPassQty(){ return this.passQty == null ? new Double(0) : this.passQty; } //private Double getPassQty(){ return this.passQty == null ? new Double(0) : this.passQty; }
@Column(name = "NG_QTY", columnDefinition = "decimal(18,8)") @Column(name = "NG_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "质检不合格数量", example = "0") @ApiParam(value = "质检不合格数量", example = "0")
private Double ngQty; private Double ngQty;

@ -5,6 +5,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
@ -41,12 +42,14 @@ public class WmsPackSn extends BaseBean {
@ApiParam(value = "物料名称") @ApiParam(value = "物料名称")
private String partNameAdd; private String partNameAdd;
@Column(name = "QTY", columnDefinition = "decimal(18,8)") @Column(name = "QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ApiParam("数量") @ApiParam("数量")
@ColumnDefault("0")
private Double qty; private Double qty;
@Column(name = "SID", columnDefinition = "decimal(18,8)") @Column(name = "SID", columnDefinition = "decimal(18,8)", nullable = false)
@ApiParam("SID") @ApiParam("SID")
@ColumnDefault("0")
private Double sId; private Double sId;
@Column(name = "COMMIT_DATE") @Column(name = "COMMIT_DATE")

@ -177,7 +177,8 @@ public class WmsPart extends BaseBean {
@Column(name = "OUT_CLOSE_VENDOR") @Column(name = "OUT_CLOSE_VENDOR")
@ApiParam("结算供应商") @ApiParam("结算供应商")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2) @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.LIST, isRequire = 2, entityName = "cn.estsh.i3plus.pojo.wms.bean.BasVendor",
searchColumnName = "vendorNo,vendorName", listColumnName = "vendorNo,vendorName", explicitColumnName = "vendorNo")
private String outCloseVendor; private String outCloseVendor;
@Column(name = "QUALITY_DAYS") @Column(name = "QUALITY_DAYS")

@ -6,6 +6,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
@ -46,8 +47,9 @@ public class WmsPickCount extends BaseBean {
@ApiParam(value = "物料号") @ApiParam(value = "物料号")
private String partNo; private String partNo;
@Column(name = "QTY") @Column(name = "QTY", nullable = false)
@ApiParam(value = "数量") @ApiParam(value = "数量")
@ColumnDefault("0")
private Double qty; private Double qty;
} }

@ -51,7 +51,7 @@ public class WmsPoSn extends BaseBean {
@ApiParam("物料名称") @ApiParam("物料名称")
public String partNameRdd; public String partNameRdd;
@Column(name="QTY", columnDefinition = "decimal(18,8)") @Column(name="QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "数量", example = "0") @ApiParam(value = "数量", example = "0")
public Double qty; public Double qty;
@ -89,7 +89,7 @@ public class WmsPoSn extends BaseBean {
@ApiParam("组条码") @ApiParam("组条码")
public String groupNo; public String groupNo;
@Column(name="REC_QTY", columnDefinition = "decimal(18,8)") @Column(name="REC_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "收货数量", example = "0") @ApiParam(value = "收货数量", example = "0")
public Double recQty; public Double recQty;

@ -5,6 +5,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
@ -46,8 +47,9 @@ public class WmsPullTaskDetails extends BaseBean{
@ApiParam("库位代码") @ApiParam("库位代码")
private String locateNo; private String locateNo;
@Column(name="LOCATE_CAPACITY") @Column(name="LOCATE_CAPACITY", nullable = false)
@ApiParam(value = "库位容量", example = "0") @ApiParam(value = "库位容量", example = "0")
@ColumnDefault("0")
private Integer locateCapacity = 0; private Integer locateCapacity = 0;
@Column(name="PART_NO") @Column(name="PART_NO")
@ -58,52 +60,63 @@ public class WmsPullTaskDetails extends BaseBean{
@ApiParam("零件名称") @ApiParam("零件名称")
private String partNameRdd; private String partNameRdd;
@Column(name="PLAN_PACK_QTY") @Column(name="PLAN_PACK_QTY", nullable = false)
@ApiParam(value = "计划数量", example = "0d") @ApiParam(value = "计划数量", example = "0d")
@ColumnDefault("0")
private Double planPackQty = 0d; private Double planPackQty = 0d;
@Column(name="PLAN_PACK_COUNT") @Column(name="PLAN_PACK_COUNT", nullable = false)
@ApiParam(value = "计划容器数", example = "0d") @ApiParam(value = "计划容器数", example = "0d")
@ColumnDefault("0")
private Double planPackCount = 0d; private Double planPackCount = 0d;
@Column(name="FIRST_BATCH_QTY") @Column(name="FIRST_BATCH_QTY", nullable = false)
@ApiParam(value = "首批批量", example = "0d") @ApiParam(value = "首批批量", example = "0d")
@ColumnDefault("0")
private Double firstBatchQty = 0d; private Double firstBatchQty = 0d;
@Column(name="FIRST_PACK_COUNT") @Column(name="FIRST_PACK_COUNT", nullable = false)
@ApiParam(value = "首批容器数", example = "0d") @ApiParam(value = "首批容器数", example = "0d")
@ColumnDefault("0")
private Double firstPackCount = 0d; private Double firstPackCount = 0d;
@Column(name="REQUEST_QTY") @Column(name="REQUEST_QTY", nullable = false)
@ApiParam(value = "补货批量", example = "0d") @ApiParam(value = "补货批量", example = "0d")
@ColumnDefault("0")
private Double requestQty = 0d; private Double requestQty = 0d;
@Column(name="REQUEST_PACK_COUNT") @Column(name="REQUEST_PACK_COUNT", nullable = false)
@ApiParam(value = "补货容器数", example = "0d") @ApiParam(value = "补货容器数", example = "0d")
@ColumnDefault("0")
private Double requestPackCount = 0d; private Double requestPackCount = 0d;
@Column(name="REQUEST_LOT_NO") @Column(name="REQUEST_LOT_NO", nullable = false)
@ApiParam(value = "补货批次", example = "0d") @ApiParam(value = "补货批次", example = "0d")
@ColumnDefault("0")
private Double requestLotNo = 0d; private Double requestLotNo = 0d;
@Column(name="REQUEST_TOTAL_COUNT") @Column(name="REQUEST_TOTAL_COUNT", nullable = false)
@ApiParam(value = "补货累加次数", example = "0d") @ApiParam(value = "补货累加次数", example = "0d")
@ColumnDefault("0")
private Double requestTotalCount = 0d; private Double requestTotalCount = 0d;
@Column(name="LAST_REQUEST_TIME") @Column(name="LAST_REQUEST_TIME")
@ApiParam("上一次补货时间") @ApiParam("上一次补货时间")
private String lastRequestTtime; private String lastRequestTtime;
@Column(name="BOOT_QTY") @Column(name="BOOT_QTY", nullable = false)
@ApiParam(value = "尾箱批量", example = "0d") @ApiParam(value = "尾箱批量", example = "0d")
@ColumnDefault("0")
private Double bootQty = 0d; private Double bootQty = 0d;
@Column(name="BOOT_PACK_COUNT") @Column(name="BOOT_PACK_COUNT", nullable = false)
@ApiParam(value = "尾箱容器数", example = "0d") @ApiParam(value = "尾箱容器数", example = "0d")
@ColumnDefault("0")
private Double bootPackCount = 0d; private Double bootPackCount = 0d;
@Column(name="BOOT_LOT_NO") @Column(name="BOOT_LOT_NO", nullable = false)
@ApiParam(value = "尾箱批次", example = "0d") @ApiParam(value = "尾箱批次", example = "0d")
@ColumnDefault("0")
private Double bootLotNo = 0d; private Double bootLotNo = 0d;
@Column(name="ORDER_STATUS") @Column(name="ORDER_STATUS")

@ -52,12 +52,12 @@ public class WmsPushConfig extends BaseBean{
@Lob @Lob
@ApiParam("查询Hql") @ApiParam("查询Hql")
@Column(name = "HQL_STR") @Column(name = "HQL_STR", columnDefinition = "TEXT")
private String hqlStr; private String hqlStr;
@Lob @Lob
@ApiParam("查询Sql") @ApiParam("查询Sql")
@Column(name = "SQL_STR") @Column(name = "SQL_STR", columnDefinition = "TEXT")
private String sqlStr; private String sqlStr;
@ApiParam("脚本编号") @ApiParam("脚本编号")
@ -66,12 +66,12 @@ public class WmsPushConfig extends BaseBean{
@Lob @Lob
@ApiParam("标题模板") @ApiParam("标题模板")
@Column(name = "TITLE_TEMPLATE") @Column(name = "TITLE_TEMPLATE", columnDefinition = "TEXT")
private String titleTemplate; private String titleTemplate;
@Lob @Lob
@ApiParam("消息体模板") @ApiParam("消息体模板")
@Column(name = "CONTENT_TEMPLATE") @Column(name = "CONTENT_TEMPLATE", columnDefinition = "TEXT")
private String contentTemplate; private String contentTemplate;
@ApiParam("推送类型") @ApiParam("推送类型")

@ -36,7 +36,7 @@ public class WmsPushLog extends BaseBean{
private String pushTitle; private String pushTitle;
@Lob @Lob
@Column(name = "PUSH_CONTENT") @Column(name = "PUSH_CONTENT", columnDefinition = "TEXT")
@ApiParam("推送内容") @ApiParam("推送内容")
private String pushContent; private String pushContent;

@ -42,7 +42,7 @@ public class WmsQCDetails extends BaseBean {
@ApiParam("行号") @ApiParam("行号")
public String item; public String item;
@Column(name = "QTY", columnDefinition = "decimal(18,8)") @Column(name = "QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "需求数量", example = "0") @ApiParam(value = "需求数量", example = "0")
public Double qty; public Double qty;
@ -67,17 +67,17 @@ public class WmsQCDetails extends BaseBean {
public String remark; public String remark;
@Column(name = "FACT_QTY", columnDefinition = "decimal(18,8)") @Column(name = "FACT_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "实检数量", example = "0") @ApiParam(value = "实检数量", example = "0")
public Double factQty; public Double factQty;
@Column(name = "PASS_QTY", columnDefinition = "decimal(18,8)") @Column(name = "PASS_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "合格数量", example = "0") @ApiParam(value = "合格数量", example = "0")
public Double passQty; public Double passQty;
@Column(name = "REJECT_QTY", columnDefinition = "decimal(18,8)") @Column(name = "REJECT_QTY", columnDefinition = "decimal(18,8)", nullable = false)
@ColumnDefault("0") @ColumnDefault("0")
@ApiParam(value = "不合格数量", example = "0") @ApiParam(value = "不合格数量", example = "0")
public Double rejectQty; public Double rejectQty;

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save