Merge branch 'test'

yun-zuoyi
王杰 5 years ago
commit 45a1b63a23

@ -5,6 +5,7 @@ import cn.estsh.i3plus.pojo.aps.annotation.MainKey;
import cn.estsh.i3plus.pojo.aps.annotation.RippleAnnotation;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
import cn.estsh.i3plus.pojo.aps.holders.EBaseOrder;
import cn.estsh.i3plus.pojo.aps.holders.EMaterial;
import cn.estsh.i3plus.pojo.aps.validator.InsertGroup;
import cn.estsh.i3plus.pojo.aps.validator.UpdateGroup;
@ -60,6 +61,11 @@ public class Material extends BaseAPS {
@FieldAnnotation(defaultValue = "ONEBYONE")
private ApsEnumUtil.REPLENISHMENT_TYPE replType;
@Column(name="GROUP_ID")
@ApiParam(value ="物料组")
@FieldAnnotation(relation = "Material")
private Long groupId;
@Column(name="PURCHASE_LEAD_TIME")
@ApiParam(value ="采购提前期")
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.DURATION)
@ -151,6 +157,18 @@ public class Material extends BaseAPS {
@ApiParam(value ="标签颜色")
private String labelColor;
public Material getGroup() {
return BeanRelation.get(this, EMaterial.Group);
}
public void setGroup(Material material) {
this.groupId = material != null ? material.getId() : 0l;
BeanRelation.set(this, EMaterial.Group, material);
}
@JsonBackReference
public List<Material> getChilds() { return BeanRelation.list(this, EMaterial.Childs); }
@JsonBackReference
public List<ProductRouting> getProductRoutings() {
return BeanRelation.list(this, EMaterial.ProductRoutings);

@ -117,16 +117,6 @@ public class Resource extends BaseAPS {
@FieldAnnotation(multiEnumClass = ApsEnumUtil.EFFICIENCY_EFFECT.class)
private Integer timeTailRound;
@Column(name="LOCK_TYPE")
@ApiParam(value ="锁定类型")
@FieldAnnotation(defaultValue = "NONE")
private ApsEnumUtil.RESOURCE_LOCK_TYPE lockType;
@Column(name="LOCK_TIME")
@ApiParam(value ="锁定时间长度")
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.DURATION)
private String lockTime;
@ApiParam(value ="是否存在任务冲突")
@FieldAnnotation(property = false)
@Transient

@ -65,9 +65,4 @@ public class StandOperation extends BaseAPS {
@ApiParam(value ="生产组合方式")
@FieldAnnotation(defaultValue = "MAX_ALL_RESOURCE")
private ApsEnumUtil.RES_COMB_TIME_TYPE combType;
@Column(name="LOCK_TYPE")
@ApiParam(value ="锁定组合方式")
@FieldAnnotation(defaultValue = "MAX_ALL_RESOURCE")
private ApsEnumUtil.RES_COMB_LOCK_TYPE lockType;
}

@ -99,22 +99,6 @@ public class WorkPlan extends BaseAPS {
@FieldAnnotation(modify = false, editType = ApsEnumUtil.EDIT_TYPE.DURATION)
private Integer postSetTime;
@Column(name="LOCK_BEGIN")
@ApiParam(value ="锁定开始时间")
@FieldAnnotation(modify = false)
@RippleAnnotation(dependence = {"MainWork.PostRelations.PostWork.MainPlan.produceBegin", "produceBegin"}, method = "calcPositiveLock")
private Date lockBegin;
@Column(name="LOCK_END")
@ApiParam(value ="锁定结束时间")
@FieldAnnotation(modify = false)
private Date lockEnd;
@Column(name="LOCK_TIME")
@ApiParam(value ="锁定时间")
@FieldAnnotation(modify = false, editType = ApsEnumUtil.EDIT_TYPE.DURATION)
private Integer lockTime;
@Column(name="FORCE_POST_SET_ZERO")
@ApiParam(value ="是否将后设置时间强制设置成0")
@FieldAnnotation(property = false)

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.aps.holders;
public enum EMaterial {
Group,
Childs,
ProductRoutings,
OperInputs,
OperOutputs,

@ -2,4 +2,6 @@
<Class name="Material">
<Relation field="ProductRoutings" name="ProductRouting" reverse="Material" type="ONE_TO_MULTI" owner="true">
</Relation>
<Relation field="Childs" name="Material" reverse="Group" type="ONE_TO_MULTI" owner="false">
</Relation>
</Class>

@ -107,6 +107,10 @@ public class BaseThreadLocal {
public static final String EMP_NAME = "USER_NAME"; //用户名
public static final String ORGANIZE_CODE = "ORGANIZE_CODE"; //组织代码
public static final String LANGUAGE_CODE = "LANGUAGE_CODE"; //语言代码
/**
*
*/
public static final String OSS_LOGIN = "OSS_LOGIN";
public static boolean isInit() {
Object data = getData(INIT_INFO);
@ -133,6 +137,7 @@ public class BaseThreadLocal {
}
return empName;
}
//获取线程中的组织代码
public static String getThreadOrganizeCode() {
String organizeCode = getDataStr(ORGANIZE_CODE);
@ -141,6 +146,7 @@ public class BaseThreadLocal {
}
return organizeCode;
}
//获取线程中的语言代码
public static String getThreadLanguageCode() {
String organizeCode = getDataStr(LANGUAGE_CODE);

@ -471,32 +471,6 @@ public class ApsEnumUtil {
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RES_COMB_LOCK_TYPE {
KEEP_ORIGIN("KEEP_ORIGIN", "各自锁定"),
MAIN_LOCK("MAIN_LOCK", "主资源锁定"),
MAX_ALL_RESOURCE("MAX_ALL_RESOURCE", "最大锁定时间");
private String value;
private String description;
RES_COMB_LOCK_TYPE(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -958,8 +932,7 @@ public class ApsEnumUtil {
public enum PLAN_TYPE {
PREV_SET("", "前设置"),
PRODUCE("", "生产"),
POST_SET("", "后设置"),
LOCK("", "锁定");
POST_SET("", "后设置");
private String value;
private String description;

@ -20,20 +20,28 @@ public class CommonEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SOFT_TYPE {
/** WMS 服务 */
/**
* WMS
*/
WMS(3, 8200, 10, 102000000L, "i3wms", "仓库管理软件"),
SWEB(7, 8800, 19, 108000000L, "i3sweb", "供应商服务"),
QMS(5, 0, 0, 0, "i3qms", "质量管理软件"),
/** Mes 服务 */
/**
* Mes
*/
MES(4, 8300, 11, 103000000L, "i3mes", "生产管理软件"),
MES_PCN(6, 8350, 12, 107000000L, "i3mes-pcn", "生产管理软件-节点中心"),
/** PTL 服务 */
/**
* PTL
*/
PTL(8, 8700, 20, 111000000L, "i3ptl", "亮灯自动拣选"),
PTL_PCN(9, 8750, 21, 109000000L, "i3ptl-pcn", "亮灯自动拣选-节点中心"),
/** Block 服务 */
/**
* Block
*/
FORM(20, 8900, 16, 104000000L, "block-form", "智能表单"),
REPORT(21, 8910, 17, 105000000L, "block-report", "智能报表"),
WORKFLOW(22, 0, 0, 0, "block-workflow", "智能工作流"),
@ -41,42 +49,66 @@ public class CommonEnumUtil {
SOFTSWITCH(24, 8920, 18, 130000000L, "block-softswitch", "软件适配器"),
HARDSWITCH(25, 0, 0, 0, "block-hardswitch", "硬件适配器"),
/** LAC 服务 */
/**
* LAC
*/
LAC(26, 8600, 13, 150000000L, "lac", "连接适配器"),
/** 安灯服务 */
/**
*
*/
ANDON(27, 8500, 14, 110000000L, "andon", "安灯"),
/** 计划排产服务 */
/**
*
*/
APS(28, 8400, 15, 140000000L, "i3aps", "高级计划与排产"),
SURFACE(98, 0, 0, 0, "i3surface", "对外服务"),
/** 基础服务 */
/**
*
*/
IMPP(1, 0, 0, 100000000L, "impp-platform", "IMPP平台"),
CONSOLE(95, 8010, 0, 0, "impp-console", "服务监控台"),
GATEWAY(96, 9000, 0, 0, "impp-gateway", "服务网关"),
CLOUD(97, 0, 0, 0, "i3cloud", "微服务"),
CENTER(99, 8000, 1, 0, "icloud-server", "注册中心"),
/** 平台服务 */
/**
*
*/
CORE(2, 8100, 4, 101000000L, "i3core", "i3业务平台"),
MDM(29, 8150, 22, 0, "i3mdm", "数据中心MDM"),
/** 调试服务 */
/**
*
*/
DEV(9999, 0000, 0, 120000000L, "Development", "系统调试");
/** 产品ID */
/**
* ID
*/
private int value;
/** 应用默认端口 */
/**
*
*/
private int port;
/** 应用默认雪花DataBaseId(0-31)共32 个存储区 */
/**
* DataBaseId(0-31)32
*/
private int snowflakeId;
/** 产品代码 */
/**
*
*/
private String code;
/** 顶级菜单代码 */
/**
*
*/
private long menuRootId;
/** 产品描述 */
/**
*
*/
private String description;
SOFT_TYPE(int value, int port, int snowflakeId, long menuRootCode, String code, String description) {
@ -177,6 +209,7 @@ public class CommonEnumUtil {
}
return null;
}
public synchronized static int descriptionOfValue(String desc) {
int tmp = IMPP.value;
for (int i = 0; i < values().length; i++) {
@ -187,6 +220,7 @@ public class CommonEnumUtil {
}
return tmp;
}
public static int descOf(String desc) {
int tmp = IMPP.value;
for (int i = 0; i < values().length; i++) {
@ -262,8 +296,13 @@ public class CommonEnumUtil {
return null;
}
public static String valueOfDescription(int val) {return valueOf(val);}
public static int descriptionOfValue(String desc) {return descOf(desc);}
public static String valueOfDescription(int val) {
return valueOf(val);
}
public static int descriptionOfValue(String desc) {
return descOf(desc);
}
public static boolean valueOfBoolean(int val) {
if (val == TRUE.value) {
@ -348,6 +387,7 @@ public class CommonEnumUtil {
}
return tmp;
}
public static int descOf(String desc) {
int tmp = COMMON.value;
for (int i = 0; i < values().length; i++) {
@ -357,9 +397,11 @@ public class CommonEnumUtil {
}
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
public static int descriptionOfValue(String val) {
return descOf(val);
}
@ -508,6 +550,7 @@ public class CommonEnumUtil {
return tmp;
}
}
/**
*
* 1
@ -569,6 +612,7 @@ public class CommonEnumUtil {
return tmp;
}
}
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum USER_INFO_STATUS {
INCUMBENT(1, "正常", "正常_NORMAL"),
@ -991,6 +1035,7 @@ public class CommonEnumUtil {
/**
* -1
*
* @param desc
* @return
*/
@ -1051,6 +1096,7 @@ public class CommonEnumUtil {
}
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
@ -1092,6 +1138,7 @@ public class CommonEnumUtil {
this.value = value;
this.description = description;
}
public static CONTENT_TYPE valueOfContenType(String val) {
CONTENT_TYPE tmp = null;
for (int i = 0; i < values().length; i++) {
@ -2216,6 +2263,7 @@ public class CommonEnumUtil {
public String getPath() {
return path;
}
public String getTag() {
return tag;
}
@ -2295,7 +2343,6 @@ public class CommonEnumUtil {
}
public static String valueOfCode(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
@ -2466,7 +2513,6 @@ public class CommonEnumUtil {
}
/**
*
*/
@ -2687,5 +2733,4 @@ public class CommonEnumUtil {
}
}

@ -1032,10 +1032,10 @@ public class ImppEnumUtil {
REF_OBJECT(3, "对象"),
REF_DICT(4, "字典");
private int value;
private String description;
private final int value;
private final String description;
private COL_REF_TYPE(int value, String description) {
COL_REF_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
@ -1084,8 +1084,8 @@ public class ImppEnumUtil {
WORK_WECHAT(8, "企业微信配置"),
SMS(9, "短信配置");
private int value;
private String description;
private final int value;
private final String description;
public int getValue() {
return value;
@ -1095,7 +1095,7 @@ public class ImppEnumUtil {
return description;
}
private SYS_CONFIG_GROUP(int value, String description) {
SYS_CONFIG_GROUP(int value, String description) {
this.value = value;
this.description = description;
}
@ -1118,8 +1118,8 @@ public class ImppEnumUtil {
EXTERNAL(2, "外部人员"),
URGENT(3, "紧急联系人"),
SUPPLIER(4, "供应商");
private int value;
private String description;
private final int value;
private final String description;
public int getValue() {
return value;
@ -1129,7 +1129,7 @@ public class ImppEnumUtil {
return description;
}
private MESSAGE_RECEIVER_TYPE(int value, String description) {
MESSAGE_RECEIVER_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
@ -1222,8 +1222,8 @@ public class ImppEnumUtil {
public enum DICTIONARY_GROUP {
SYSTEM(1, "系统字典"),
EXTERNAL(2, "业务字典");
private int value;
private String description;
private final int value;
private final String description;
public int getValue() {
return value;
@ -1233,7 +1233,7 @@ public class ImppEnumUtil {
return description;
}
private DICTIONARY_GROUP(int value, String description) {
DICTIONARY_GROUP(int value, String description) {
this.value = value;
this.description = description;
}
@ -1256,8 +1256,8 @@ public class ImppEnumUtil {
public enum LOG_STORAGE {
// MONGO(1, "MongoDB"),
ELASTICSEARCH(2, "Elasticsearch");
private int value;
private String description;
private final int value;
private final String description;
public int getValue() {
return value;
@ -1267,7 +1267,7 @@ public class ImppEnumUtil {
return description;
}
private LOG_STORAGE(int value, String description) {
LOG_STORAGE(int value, String description) {
this.value = value;
this.description = description;
}
@ -1299,8 +1299,8 @@ public class ImppEnumUtil {
public enum CHECK_TEXT {
PASSWORD_VERIFY(1, "保存策略"),
PASSWORD_LOGIN(2, "登录策略");
private int value;
private String description;
private final int value;
private final String description;
public int getValue() {
return value;
@ -1310,7 +1310,7 @@ public class ImppEnumUtil {
return description;
}
private CHECK_TEXT(int value, String description) {
CHECK_TEXT(int value, String description) {
this.value = value;
this.description = description;
}
@ -1342,8 +1342,8 @@ public class ImppEnumUtil {
public enum USER_CUSTOMIZE_CONFIG_TYPE {
WEB_TABLE_SHOW_COL(10, "前端表格显示列");
private int value;
private String description;
private final int value;
private final String description;
USER_CUSTOMIZE_CONFIG_TYPE(int value, String description) {
this.value = value;
@ -1387,8 +1387,8 @@ public class ImppEnumUtil {
public enum USER_EXTERNAL_REF {
WORK_WECHAT(10, "企业微信");
private int value;
private String description;
private final int value;
private final String description;
USER_EXTERNAL_REF(int value, String description) {
this.value = value;
@ -1437,10 +1437,10 @@ public class ImppEnumUtil {
USER_EMP_NO("empNo", "工号"),
USER_WECHAT_NO("userWeChatNo", "微信号");
private String value;
private String description;
private final String value;
private final String description;
private USER_BIND_PROPERTY(String value, String description) {
USER_BIND_PROPERTY(String value, String description) {
this.value = value;
this.description = description;
}
@ -1638,4 +1638,36 @@ public class ImppEnumUtil {
return tmp;
}
}
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum AUTH_LOGIN_STRATEGY {
ACCOUNT(10, "Default", "defaultLoginStrategy", "账户密码登录"),
E9(20, "E9", "e9LoginStrategy", "泛微单点登录策略");
private final int value;
private final String code;
private final String strategyName;
private final String description;
AUTH_LOGIN_STRATEGY(int value, String code, String strategyName, String description) {
this.value = value;
this.code = code;
this.strategyName = strategyName;
this.description = description;
}
public String getCode() {
return code;
}
public static String codeOfStrategyName(String code) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].strategyName;
}
}
return tmp;
}
}
}

@ -6098,4 +6098,54 @@ public class MesPcnEnumUtil {
return description;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TORQUE_VERSION {
PF6_2_0("PF6-2.0", "002000010030 00 \0", "PF6 2.0"),
PF6_3_0("PF6-3.0", "002000010060 00 \0", "PF6 3.0");
private String value;
private String code;
private String description;
TORQUE_VERSION(String code, String value, String description) {
this.code = code;
this.value = value;
this.description = description;
}
public String getCode() {
return code;
}
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;
}
public static TORQUE_VERSION getByCode(String code) {
for (TORQUE_VERSION torqueVersion : values()) {
if (torqueVersion.getCode().equals(code)) {
return torqueVersion;
}
}
return null;
}
}
}

@ -816,4 +816,102 @@ public class PtlEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum FINISH_TAG_LIGHT_MUSIC_CMD {
FINISH_TAG_LIGHT_MUSIC_00H("00", 1, "Jingle bells"),
FINISH_TAG_LIGHT_MUSIC_01H("01", 2, "Carmen"),
FINISH_TAG_LIGHT_MUSIC_02H("02", 3, "Happy Chinese new year"),
FINISH_TAG_LIGHT_MUSIC_03H("03", 4, "Edelweiss"),
FINISH_TAG_LIGHT_MUSIC_04H("04", 5, "Going home"),
FINISH_TAG_LIGHT_MUSIC_05H("05", 6, "PAPALA"),
FINISH_TAG_LIGHT_MUSIC_06H("06", 7, "Classical"),
FINISH_TAG_LIGHT_MUSIC_07H("07", 8, "Listen to the rhythm of the falling rain"),
FINISH_TAG_LIGHT_MUSIC_08H("08", 9, "Rock and roll"),
FINISH_TAG_LIGHT_MUSIC_09H("09", 10, "Happy birthday"),
FINISH_TAG_LIGHT_MUSIC_0AH("0A", 11, "Do Re Me"),
FINISH_TAG_LIGHT_MUSIC_0BH("0B", 12, "Strauss");
private String code;
private Integer value;
private String description;
FINISH_TAG_LIGHT_MUSIC_CMD(String code, Integer value, String description) {
this.code = code;
this.value = value;
this.description = description;
}
public static String valueOf(int value) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
tmp = values()[i].code;
}
}
return tmp;
}
public String getCode() {
return code;
}
public Integer getValue() {
return value;
}
public String getDescription() {
return description;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TAG_LIGHT_COLOR_CMD {
TAG_LIGHT_COLOR_RED("00", 1, "红"),
TAG_LIGHT_COLOR_GREEN("01", 2, "绿"),
TAG_LIGHT_COLOR_ORANGE("02", 3, "橙"),
TAG_LIGHT_COLOR_BLUE("03", 4, "蓝"),
TAG_LIGHT_COLOR_PINK_RED("04", 5, "粉红"),
TAG_LIGHT_COLOR_BLUE_GREEN("05", 6, "蓝绿");
private String code;
private Integer value;
private String description;
TAG_LIGHT_COLOR_CMD(String code, Integer value, String description) {
this.code = code;
this.value = value;
this.description = description;
}
public static String valueOf(int value) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
tmp = values()[i].code;
}
}
return tmp;
}
public String getCode() {
return code;
}
public Integer getValue() {
return value;
}
public String getDescription() {
return description;
}
}
}

@ -14,6 +14,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;
@ -159,10 +160,16 @@ public class BfElement extends BaseBean {
@ApiParam(value ="默认排序规则")
private Integer elementSortAttrType;
@Lob
@Column(name="ELEMENT_CSS_STYLE")
@ApiParam(value ="元素样式")
private String elementCssStyle;
@Lob
@Column(name="ELEMENT_FORMATTER")
@ApiParam(value ="元素样式")
private String elementFormatter;
@Column(name="ELEMENT_DESCRIPTION")
@ApiParam(value ="元素描述")
private String elementDescription;

@ -0,0 +1,50 @@
package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
import java.io.Serializable;
/**
* @Description:
* @Author: jokelin
* @Date: 2021/1/25 10:47 AM
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_EQU_TASK_DETAIL_STANDARD")
@Api("设备作业任务要求")
public class MesEquTaskDetailStandard extends BaseBean implements Serializable {
private static final long serialVersionUID = 8033976649492744091L;
@Column(name = "TASK_DETAIL_ID")
@ApiParam("任务明细ID")
private Long taskDetailId;
@Column(name = "ACTION_ITEM")
@ApiParam("操作项")
private String actionItem;
@Column(name = "ACTION_STANDARD")
@ApiParam("操作标准")
private String actionStandard;
@Column(name = "ACTION_GUIDE")
@ApiParam("操作指导")
private String actionGuide;
@Column(name = "ACTION_GUIDE_URL")
@ApiParam("指导文件路径")
private String actionGuideUrl;
}

@ -5,17 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
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 javax.persistence.*;
import java.io.Serializable;
import java.util.List;
/**
* @Description :
@ -78,4 +74,8 @@ public class MesEquTaskPlan extends BaseBean implements Serializable {
@ApiParam("作业任务编号")
private String taskNo;
@Transient
@ApiParam("设备作业要求")
private List<MesEquTaskStandard> equTaskStandards;
}

@ -0,0 +1,50 @@
package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
import java.io.Serializable;
/**
* @Description:
* @Author: jokelin
* @Date: 2021/1/25 10:43 AM
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_EQU_TASK_PLAN_STANDARD")
@Api("设备周期计划作业要求")
public class MesEquTaskPlanStandard extends BaseBean implements Serializable {
private static final long serialVersionUID = 8284644034068953809L;
@Column(name = "PLAN_ID")
@ApiParam("计划ID")
private Long planId;
@Column(name = "ACTION_ITEM")
@ApiParam("操作项")
private String actionItem;
@Column(name = "ACTION_STANDARD")
@ApiParam("操作标准")
private String actionStandard;
@Column(name = "ACTION_GUIDE")
@ApiParam("操作指导")
private String actionGuide;
@Column(name = "ACTION_GUIDE_URL")
@ApiParam("指导文件路径")
private String actionGuideUrl;
}

@ -42,6 +42,10 @@ public class MesFurnaceLocation extends BaseBean implements Serializable {
@ApiParam("炉内位置代码")
private String fnLocationNo;
@Column(name = "orientation")
@ApiParam("方向")
private String orientation;
@Column(name = "SEQ")
@ApiParam("推荐顺序")
private Integer seq;

@ -265,4 +265,21 @@ public class MesQueueOrderDetail extends BaseBean implements Serializable {
this.assyNo = assyNo;
this.queueType = queueType;
}
public MesQueueOrderDetail(Long id, String orderNo, String vinCode, String produceCategoryCode, String productSn, String serialNumber,
String groupSeq, String queueGroupNo, Integer groupNo, String groupSide, String jisBackflushStatus,
String modifyUser) {
this.id = id;
this.orderNo = orderNo;
this.vinCode = vinCode;
this.produceCategoryCode = produceCategoryCode;
this.productSn = productSn;
this.serialNumber = serialNumber;
this.groupSeq = groupSeq;
this.queueGroupNo = queueGroupNo;
this.groupNo = groupNo;
this.groupSide = groupSide;
this.jisBackflushStatus = jisBackflushStatus;
this.modifyUser = modifyUser;
}
}

@ -207,6 +207,10 @@ public class MesWorkOrder extends BaseBean implements Serializable {
@ApiParam(value = "乐观锁", example = "1")
public Integer lockVersion;
@Column(name = "SORT_SEQ")
@ApiParam("排序序号")
private String sortSeq;
/********************** 冗余字段 *********************************/
@Transient
@ApiParam(value = "工作中心名称")

@ -21,16 +21,16 @@ public class MaterialLotModel implements Serializable {
private String modifyDateTime;
@ApiParam("生产日期")
@ApiParam("供应商批次")
private String dateCode;
@ApiParam("批次")
@ApiParam("收货日期")
private String lotNo;
@ApiParam("特殊批次")
private String fixLotNo;
@ApiParam("生产批次")
@ApiParam("生产日期")
private String leftCode;
@ApiParam("物料代码")

@ -1,12 +1,12 @@
package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.mes.bean.MesEquTaskPlanCfg;
import cn.estsh.i3plus.pojo.mes.bean.MesEquTaskPlanStandard;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
import java.util.List;
@Data
public class MesEquTaskPlanModel implements Serializable {
@ -73,6 +73,9 @@ public class MesEquTaskPlanModel implements Serializable {
@ApiParam("设备周期计划配置")
private MesEquTaskPlanCfg planCfg;
@ApiParam("设备作业要求")
private List<MesEquTaskPlanStandard> equTaskStandards;
public MesEquTaskPlanModel() {
}

@ -138,6 +138,8 @@ public class StepPrintSnModel extends MesProduceSn {
private String jitSeq;
@ApiParam("产品位置名称")
private String produceCategoryName;
@ApiParam("配置代码")
private String cfgCode;
@ApiParam("版本号")
private String versionNo;

@ -87,9 +87,22 @@ public class TJMgnBoardModel extends BaseBean implements Serializable {
@ApiParam("产线")
private String workCenterCode;
@Transient
@ApiParam("创建时间")
private String createDatetime;
public TJMgnBoardModel() {
}
public TJMgnBoardModel(String partNo, String partNameRdd, Integer qcStatus, String workOrderNo, Integer snQty, String createDatetime) {
this.partNo = partNo;
this.partNameRdd = partNameRdd;
this.qcStatus = qcStatus;
this.workOrderNo = workOrderNo;
this.snQty = snQty;
this.createDatetime = createDatetime;
}
public TJMgnBoardModel(String partNo, String partNameRdd, Integer qcStatus, String workOrderNo, Integer snQty) {
this.partNo = partNo;
this.partNameRdd = partNameRdd;

@ -25,10 +25,10 @@ public class ConditionQueryModel {
private String customerPartNo;
@ApiParam("开始时间")
private String modifyStartTime;
private String modifyStartDate;
@ApiParam("结束时间")
private String modifyEndTime;
private String modifyEndDate;
@ApiParam("零件二维码")
private String serialNumber;

@ -3,6 +3,8 @@ package cn.estsh.i3plus.pojo.mes.model.report;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.List;
/**
*
* @author yumingxing
@ -13,6 +15,12 @@ import lombok.Data;
public class ProductStatisticsQueryModel {
@ApiParam("生产线")
private List<String> workCenterCodeList;
@ApiParam("工序")
private List<String> processCodeList;
@ApiParam("零件号")
private List<String> partNoList;
@ApiParam("生产线")
private String workCenterCode;
@ApiParam("工序")
private String processCode;

@ -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.MesEquTaskDetailStandard;
/**
* @Description:
* @Author: jokelin
* @Date: 2021/1/25 10:49 AM
* @Modify:
*/
public interface MesEquTaskDetailStandardRepository extends BaseRepository<MesEquTaskDetailStandard, Long> {
}

@ -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.MesEquTaskPlanStandard;
/**
* @Description:
* @Author: jokelin
* @Date: 2021/1/25 10:46 AM
* @Modify:
*/
public interface MesEquTaskPlanStandardRepository extends BaseRepository<MesEquTaskPlanStandard, Long> {
}

@ -0,0 +1,25 @@
package cn.estsh.i3plus.pojo.model.platform;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.shiro.realm.Realm;
/**
* @author Wynne.Lu
* @date 2021/1/19 1:29
* @desc
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RoleRealmModel {
private Realm userRealm;
private Realm saRealm;
private Realm adminRealm;
}

@ -0,0 +1,40 @@
package cn.estsh.i3plus.pojo.model.platform;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author Wynne.Lu
* @date 2021/1/18 10:56
* @desc
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Api("系统登录模型")
public class SystemLoginModel {
@ApiParam(value = "登录名")
private String loginName;
@ApiParam(value = "登录密码")
private String loginPwd;
@ApiParam(value = "语言代码")
private String languageCode;
@ApiParam(value = "设备id")
private String deviceId;
@ApiParam(value = "单点登录策略")
private String loginStrategy;
@ApiParam(value = "app Id")
private String appId;
}

@ -375,4 +375,47 @@ public class PtlHqlPack {
DdlPreparedPack.getNumEqualPack(pickData.getSyncFlag(), "syncFlag", packBean);
return packBean;
}
/**
*
* @param section
* @param organizeCode
* @return
*/
public static DdlPackBean getPtlSection(PtlSection section, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(section, organizeCode);
DdlPreparedPack.getStringLikerPack(section.getAreaNo(), "areaNo", packBean);
DdlPreparedPack.getStringLikerPack(section.getSectionNo(), "sectionNo", packBean);
DdlPreparedPack.getStringLikerPack(section.getSectionName(), "sectionName", packBean);
return packBean;
}
/**
*
* @param control
* @param organizeCode
* @return
*/
public static DdlPackBean getPtlControl(PtlControl control, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(control, organizeCode);
DdlPreparedPack.getStringLikerPack(control.getAreaNo(), "areaNo", packBean);
DdlPreparedPack.getStringLikerPack(control.getControlNo(), "controlNo", packBean);
DdlPreparedPack.getStringLikerPack(control.getControlName(), "controlName", packBean);
DdlPreparedPack.getNumEqualPack(control.getControlType(), "controlType", packBean);
return packBean;
}
/**
*
* @param part
* @param organizeCode
* @return
*/
public static DdlPackBean getPtlPart(PtlPart part, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(part, organizeCode);
DdlPreparedPack.getStringLikerPack(part.getPartNo(), "partNo", packBean);
DdlPreparedPack.getStringLikerPack(part.getPartName(), "partName", packBean);
DdlPreparedPack.getStringEqualPack(part.getPartType(), "partType", packBean);
return packBean;
}
}

@ -8,8 +8,6 @@ import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
@ -18,6 +16,8 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.persistence.Transient;
@ -109,7 +109,7 @@ public class WmsPart extends BaseBean {
@Column(name = "ABC")
@ApiParam(value = "分类")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isRequire = 2, dataSrc = "PART_ABC")
private String abc;
@Column(name = "BUY_UNIT")

@ -397,6 +397,10 @@ public class WmsStockSn extends BaseBean {
private Integer boxQty;
@Transient
@ApiParam(value = "箱数")
private String boxQtyStr;
@Transient
@ApiParam(value = "是否报工")
private String isReport;

Loading…
Cancel
Save