动态查询:#任务1352(合并代码解决冲突)

yun-zuoyi
许心洁 5 years ago
commit a22d3d2333

@ -1,9 +1,6 @@
package cn.estsh.i3plus.pojo.base.enumutil;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.StringUtils;
import java.math.BigDecimal;
/**
* @Description :
@ -825,6 +822,170 @@ public class BlockFormEnumUtil {
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ELEMENT_DELETE_WEAK_STATUS {
ON(1, "ON", "开启"),
OFF(2, "OFF", "关闭");
private int value;
private String code;
private String description;
private ELEMENT_DELETE_WEAK_STATUS(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 valueOfCode(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].code;
}
}
return tmp;
}
public static int codeOfValue(String code) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].value;
}
}
return tmp;
}
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 ELEMENT_DELETE_WEAK_STATUS valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
return values()[i];
}
}
return null;
}
public static String codeOfDescription(String code) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ELEMENT_VALID_STATUS {
ON(1, "ON", "开启"),
OFF(2, "OFF", "关闭");
private int value;
private String code;
private String description;
private ELEMENT_VALID_STATUS(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 valueOfCode(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].code;
}
}
return tmp;
}
public static int codeOfValue(String code) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].value;
}
}
return tmp;
}
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 ELEMENT_VALID_STATUS valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
return values()[i];
}
}
return null;
}
public static String codeOfDescription(String code) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -1925,4 +2086,51 @@ public class BlockFormEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ELEMENT_CONSTRAINT_TYPE {
UNIQUE(10, "唯一约束");
// 后续扩展联合主键
// PRIMARY_KEY(20, "主键约束")
private int value;
private String description;
private ELEMENT_CONSTRAINT_TYPE (int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
public static ELEMENT_CONSTRAINT_TYPE valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
return values()[i];
}
}
return null;
}
}
}

@ -148,6 +148,72 @@ public class MesEnumUtil {
return valueOf(val);
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TOOLING_ACTION_RECORD_TYPE {
REPLACE(10, "REPLACE", "更换"),
WAREHOUSE(20, "WAREHOUSE", "入库"),
Use(30, "Use", "领用");
private int value;
private String code;
private String description;
TOOLING_ACTION_RECORD_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getCode() {
return code;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
public static String codeOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].code;
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
}
/**
* JIS
*/
@ -3566,7 +3632,8 @@ public class MesEnumUtil {
QUALIFIED(10, "number", "数字"),
DEFECTED(20, "text", "字符串"),
SCRAPED(30, "select", "可选值");
SCRAPED(30, "select", "可选值"),
BUTTON(40, "button", "按钮");
private int value;
private String code;
@ -4425,7 +4492,8 @@ public class MesEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WORK_CELL_MONITOR_TYPE {
MONITOR(10, "监听组件"),
SHOW(20, "展示组件");
SHOW(20, "展示组件"),
BUTTON(30, "按钮组件");
private int value;
private String description;

@ -2482,7 +2482,8 @@ public class MesPcnEnumUtil {
FILE("file", "定制内容文件"),
IMAGE("image", "图片"),
BUTTON("button", "按钮"),
TABLES("tables", "多个表格");
TABLES("tables", "多个表格"),
DATA("data", "表格");
private String value;
private String description;
@ -2908,7 +2909,8 @@ public class MesPcnEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CACHA_QUEUE_STATUS {
CREATE(10, "创建");
CREATE(10, "创建"),
COMPLETE(20, "完成");
private int value;
private String description;
@ -2951,4 +2953,224 @@ public class MesPcnEnumUtil {
return description;
}
}
/**
* BOM
* 10.
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum STATION_BOM_MATCH_RULE {
BARCODE_RULE_MATCHING(10, "条码规则匹配"),
PROCESS_BARCODE_MATCHING(20, "过程条码匹配"),
BAR_CODE_MATCHING(20, "条码匹配");
private int value;
private String description;
STATION_BOM_MATCH_RULE(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;
}
}
/**
*
* 10.
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum OPERATION_MODE {
SINGLE_SCAN(10, "单个扫描"),
NO_SCAN_DEDUCTION(20, "不扫描后端扣减");
private int value;
private String description;
OPERATION_MODE(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 FINISH_FLAG {
FALSE(0, "未完成"),
TRUE(1, "完成");
private int value;
private String description;
FINISH_FLAG(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 HM_FLAG {
NOT_FILM_EXCHANGE(0, "不需换模"),
FILM_EXCHANGE(1, "需换模");
private int value;
private String description;
HM_FLAG(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;
}
}
/**
* mes_
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum EQUIPMENT_TOOLING_TOOLING_TYPE {
WORK_CLOTHES(10, "工装"),
CHECKING_TOOL(20, "检具"),
MOULD(30, "模具");
private int value;
private String description;
EQUIPMENT_TOOLING_TOOLING_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;
}
}
/**
* mes_
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ACTION_TYPE {
REPLACE(10, "更换"),
WAREHOUSING(20, "入库"),
RECEIVE(30, "领用");
private int value;
private String description;
ACTION_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;
}
}
}

@ -292,11 +292,12 @@ public class PtlPcnEnumUtil {
public enum SIGNAL_CHILD_CMD {
CHILD_CMD_06H("06", 6, "正常"),
CHILD_CMD_07H("07", 7, "缺货"),
CHILD_CMD_09H("09", 9, "标签自检"),
CHILD_CMD_0AH("0A", 10, "亮灯错误"),
CHILD_CMD_09H("09", 9, "连接的现场设备的返回状态"),
CHILD_CMD_FFH("FF", 255, "无效消息"),
CHILD_CMD_0AH("0A", 10, "现场设备超时"),
CHILD_CMD_0BH("0B", 11, "查询设备故障,返回设备故障"),
CHILD_CMD_0CH("0C", 12, "设备无法执行命令,用错命令"),
CHILD_CMD_0DH("0D", 13, "卡键,按键卡住"),
CHILD_CMD_0DH("0D", 13, "返回按钮锁定消息,卡键,按键卡住"),
CHILD_CMD_0FH("0F", 15, "返回库存模式下的缺货量"),
CHILD_CMD_64H("64", 100, "熄灭情况下返回"),
CHILD_CMD_FAH("FA", 250, "设备的 F/W 模型信息"),

@ -139,6 +139,15 @@ public class WmsEnumUtil {
}
return tmp;
}
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;
}
}
@ -1266,45 +1275,45 @@ public class WmsEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CS_STRATEGY_TYPE {
PART_COVERAGE(110, "物料分类覆盖"),
TOUCH(120, "动碰"),
ZORE_STOCK(130, "零库存");
private int value;
private String description;
CS_STRATEGY_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return 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;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CS_STRATEGY_TYPE {
PART_COVERAGE(110, "物料分类覆盖"),
TOUCH(120, "动碰"),
ZORE_STOCK(130, "零库存");
private int value;
private String description;
CS_STRATEGY_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return 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;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
}
/**
*
@ -2977,6 +2986,15 @@ public class WmsEnumUtil {
}
return tmp;
}
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;
}
}
/**
@ -5160,6 +5178,67 @@ public class WmsEnumUtil {
}
/**
* 10-PDA20-
* 10
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PLUGIN_TYPE {
PDA_PLUGIN(10, "PDA_PLUGIN", "PDA插件"),
TRANS_PLUGIN(20, "TRANS_PLUGIN", "交易处理插件");
private int value;
private String code;
private String description;
PLUGIN_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getCode() {
return code;
}
public static PLUGIN_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;
}
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;
}
}
/**
* -
* 10
*/

@ -120,6 +120,10 @@ public class BfDataObjectProperty extends BaseBean {
private transient Integer isDeleteWeaklyProperty;
@Transient
@ApiParam(value ="是否为唯一约束字段")
private transient Integer isUniqueProperty;
@Transient
@ApiParam(value ="元素值")
private transient Object propertyFormValue;

@ -142,4 +142,8 @@ public class BfElement extends BaseBean {
@Transient
@ApiParam(value = "元素虚拟属性信息")
private List<BfElementPropertyVirtual> propertyVirtualList;
@Transient
@ApiParam(value = "元素约束信息")
private List<BfElementConstraint> constraintList;
}

@ -0,0 +1,63 @@
package cn.estsh.i3plus.pojo.form.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.BlockFormEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2020-03-12 13:36
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BF_ELEMENT_CONSTRAINT")
@Api(value = "元素约束", description = "元素约束")
public class BfElementConstraint extends BaseBean {
@Column(name = "ELEMENT_ID")
@ApiParam(value = "对象元素ID", example = "-1")
@JsonSerialize(using = ToStringSerializer.class)
private Long elementId;
@Column(name = "CONSTRAINT_NAME")
@ApiParam(value = "约束名称")
private String constraintName;
@Column(name = "CONSTRAINT_TYPE")
@ApiParam(value = "约束类型")
@AnnoOutputColumn(refClass = BlockFormEnumUtil.ELEMENT_CONSTRAINT_TYPE.class)
private Integer constraintType;
@Column(name = "CONSTRAIN_PROPERTY_NAME_RDD")
@ApiParam(value = "约束属性名称")
private String constrainPropertyNameRdd;
@Lob
@Column(name = "CONSTRAIN_PROPERTY_IDS")
@ApiParam(value = "约束属性ids")
private String constrainPropertyIds;
// @Transient
// @ApiParam(value = "元素约束属性信息")
// private List<BfElementConstraintProperty> constraintPropertyList;
}

@ -0,0 +1,56 @@
//package cn.estsh.i3plus.pojo.form.bean;
//
//import cn.estsh.i3plus.pojo.base.bean.BaseBean;
//import com.fasterxml.jackson.databind.annotation.JsonSerialize;
//import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiParam;
//import lombok.Data;
//import lombok.EqualsAndHashCode;
//import org.hibernate.annotations.DynamicInsert;
//import org.hibernate.annotations.DynamicUpdate;
//
//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.Table;
//
///**
// * @Description : 元素约束属性
// * @Reference :
// * @Author : yunhao
// * @CreateDate : 2020-03-12 13:36
// * @Modify:
// **/
//@Data
//@Entity
//@DynamicInsert
//@DynamicUpdate
//@EqualsAndHashCode(callSuper = true)
//@Table(name = "BF_ELEMENT_CONSTRAINT_PROPERTY")
//@Api(value = "元素约束属性", description = "元素约束属性")
//public class BfElementConstraintProperty extends BaseBean {
//
// @Column(name = "CONSTRAINT_ID")
// @ApiParam(value = "约束ID", example = "-1")
// @JsonSerialize(using = ToStringSerializer.class)
// private Long constraintId;
//
// @Column(name = "ELEMENT_PROPERTY_ID")
// @ApiParam(value = "元素属性ID", example = "-1")
// @JsonSerialize(using = ToStringSerializer.class)
// private Long elementPropertyId;
//
// @Column(name = "DATA_OBJECT_PROPERTY_ID")
// @ApiParam(value = "数据对象属性ID", example = "-1")
// @JsonSerialize(using = ToStringSerializer.class)
// private Long dataObjectPropertyId;
//
// @Column(name="PROPERTY_NAME")
// @ApiParam(value ="元素属性名称")
// private String propertyName;
//
// @Column(name="PROPERTY_CODE_RDD")
// @ApiParam(value ="元素属性代码")
// private String propertyCodeRdd;
//
//}

@ -144,6 +144,11 @@ public class BfElementProperty extends BaseBean {
@AnnoOutputColumn(hidden = true)
private BfDataObjectProperty objectProperty;
@Transient
@ApiParam(value ="是否为唯一约束字段")
private transient Integer isUniqueProperty;
// public Object getFormValue() {
// return propertyFormValue == null ? propertyDefaultValue : propertyFormValue;
// }

@ -0,0 +1,14 @@
//package cn.estsh.i3plus.pojo.form.repository;
//
//import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
//import cn.estsh.i3plus.pojo.form.bean.BfElementConstraintProperty;
//
///**
// * @Description : 元素约束属性
// * @Reference :
// * @Author : yunhao
// * @CreateDate : 2019-03-21 20:27
// * @Modify:
// **/
//public interface BfElementConstraintPropertyRepository extends BaseRepository<BfElementConstraintProperty, Long> {
//}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.form.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.form.bean.BfElementConstraint;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-03-21 20:27
* @Modify:
**/
public interface BfElementConstraintRepository extends BaseRepository<BfElementConstraint, Long> {
}

@ -352,4 +352,35 @@ public final class FormHqlPack {
return result;
}
/**
*
* @param bfElementConstraint
* @return DdlPackBean
*/
public static DdlPackBean packHqlBfElementConstraint(BfElementConstraint bfElementConstraint){
DdlPackBean ddlPackBean = new DdlPackBean();
DdlPreparedPack.getStringLikerPack(bfElementConstraint.getConstraintName(), "constraintName", ddlPackBean);
DdlPreparedPack.getNumEqualPack(bfElementConstraint.getElementId(), "elementId", ddlPackBean);
DdlPreparedPack.getNumEqualPack(bfElementConstraint.getConstraintType(), "constraintType", ddlPackBean);
return ddlPackBean;
}
/**
*
* @param bfElementConstraint
* @return DdlPackBean
*/
public static DdlPackBean packHqlBfElementConstraintOnly(BfElementConstraint bfElementConstraint){
DdlPackBean ddlPackBean = new DdlPackBean();
DdlPreparedPack.getNumNOEqualPack(bfElementConstraint.getId(), "id", ddlPackBean);
DdlPreparedPack.getStringLikerPack(bfElementConstraint.getConstraintName(), "constraintName", ddlPackBean);
DdlPreparedPack.getNumEqualPack(bfElementConstraint.getElementId(), "elementId", ddlPackBean);
return ddlPackBean;
}
}

@ -105,4 +105,8 @@ public class MesPlc extends BaseBean implements Serializable {
@Transient
@ApiParam("设备名称")
private String equipmentName;
@Column(name = "TOOLING_CODE ")
@ApiParam("工装代码")
private String toolingCode;
}

@ -0,0 +1,45 @@
package cn.estsh.i3plus.pojo.mes.pcn.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/3/18 0018 - 9:07
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_SN_PHOTO_RELATION")
@Api("条码照片关系")
public class MesSnPhotoRelation extends BaseBean implements Serializable {
private static final long serialVersionUID = -7732648131003455681L;
@Column(name = "SERIAL_NUMBER")
@ApiParam("条码")
private String serialNumber;
@Column(name = "PHOTO_PATH")
@ApiParam("照片路径")
private String photoPath;
@Column(name = "PHOTO_NAME")
@ApiParam("照片名称")
private String photoName;
}

@ -42,4 +42,8 @@ public class MesCachaQueue extends BaseBean implements Serializable {
@ApiParam("缓存类型")
private String cachaType;
@Column(name = "PART_NO")
@ApiParam("物料号")
private String partNo;
}

@ -0,0 +1,48 @@
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:
* @Author: jokelin
* @Date: 2020/3/18 7:33
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_ENCODE_RULE_MAP")
@Api("MES_编码规则映射表")
public class MesEncodeRuleMap extends BaseBean implements Serializable {
private static final long serialVersionUID = 4668354179377433538L;
@Column(name = "TYPE_CODE")
@ApiParam("编码类型代码")
private String typeCode;
@Column(name = "TYPE_NAME")
@ApiParam("编码类型名称")
private String typeName;
@Column(name = "BUSINESS_CODE")
@ApiParam("业务代码")
private String businessCode;
@Column(name = "BUSINESS_VALUE")
@ApiParam("业务值")
private String businessValue;
}

@ -0,0 +1,88 @@
package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
/**
* @Description :MES_
* @Reference :
* @Author : jessica.chen
* @CreateDate : 2020-03-19
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_EQUIPMENT_TOOLING")
@Api("MES_设备工装关系")
public class MesEquipmentTooling extends BaseBean implements Serializable {
private static final long serialVersionUID = 1947971369479107711L;
@Column(name = "EQUIPMENT_CODE")
@ApiParam("设备代码")
private String equipmentCode;
@Column(name = "TOOLING_NO")
@ApiParam("工装编号")
private String toolingNo;
@Column(name = "TOOLING_CODE")
@ApiParam("工装代码")
private String toolingCode ;
@Column(name = "TOOLING_NAME")
@ApiParam("工装名称")
private String toolingName;
@Column(name = "TOOLING_TYPE")
@ApiParam("工装类型")
private Integer toolingType;
@Column(name = "USE_COUNT")
@ApiParam("使用次数")
private Integer useCount;
@Column(name = "START_TIME")
@ApiParam("更换开始时间")
private String startTime;
@Column(name = "END_TIME")
@ApiParam("更换结束时间")
private String endTime;
@Transient
@ApiParam("最大次数")
private Integer useCountMax;
public Integer getToolingType() {
return this.toolingType == null ? 0 : this.toolingType;
}
public Integer getUseCount() {
return this.useCount == null ? 0 : this.useCount;
}
public MesEquipmentTooling(){
}
public MesEquipmentTooling(MesTooling tooling, Integer useCount) {
this.toolingCode = tooling.getToolingCode();
this.toolingName = tooling.getToolingName();
this.useCount = useCount;
this.useCountMax = tooling.getUseCountMax();
}
}

@ -41,4 +41,12 @@ public class MesFaultPhenomenon extends BaseBean implements Serializable {
@Column(name = "PARENT_FP_CODE")
@ApiParam("父阶现象代码")
private String parentFpCode;
@Column(name = "EQUIPMENT_CODE")
@ApiParam("设备代码")
private String equipmentCode;
@Column(name = "FP_TYPE")
@ApiParam("故障现象类型")
private Integer fpType;
}

@ -0,0 +1,59 @@
package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
* @Description :
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-04-02
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_PART_CHECK")
@Api("物料校验项")
public class MesPartCheck extends BaseBean implements Serializable {
private static final long serialVersionUID = -7706120594398072630L;
@Column(name = "PART_NO")
@ApiParam("物料号")
private String partNo;
@Column(name = "OBJECT_CODE")
@ApiParam("对象代码")
private String objectCode;
@Column(name = "CHECK_SPEL_EXPRESS")
@ApiParam("校验表达式")
private String checkSpelExpress;
@Column(name = "TYPE_SPEL_EXPRESS")
@ApiParam("类型表达式")
private String typeSpelExpress;
@Column(name = "RECORD_NUM_SPEL_EXPRESS")
@ApiParam("记录数量表达式")
private String recordNumSpelExpress;
@Column(name = "RECORD_NUM_DESC")
@ApiParam("校验表达式")
private String recordNumDesc;
}

@ -128,4 +128,8 @@ public class MesPlc extends BaseBean implements Serializable {
@Transient
@ApiParam("OPC值")
private String opcValue;
@Column(name = "TOOLING_CODE ")
@ApiParam("工装代码")
private String toolingCode;
}

@ -42,4 +42,8 @@ public class MesProdCfg extends BaseBean implements Serializable {
@Column(name = "PROD_CFG_Type_CODE")
@ApiParam("产品配置类型代码")
private String prodCfgTypeCode;
@Column(name = "PROD_CFG_TYPE")
@ApiParam("产品配置类型")
private String prodCfgType;
}

@ -13,7 +13,6 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
/**
* @Description :

@ -58,4 +58,8 @@ public class MesQueueJitActualDetail extends BaseBean implements Serializable {
@Column(name = "GROUP_NO")
@ApiParam("组内编号")
private Integer groupNo;
@Column(name = "GROUP_SEQ")
@ApiParam("分组序号")
private String groupSeq;
}

@ -76,7 +76,7 @@ public class MesQueueOrderDetail extends BaseBean implements Serializable {
@ApiParam("产品类型名称")
private String pptCode;
@Column(name = "QUEUE_GROUP_NO")
@Column(name = "QUEUE_GROUP_NO")
@ApiParam("分组队列编号")
private String queueGroupNo;
@ -84,10 +84,18 @@ public class MesQueueOrderDetail extends BaseBean implements Serializable {
@ApiParam("组内编号")
private Integer groupNo;
@Column(name = "IS_GROUP_PRINTED")
@ApiParam("料架是否已打印")
private Integer isGroupPrinted;
@Transient
@ApiParam("队列序号")
private Double queueSeq;
@Column(name = "FINSIH_QTY")
@ApiParam("已生产数量")
private Double finsihQty;
public double getQueueSeqVal() {
return this.queueSeq == null ? 0.0d : this.queueSeq;
}

@ -0,0 +1,45 @@
package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/3/18 0018 - 9:02
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_SN_PHOTO_RELATION")
@Api("条码照片关系")
public class MesSnPhotoRelation extends BaseBean implements Serializable {
private static final long serialVersionUID = -3062206473345277360L;
@Column(name = "SERIAL_NUMBER")
@ApiParam("条码")
private String serialNumber;
@Column(name = "PHOTO_PATH")
@ApiParam("照片路径")
private String photoPath;
@Column(name = "PHOTO_NAME")
@ApiParam("照片名称")
private String photoName;
}

@ -78,6 +78,10 @@ public class MesStationBom extends BaseBean implements Serializable {
@ApiParam(value = "是否绑定关键件")
private Integer isBindKey;
@Column(name = "MATCH_RULE")
@ApiParam(value = "匹配规则")
private Integer matchRule;
@Transient
@ApiParam("是否已绑定")
private Boolean isBind;
@ -114,6 +118,14 @@ public class MesStationBom extends BaseBean implements Serializable {
@ApiParam(value = "是否绑定关键件名称")
private String isBindKeyName;
@Transient
@ApiParam("是否扫描")
private Boolean isScan = false;
@Transient
@ApiParam("半成品条码")
private String halfProductSn;
public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty;
}

@ -0,0 +1,52 @@
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
* @Reference :
* @Author : qianhuasheng
* @CreateDate : 2020-03-19
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_TOOLING")
@Api("MES工装类型")
public class MesTooling extends BaseBean implements Serializable {
private static final long serialVersionUID = -5033127912658757665L;
@Column(name = "TOOLING_CODE ")
@ApiParam("工装代码")
private String toolingCode ;
@Column(name = "TOOLING_NAME")
@ApiParam("工装名称")
private String toolingName;
@Column(name = "TOOLING_TYPE")
@ApiParam("工装类型")
private Integer toolingType;
@Column(name = "USE_COUNT_MAX")
@ApiParam("最大使用次数")
private Integer useCountMax;
@Column(name = "USE_TIME_MAX")
@ApiParam("最大使用时间")
private String useTimeMax;
}

@ -0,0 +1,79 @@
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_
* @Reference :
* @Author : jessica.chen
* @CreateDate : 2020-03-20
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_TOOLING_ACTION_RECORD")
@Api("MES_工装操作记录")
public class MesToolingActionRecord extends BaseBean implements Serializable {
private static final long serialVersionUID = 1947971369479107712L;
@Column(name = "TOOLING_NO")
@ApiParam("工装编号")
private String toolingNo;
@Column(name = "ACTION_TYPE")
@ApiParam("操作类型")
private Integer actionType;
@Column(name = "EQUIPMENT_CODE")
@ApiParam("设备代码")
private String equipmentCode;
@Column(name = "TOOLING_CODE")
@ApiParam("工装代码")
private String toolingCode ;
@Column(name = "TOOLING_NAME")
@ApiParam("工装名称")
private String toolingName;
@Column(name = "TOOLING_TYPE")
@ApiParam("工装类型")
private Integer toolingType;
@Column(name = "USE_COUNT")
@ApiParam("使用次数")
private Integer useCount;
@Column(name = "START_TIME")
@ApiParam("更换开始时间")
private String startTime;
@Column(name = "END_TIME")
@ApiParam("更换结束时间")
private String endTime;
public Integer getToolingType() {
return this.toolingType == null ? 0 : this.toolingType;
}
public Integer getUseCount() {
return this.useCount == null ? 0 : this.useCount;
}
}

@ -15,7 +15,7 @@ import javax.persistence.Table;
import java.io.Serializable;
/**
* @Description :
* @Description :
* @Reference :
* @Author :QianHuaSheng
* @CreateDate : 2020-03-12 7:45

@ -51,5 +51,9 @@ public class MesWorkModule extends BaseBean implements Serializable {
@ApiParam("触发类型")
private Integer triggerType;
@Column(name = "SEQ")
@ApiParam("顺序号")
private Integer seq;
}

@ -0,0 +1,35 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @Description:
* @Author: jokelin
* @Date: 2020/3/17 3:47
* @Modify:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ButtonDynamicModel {
private Long id;
@ApiParam("按钮名称")
private String buttonName;
@ApiParam("按钮代码")
private String buttonCode;
@ApiParam("调用类")
private String callClass;
public ButtonDynamicModel(Long id, String buttonName, String buttonCode) {
this.id = id;
this.buttonName = buttonName;
this.buttonCode = buttonCode;
}
}

@ -0,0 +1,29 @@
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;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Api("数据复核model")
public class DataReviewStepModel {
@ApiParam("关键件")
private String itemPartNo;
@ApiParam("需要数量")
private String needNum;
@ApiParam("实际数量")
private String realNum;
@ApiParam("对象代码")
private String objectCode;
}

@ -0,0 +1,87 @@
package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.mes.annotation.ElasticSearch;
import cn.estsh.i3plus.pojo.mes.annotation.Json4Es;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @Description:
* @Author: jokelin
* @Date: 2020/3/20 5:51
* @Modify:
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ElasticSearch
public class EsProductData extends BaseBean implements Serializable {
private static final long serialVersionUID = 4514407617515827040L;
@ApiParam("工作中心")
private String workCenterCode;
@ApiParam("工作中心名称")
private String workCenterName;
@ApiParam("工作单元")
private String workCellCode;
@ApiParam("工作单元名称")
private String workCellName;
@ApiParam("过程条码")
private String serialNumber;
@ApiParam("产品条码")
private String productSn;
@ApiParam("工单号")
private String orderNo;
@ApiParam("物料号")
private String partNo;
@ApiParam("物料名称")
private String partDesc;
@ApiParam("设备代码")
private String equCode;
@ApiParam("设备名称")
private String equName;
@ApiParam("对象代码")
private String objectCode;
@ApiParam("对象名称")
private String objectName;
@ApiParam("字段代码")
private String fieldCode;
@ApiParam("字段名称")
private String fieldName;
@ApiParam("字段值")
private String fieldValue;
@ApiParam("数据行号")
private String rowNo;
@ApiParam("数据组号")
private String groupNo;
@Json4Es
@ApiParam("生产数据")
private String lineData;
@ApiParam("字段总数")
private Integer fieldNum;
}

@ -0,0 +1,24 @@
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.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Api("生产数据缓存model")
public class ProductDataCacheModel {
@ApiParam("对象代码")
private String objectCode;
@ApiParam("字段名称")
private List<ProductDataModel> productDataModelList;
}

@ -0,0 +1,37 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @Description:
* @Author: jokelin
* @Date: 2020/3/20 9:02
* @Modify:
*/
@Data
public class QueueJitActualModule {
private Long id;
@ApiParam("vin")
private String vinCode;
@ApiParam("排序号")
private Double seq;
@ApiParam("分组队列编号")
private String queueGroupNo;
@ApiParam("组内编号")
private Integer groupNo;
public QueueJitActualModule() {
}
public QueueJitActualModule(Long id, String vinCode, Double seq, String queueGroupNo, Integer groupNo) {
this.id = id;
this.vinCode = vinCode;
this.seq = seq;
this.queueGroupNo = queueGroupNo;
this.groupNo = groupNo;
}
}

@ -49,6 +49,23 @@ public class QueueOrderModel implements Serializable {
private String workCenterCode;
@ApiParam("工位")
private String workCellCode;
@ApiParam("队列类型")
private Integer queueType;
@ApiParam("已生产数量")
private Double finsihQty;
@ApiParam("包装数量")
private Double qty;
@ApiParam("生产组代码")
private String pgCode;
@ApiParam("分组队列编号")
private String queueGroupNo;
@ApiParam("组内编号")
private Integer groupNo;
@ApiParam("产品配置代码")
private String prodCfgCode;
public QueueOrderModel() {
}
@ -68,6 +85,23 @@ public class QueueOrderModel implements Serializable {
}
public QueueOrderModel(Long id, Double queueSeq, Double queDetailSeq, String custFlagNo, String prodCfgNameRdd, String categoryNameRdd,
String serialNumber, String partNo, String partNameRdd, Integer snStatus, String workType,Double finsihQty,Double qty) {
this.id = id;
this.queueSeq = queueSeq;
this.queDetailSeq = queDetailSeq;
this.custFlagNo = custFlagNo;
this.prodCfgNameRdd = prodCfgNameRdd;
this.categoryNameRdd = categoryNameRdd;
this.serialNumber = serialNumber;
this.partNo = partNo;
this.partNameRdd = partNameRdd;
this.snStatus = snStatus;
this.workType = workType;
this.finsihQty=finsihQty;
this.qty=qty;
}
public QueueOrderModel(Long id, Double queueSeq, Double queDetailSeq, String custFlagNo, String prodCfgNameRdd, String categoryNameRdd,
String serialNumber, String partNo, String partNameRdd, Integer snStatus, String workType) {
this.id = id;
this.queueSeq = queueSeq;
@ -81,4 +115,13 @@ public class QueueOrderModel implements Serializable {
this.snStatus = snStatus;
this.workType = workType;
}
public QueueOrderModel(Long id, Double queDetailSeq, String pgCode, String queueGroupNo, Integer groupNo, String prodCfgCode) {
this.id = id;
this.queDetailSeq = queDetailSeq;
this.pgCode = pgCode;
this.queueGroupNo = queueGroupNo;
this.groupNo = groupNo;
this.prodCfgCode = prodCfgCode;
}
}

@ -63,6 +63,8 @@ public class StationRequestBean implements Serializable {
@ApiParam("工步代码")
private String stepCode;
@ApiParam("强制执行工步代码")
private String forceSpecStepCode;
/**
* doScan-doModule-,initModule-
*/

@ -72,4 +72,24 @@ public class StepPrintSnModel extends MesProduceSn {
@ApiParam("包装层级 1-第一层2-第二层3-第三层4-第四层")
private Integer packLevel;
@ApiParam("生产组代码")
private String pgCode;
@ApiParam("分组队列编号")
private String queueGroupNo;
@ApiParam("组内编号")
private Integer groupNo;
@ApiParam("产品配置代码")
private String prodCfgCode;
@ApiParam("队列生产明细序号")
private Double queDetailSeq;
@ApiParam("vin")
private String vinCode;
@ApiParam("客户JIT生产队列排序号")
private Double seq;
@ApiParam("jit车号")
private String jitCarNo;
@ApiParam("车型代码")
private String carModuleCode;
}

@ -0,0 +1,13 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesEncodeRuleMap;
/**
* @Description:
* @Author: jokelin
* @Date: 2020/3/18 7:36
* @Modify:
*/
public interface MesEncodeRuleMapRepository extends BaseRepository<MesEncodeRuleMap, Long> {
}

@ -0,0 +1,17 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesArea;
import cn.estsh.i3plus.pojo.mes.bean.MesEquipmentTooling;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jack.jia
* @CreateDate : 2019-04-02
* @Modify:
**/
@Repository
public interface MesEquipmentToolingRepository extends BaseRepository<MesEquipmentTooling, 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.MesPartCheck;
/**
* @Description:
* @Reference:
* @Author: wangjie
* @CreateDate: 2019\11\18 10:34
* @Modify:
**/
public interface MesPartCheckRepository extends BaseRepository<MesPartCheck, 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.MesShiftRest;
import cn.estsh.i3plus.pojo.mes.bean.MesSnPhotoRelation;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/3/18 0018 - 9:18
*/
@Repository
public interface MesSnPhotoRelationRepository extends BaseRepository<MesSnPhotoRelation, Long> {
}

@ -0,0 +1,17 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesEquipmentTooling;
import cn.estsh.i3plus.pojo.mes.bean.MesToolingActionRecord;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jack.jia
* @CreateDate : 2019-04-02
* @Modify:
**/
@Repository
public interface MesToolingActionRecordRepository extends BaseRepository<MesToolingActionRecord, 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.MesTooling;
/**
* @Description :MES
* @Reference :
* @Author : qianhuasheng
* @CreateDate : 2020-03-19
* @Modify:
**/
public interface MesToolingRepository extends BaseRepository<MesTooling, Long> {
}

@ -61,4 +61,8 @@ public class PtlAreaRouteModuleParam extends BaseBean implements Serializable {
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
@ApiParam("参数值")
private String paramValue;
@Column(name = "STATUS_CODE")
@ApiParam("状态代码")
private String statusCode;
}

@ -92,4 +92,8 @@ public class PtlAreaTask extends BaseBean implements Serializable {
@Column(name = "qty")
@ApiParam("数量")
private Integer qty;
@Column(name = "TRAY_NO")
@ApiParam("托盘号")
private String trayNo;
}

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

@ -0,0 +1,89 @@
package cn.estsh.i3plus.pojo.wms.bean.plugin;
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 : siliter.yuan
* @CreateDate : 2020-03-17 14:21
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="BAS_PLUGIN")
@Api("插件信息")
public class BasPlugin extends BaseBean{
private static final long serialVersionUID = 9214639813072592779L;
@Column(name="PLUGIN_NAME")
@ApiParam("插件名称")
private String pluginName;
@Column(name="PLUGIN_IMAGE")
@ApiParam("插件图片")
private String pluginImage;
@Column(name="PLUGIN_URL")
@ApiParam("插件URL地址")
private String pluginUrl;
@Column(name="PLUGIN_PATH")
@ApiParam("插件文件地址")
private String pluginPath;
@Column(name="PLUGIN_FILE_ID")
@ApiParam(value = "插件文件ID", example = "0")
private Long pluginFileId;
@Column(name="PLUGIN_DESC")
@ApiParam("插件描述")
private String pluginDesc;
@Column(name="SERVICE_NAME")
@ApiParam("服务名称")
private String serviceName;
@Column(name="REQUEST_URL")
@ApiParam("请求路径")
private String requestUrl;
@Column(name = "COPYRIGHT")
@ApiParam(value = "版权")
private String copyRight;
@Column(name = "AUTHOR")
@ApiParam(value = "作者")
private String author;
/**
* 1-2-
*/
@Column(name = "PLUGIN_STATUS")
@ApiParam(value = "插件状态", example = "1")
private Integer pluginStatus;
@Column(name = "PLUGIN_PACKAGE_NAME")
@ApiParam(value = "插件项目包名称")
private String pluginPackName;
/**
* 10-PDA20-
*/
@Column(name="PLUGIN_TYPE")
@ApiParam(value = "插件类型", example = "10")
private Integer pluginType;
}

@ -0,0 +1,47 @@
package cn.estsh.i3plus.pojo.wms.bean.plugin;
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;
/**
* @Description :
* @Reference :
* @Author : siliter.yuan
* @CreateDate : 2020-03-17 14:21
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="BAS_PLUGIN_CLASS")
@Api("插件类信息")
public class BasPluginClass extends BaseBean{
private static final long serialVersionUID = 9214639813072592779L;
@Column(name="PLUGIN_ID")
@ApiParam(value = "插件编号", example = "0")
private Long pluginId;
@Column(name="BEAN_NAME")
@ApiParam("Bean名称")
private String beanName;
@Column(name="CLASS_NAME")
@ApiParam("插件类名称")
private String className;
@Lob
@Column(name="CLASS_BYTE", length = 100000)
@ApiParam("插件类字节码")
private byte[] classByte;
}

@ -0,0 +1,34 @@
package cn.estsh.i3plus.pojo.wms.modelbean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
* @Description :
* @Reference :
* @Author : siliter.yuan
* @CreateDate : 2020-03-23 11:18
* @Modify:
**/
@Data
@AllArgsConstructor
@Api("插件日志")
public class BasPluginLoggerModel {
@ApiParam("插件名称")
private String pluginName;
@ApiParam("插件实例类名称")
private String className;
@ApiParam("插件调用方法名称")
private String methodName;
@ApiParam("插件日志内容")
private String loggerContext;
@ApiParam("日志打印日期")
private String printDate;
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.bean.plugin.BasPluginClass;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : siliter.yuan
* @CreateDate : 2020-03-17 15:17
* @Modify:
**/
@Repository
public interface BasPluginClassRepository extends BaseRepository<BasPluginClass, Long> {
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.bean.plugin.BasPlugin;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : siliter.yuan
* @CreateDate : 2020-03-17 15:17
* @Modify:
**/
@Repository
public interface BasPluginRepository extends BaseRepository<BasPlugin, Long> {
}

@ -10,6 +10,7 @@ import cn.estsh.i3plus.pojo.base.util.StringUtil;
import cn.estsh.i3plus.pojo.wms.bean.*;
import cn.estsh.i3plus.pojo.wms.bean.dynamictable.WmsFieldInfo;
import cn.estsh.i3plus.pojo.wms.bean.dynamictable.WmsSearchElementFunction;
import cn.estsh.i3plus.pojo.wms.bean.plugin.BasPlugin;
import cn.estsh.i3plus.pojo.wms.dbinterface.WmsInterfaceDataMapper;
import cn.estsh.i3plus.pojo.wms.engine.rule.EngineRulePersistence;
import cn.estsh.i3plus.pojo.wms.engine.script.EngineScriptPersistence;
@ -2859,4 +2860,18 @@ public class WmsHqlPack {
return result;
}
/**
*
* @param plugin
* @return
*/
public static DdlPackBean packHqlBasPlugin(BasPlugin plugin) {
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringLikerPack(plugin.getPluginName(), "pluginName", result);
DdlPreparedPack.getStringLikerPack(plugin.getAuthor(), "author", result);
DdlPreparedPack.getNumEqualPack(plugin.getPluginStatus(), "pluginStatus", result);
getStringBuilderPack(plugin, result);
return result;
}
}

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

Loading…
Cancel
Save