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

yun-zuoyi
袁津哲 5 years ago
commit cad6b7ad89

@ -50,10 +50,6 @@ public class AndonActionModule extends BaseBean implements Serializable {
@ApiParam("组件类型") @ApiParam("组件类型")
private Integer amType; private Integer amType;
@Column(name = "INTERFACE_NO")
@ApiParam("界面编号")
private String interfaceNo;
@Transient @Transient
@ApiParam("执行顺序") @ApiParam("执行顺序")
private Integer seq; private Integer seq;

@ -40,7 +40,7 @@ public class AndonActor extends BaseBean implements Serializable {
private String actorName; private String actorName;
@Column(name = "ACTOR_Class") @Column(name = "ACTOR_Class")
@ApiParam("actor") @ApiParam("actor名")
private String actorClass; private String actorClass;

@ -26,7 +26,7 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@Table(name = "ANDON_ACTOR_RULE") @Table(name = "ANDON_ACTOR_RULE")
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Api("ACTOR消息获取规则") @Api("ACTOR消息类型配置")
public class AndonActorRule extends BaseBean implements Serializable { public class AndonActorRule extends BaseBean implements Serializable {
private static final long serialVersionUID = 3244584643305867326L; private static final long serialVersionUID = 3244584643305867326L;

@ -24,7 +24,7 @@ import java.io.Serializable;
@Entity @Entity
@DynamicInsert @DynamicInsert
@DynamicUpdate @DynamicUpdate
@Table(name = "PTL_ROUTE_MODULE_PARAM") @Table(name = "ANDON_ROUTE_MODULE_PARAM")
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Api("流程组件参数") @Api("流程组件参数")
public class AndonRouteModuleParam extends BaseBean implements Serializable { public class AndonRouteModuleParam extends BaseBean implements Serializable {

@ -76,6 +76,14 @@ public class AndonRouteStatus extends BaseBean implements Serializable {
@ApiParam("状态类型") @ApiParam("状态类型")
private Integer statusType; private Integer statusType;
@Column(name = "INTERFACE_NO")
@ApiParam("界面编号")
private String interfaceNo;
@Transient
@ApiParam("安灯流程ID")
private Long alarmRouteId;
@Transient @Transient
@ApiParam("默认不缓存") @ApiParam("默认不缓存")
private boolean cacheFlag = false; private boolean cacheFlag = false;
@ -85,7 +93,7 @@ public class AndonRouteStatus extends BaseBean implements Serializable {
private boolean actionAmgIdFalg = false; private boolean actionAmgIdFalg = false;
@Transient @Transient
@ApiParam("触发组件集默认未执行") @ApiParam("触发类型默认不需要外部触发")
private boolean checkTriggerTypeFalg = false; private boolean checkTriggerTypeFalg = false;
} }

@ -0,0 +1,67 @@
package cn.estsh.i3plus.pojo.andon.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;
/**
* @author wangjie
* @date 2020/2/12 17:41
* @desc
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "ANDON_ROUTE_STATUS_ERROR_RECORD")
@EqualsAndHashCode(callSuper = true)
@Api("流程状态异常记录")
public class AndonRouteStatusErrorRecord extends BaseBean implements Serializable {
private static final long serialVersionUID = -4046192879130584866L;
@Column(name = "ROUTE_CODE")
@ApiParam("流程代码")
private String routeCode;
@Column(name = "STATUS_CODE")
@ApiParam("状态代码")
private String statusCode;
@Column(name = "ANDON_ORDER_NO")
@ApiParam(value = "安灯队列编号")
public String andonOrderNo;
@Column(name = "ERROR_DESC")
@ApiParam(value = "失败描述")
public String errorDesc;
@Column(name = "WORK_CENTER_CODE")
@ApiParam(value = "工作中心")
public String workCenterCode;
@Column(name = "WORK_CELL_CODE")
@ApiParam(value = "工作中心")
public String workCellCode;
@Column(name = "ALARM_CODE")
@ApiParam(value = "安灯类型")
public String alarmCode;
@Column(name = "SOURCE_TYPE")
@ApiParam(value = "安灯来源类型")
private String sourceType;
}

@ -60,12 +60,18 @@ public class AndonRouteStatusModel implements Serializable {
@ApiParam("流程类型") @ApiParam("流程类型")
private Integer routeType; private Integer routeType;
@ApiParam("界面编号")
private String interfaceNo;
@ApiParam("安灯流程ID")
private Long alarmRouteId;
public AndonRouteStatusModel() { public AndonRouteStatusModel() {
} }
public AndonRouteStatusModel(String routeCode, String statusCode, String statusName, String nextStatus, Integer triggerType, public AndonRouteStatusModel(String routeCode, String statusCode, String statusName, String nextStatus, Integer triggerType,
String triggerEvent, String triggerWhere, Long actionAmgId, Long inAmgId, Long outAmgId, String triggerEvent, String triggerWhere, Long actionAmgId, Long inAmgId, Long outAmgId, Integer statusType,
Integer statusType, String alarmCode, String workCenterCode, Integer routeType) { String interfaceNo, String alarmCode, String workCenterCode, Integer routeType, Long alarmRouteId) {
this.routeCode = routeCode; this.routeCode = routeCode;
this.statusCode = statusCode; this.statusCode = statusCode;
this.statusName = statusName; this.statusName = statusName;
@ -77,8 +83,10 @@ public class AndonRouteStatusModel implements Serializable {
this.inAmgId = inAmgId; this.inAmgId = inAmgId;
this.outAmgId = outAmgId; this.outAmgId = outAmgId;
this.statusType = statusType; this.statusType = statusType;
this.interfaceNo = interfaceNo;
this.alarmCode = alarmCode; this.alarmCode = alarmCode;
this.workCenterCode = workCenterCode; this.workCenterCode = workCenterCode;
this.routeType = routeType; this.routeType = routeType;
this.alarmRouteId = alarmRouteId;
} }
} }

@ -39,8 +39,10 @@ public class CommonMsgModel implements Serializable {
@ApiModelProperty("当前流程状态") @ApiModelProperty("当前流程状态")
private AndonRouteStatus curRouteStatus; private AndonRouteStatus curRouteStatus;
@ApiModelProperty("外部触发事件") @ApiModelProperty("触发事件")
private String triggerEvent; private String triggerEvent;
@ApiModelProperty("下个触发事件一个组件集执行完毕后这个值赋给triggerEvent")
private String nextTriggerEvent;
} }

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.andon.repository;
import cn.estsh.i3plus.pojo.andon.bean.AndonActionModuleParam;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-05-13 11:07
* @Modify:
**/
@Repository
public interface IAndonActionModuleParamRepository extends BaseRepository<AndonActionModuleParam, Long> {
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.andon.repository;
import cn.estsh.i3plus.pojo.andon.bean.AndonActionModule;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-05-13 11:07
* @Modify:
**/
@Repository
public interface IAndonActionModuleRepository extends BaseRepository<AndonActionModule, Long> {
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.andon.repository;
import cn.estsh.i3plus.pojo.andon.bean.AndonAlarmRouteModuleParam;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-05-13 11:07
* @Modify:
**/
@Repository
public interface IAndonAlarmRouteModuleParamRepository extends BaseRepository<AndonAlarmRouteModuleParam, Long> {
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.andon.repository;
import cn.estsh.i3plus.pojo.andon.bean.AndonAlarmType;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-05-30 11:05
* @Modify:
**/
@Repository
public interface IAndonAlarmTypeRepository extends BaseRepository<AndonAlarmType, Long> {
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.andon.repository;
import cn.estsh.i3plus.pojo.andon.bean.AndonMessageType;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import org.springframework.stereotype.Repository;
/**
* @Description:
* @Reference:
* @Author: wangjie
* @CreateDate:2019-11-12-14:24
* @Modify:
**/
@Repository
public interface IAndonMessageTypeRepository extends BaseRepository<AndonMessageType, Long> {
}

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

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

@ -3,14 +3,9 @@ package cn.estsh.i3plus.pojo.andon.sqlpack;
import cn.estsh.i3plus.pojo.andon.bean.*; import cn.estsh.i3plus.pojo.andon.bean.*;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean; import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
import cn.estsh.i3plus.pojo.base.bean.ListPager;
import cn.estsh.i3plus.pojo.base.common.Pager;
import cn.estsh.i3plus.pojo.base.enumutil.AndonEnumUtil;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil; import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack; import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
import cn.estsh.i3plus.pojo.base.tool.HqlPack; import org.springframework.util.StringUtils;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
/** /**
* @Description : * @Description :
@ -62,7 +57,7 @@ public class AndonHqlPack {
DdlPreparedPack.getStringEqualPack(andonMessageRecord.getRpLevel(), "rpLevel", packBean); DdlPreparedPack.getStringEqualPack(andonMessageRecord.getRpLevel(), "rpLevel", packBean);
DdlPreparedPack.getStringEqualPack(andonMessageRecord.getRpObjectCode(), "rpObjectCode", packBean); DdlPreparedPack.getStringEqualPack(andonMessageRecord.getRpObjectCode(), "rpObjectCode", packBean);
DdlPreparedPack.getStringEqualPack(andonMessageRecord.getStatusCode(), "statusCode", packBean); DdlPreparedPack.getStringEqualPack(andonMessageRecord.getStatusCode(), "statusCode", packBean);
if(StringUtils.isNotBlank(andonMessageRecord.getCreateDateTimeStart()) || StringUtils.isNotBlank(andonMessageRecord.getCreateDateTimeEnd())){ if(!StringUtils.isEmpty(andonMessageRecord.getCreateDateTimeStart()) || !StringUtils.isEmpty(andonMessageRecord.getCreateDateTimeEnd())){
DdlPreparedPack.timeBuilder(andonMessageRecord.getCreateDateTimeStart(), andonMessageRecord.getCreateDateTimeEnd(), "createDatetime", packBean, true); DdlPreparedPack.timeBuilder(andonMessageRecord.getCreateDateTimeStart(), andonMessageRecord.getCreateDateTimeEnd(), "createDatetime", packBean, true);
} }
return packBean; return packBean;
@ -209,7 +204,7 @@ public class AndonHqlPack {
public static DdlPackBean getStringBuilderPack(BaseBean bean, DdlPackBean hqlStr) { public static DdlPackBean getStringBuilderPack(BaseBean bean, DdlPackBean hqlStr) {
// 判断工厂代码是否为空 // 判断工厂代码是否为空
if (StringUtils.isNotBlank(bean.getOrganizeCode())) { if (!StringUtils.isEmpty(bean.getOrganizeCode())) {
DdlPreparedPack.getStringEqualPack(bean.getOrganizeCode(), "organizeCode", hqlStr); DdlPreparedPack.getStringEqualPack(bean.getOrganizeCode(), "organizeCode", hqlStr);
} }
@ -373,7 +368,7 @@ public class AndonHqlPack {
DdlPreparedPack.getStringEqualPack(andonKnowledgeBase.getEcCode(), "ecCode", packBean); DdlPreparedPack.getStringEqualPack(andonKnowledgeBase.getEcCode(), "ecCode", packBean);
DdlPreparedPack.getStringEqualPack(andonKnowledgeBase.getEmCode(), "emCode", packBean); DdlPreparedPack.getStringEqualPack(andonKnowledgeBase.getEmCode(), "emCode", packBean);
if(StringUtils.isNotBlank(andonKnowledgeBase.getCreateDateTimeStart()) || StringUtils.isNotBlank(andonKnowledgeBase.getCreateDateTimeEnd())){ if(!StringUtils.isEmpty(andonKnowledgeBase.getCreateDateTimeStart()) || !StringUtils.isEmpty(andonKnowledgeBase.getCreateDateTimeEnd())){
DdlPreparedPack.timeBuilder(andonKnowledgeBase.getCreateDateTimeStart(), andonKnowledgeBase.getCreateDateTimeEnd(), "createDatetime", packBean, true); DdlPreparedPack.timeBuilder(andonKnowledgeBase.getCreateDateTimeStart(), andonKnowledgeBase.getCreateDateTimeEnd(), "createDatetime", packBean, true);
} }
@ -418,7 +413,7 @@ public class AndonHqlPack {
DdlPreparedPack.getInPackList(andonManageQueue.getTypeList(), "alarmCode", result); // 只有安灯任务管理特殊用途 DdlPreparedPack.getInPackList(andonManageQueue.getTypeList(), "alarmCode", result); // 只有安灯任务管理特殊用途
DdlPreparedPack.getStringEqualPack(andonManageQueue.getAlarmCode(), "alarmCode", result); DdlPreparedPack.getStringEqualPack(andonManageQueue.getAlarmCode(), "alarmCode", result);
if(StringUtils.isNotBlank(andonManageQueue.getCallTimeStart()) || StringUtils.isNotBlank(andonManageQueue.getCallTimeEnd())){ if(!StringUtils.isEmpty(andonManageQueue.getCallTimeStart()) || !StringUtils.isEmpty(andonManageQueue.getCallTimeEnd())){
DdlPreparedPack.timeBuilder(andonManageQueue.getCallTimeStart(), andonManageQueue.getCallTimeEnd(), "callTime", result, true); DdlPreparedPack.timeBuilder(andonManageQueue.getCallTimeStart(), andonManageQueue.getCallTimeEnd(), "callTime", result, true);
} }
getStringBuilderPack(andonManageQueue, result); getStringBuilderPack(andonManageQueue, result);
@ -557,10 +552,10 @@ public class AndonHqlPack {
*/ */
public static DdlPackBean getMesEquipment(MesEquipment mesEquipment, String organizeCode) { public static DdlPackBean getMesEquipment(MesEquipment mesEquipment, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesEquipment, organizeCode); DdlPackBean packBean = getAllBaseDataByNormalPro(mesEquipment, organizeCode);
if (StringUtils.isNotEmpty(mesEquipment.getWorkCellCode())){ if (!StringUtils.isEmpty(mesEquipment.getWorkCellCode())){
DdlPreparedPack.getStringEqualPack(mesEquipment.getWorkCellCode(), "workCellCode", packBean); DdlPreparedPack.getStringEqualPack(mesEquipment.getWorkCellCode(), "workCellCode", packBean);
} }
if (StringUtils.isNotEmpty(mesEquipment.getEquipmentCode())){ if (!StringUtils.isEmpty(mesEquipment.getEquipmentCode())){
DdlPreparedPack.getStringEqualPack(mesEquipment.getEquipmentCode(), "equipmentCode", packBean); DdlPreparedPack.getStringEqualPack(mesEquipment.getEquipmentCode(), "equipmentCode", packBean);
} }
packBean.setOrderByStr(mesEquipment.orderBy()); packBean.setOrderByStr(mesEquipment.orderBy());
@ -575,13 +570,13 @@ public class AndonHqlPack {
*/ */
public static DdlPackBean getMesShift(MesShift shift, String organizeCode) { public static DdlPackBean getMesShift(MesShift shift, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(shift, organizeCode); DdlPackBean packBean = getAllBaseDataByNormalPro(shift, organizeCode);
if (StringUtils.isNotEmpty(shift.getShiftCode())){ if (!StringUtils.isEmpty(shift.getShiftCode())){
DdlPreparedPack.getStringEqualPack(shift.getShiftCode(), "shiftCode", packBean); DdlPreparedPack.getStringEqualPack(shift.getShiftCode(), "shiftCode", packBean);
} }
if (StringUtils.isNotEmpty(shift.getShiftName())){ if (!StringUtils.isEmpty(shift.getShiftName())){
DdlPreparedPack.getStringLikerPack(shift.getShiftName(), "shiftName", packBean); DdlPreparedPack.getStringLikerPack(shift.getShiftName(), "shiftName", packBean);
} }
if (StringUtils.isNotEmpty(shift.getWorkCenterCode())){ if (!StringUtils.isEmpty(shift.getWorkCenterCode())){
DdlPreparedPack.getStringEqualPack(shift.getWorkCenterCode(), "workCenterCode", packBean); DdlPreparedPack.getStringEqualPack(shift.getWorkCenterCode(), "workCenterCode", packBean);
} }
@ -876,4 +871,121 @@ public class AndonHqlPack {
DdlPreparedPack.timeBuilder(startDateTime, endDateTime, "createDatetime", result, true); DdlPreparedPack.timeBuilder(startDateTime, endDateTime, "createDatetime", result, true);
return result; return result;
} }
/**
* actor
* @param actor
* @param organizeCode
* @return
*/
public static DdlPackBean getAndonActor(AndonActor actor, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(actor, organizeCode);
if (!StringUtils.isEmpty(actor.getActorCode())) {
DdlPreparedPack.getStringLikerPack(actor.getActorCode(), "actorCode", packBean);
}
if (!StringUtils.isEmpty(actor.getActorName())) {
DdlPreparedPack.getStringLikerPack(actor.getActorName(), "actorName", packBean);
}
if (!StringUtils.isEmpty(actor.getActorClass())) {
DdlPreparedPack.getStringLikerPack(actor.getActorClass(), "actorClass", packBean);
}
return packBean;
}
/**
*
* @param messageType
* @param organizeCode
* @return
*/
public static DdlPackBean getAndonMessageType(AndonMessageType messageType, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(messageType, organizeCode);
if (!StringUtils.isEmpty(messageType.getMtCode())) {
DdlPreparedPack.getStringLikerPack(messageType.getMtCode(), "mtCode", packBean);
}
if (!StringUtils.isEmpty(messageType.getMtName())) {
DdlPreparedPack.getStringLikerPack(messageType.getMtName(), "mtName", packBean);
}
return packBean;
}
/**
* actor
* @param actorRule
* @param organizeCode
* @return
*/
public static DdlPackBean getAndonActorRule(AndonActorRule actorRule, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(actorRule, organizeCode);
if (!StringUtils.isEmpty(actorRule.getActorCode())) {
DdlPreparedPack.getStringLikerPack(actorRule.getActorCode(), "actorCode", packBean);
}
if (!StringUtils.isEmpty(actorRule.getMtCode())) {
DdlPreparedPack.getStringLikerPack(actorRule.getMtCode(), "mtCode", packBean);
}
return packBean;
}
/**
*
* @param alarmType
* @param organizeCode
* @return
*/
public static DdlPackBean getAndonAlarmType(AndonAlarmType alarmType, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(alarmType, organizeCode);
if (!StringUtils.isEmpty(alarmType.getAlarmCode())) {
DdlPreparedPack.getStringLikerPack(alarmType.getAlarmCode(), "alarmCode", packBean);
}
if (!StringUtils.isEmpty(alarmType.getAlarmName())) {
DdlPreparedPack.getStringLikerPack(alarmType.getAlarmName(), "alarmName", packBean);
}
return packBean;
}
/**
*
* @param actionModule
* @param organizeCode
* @return
*/
public static DdlPackBean getAndonActionModule(AndonActionModule actionModule, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(actionModule, organizeCode);
if (!StringUtils.isEmpty(actionModule.getAmCode())) {
DdlPreparedPack.getStringLikerPack(actionModule.getAmCode(), "amCode", packBean);
}
if (!StringUtils.isEmpty(actionModule.getAmName())) {
DdlPreparedPack.getStringLikerPack(actionModule.getAmName(), "amName", packBean);
}
if (!StringUtils.isEmpty(actionModule.getCallClass())) {
DdlPreparedPack.getStringLikerPack(actionModule.getCallClass(), "callClass", packBean);
}
if (!StringUtils.isEmpty(actionModule.getAmType())) {
DdlPreparedPack.getNumEqualPack(actionModule.getAmType(), "amType", packBean);
}
return packBean;
}
/**
*
* @param actionModuleParam
* @param organizeCode
* @return
*/
public static DdlPackBean getAndonActionModuleParam(AndonActionModuleParam actionModuleParam, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(actionModuleParam, organizeCode);
if (!StringUtils.isEmpty(actionModuleParam.getAmCode())) {
DdlPreparedPack.getStringLikerPack(actionModuleParam.getAmCode(), "amCode", packBean);
}
if (!StringUtils.isEmpty(actionModuleParam.getParamCode())) {
DdlPreparedPack.getStringLikerPack(actionModuleParam.getParamCode(), "paramCode", packBean);
}
if (!StringUtils.isEmpty(actionModuleParam.getParamName())) {
DdlPreparedPack.getStringLikerPack(actionModuleParam.getParamName(), "paramName", packBean);
}
if (!StringUtils.isEmpty(actionModuleParam.getParamType())) {
DdlPreparedPack.getNumEqualPack(actionModuleParam.getParamType(), "paramType", packBean);
}
return packBean;
}
} }

@ -13,22 +13,29 @@ import org.apache.commons.lang3.StringUtils;
public class AndonEnumUtil { public class AndonEnumUtil {
/** /**
* - *
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ROUTE_TRIGGER_TYPE { public enum ANDON_ROUTE_STATUS_INTERFACE_NO {
INNER_TRIGGER(10, "内部触发"), EQUMENT_ALARM_CALL("EQUMENT_ALARM_CALL", "设备呼叫弹框界面"),
OUTER_TRIGGER(20, "外部触发"); QUALITY_ALARM_CALL("QUALITY_ALARM_CALL", "质量呼叫弹框界面"),
PART_ALARM_CALL("PART_ALARM_CALL", "物料呼叫弹框界面"),
ROUTING_ALARM_CALL("ROUTING_ALARM_CALL", "工艺呼叫弹框界面"),
OTHER_ALARM_CALL("OTHER_ALARM_CALL", "自处理呼叫弹框界面"),
FIX_ERROR_CALL("FIX_ERROR_CALL", "自动报警呼叫弹框界面"),
ALARM_SIGN("ALARM_SIGN", "响应弹框界面"),
ALARM_CANCEL("ALARM_CANCEL", "撤销二次提醒框"),
ALARM_RESOLVE("ALARM_RESOLVE", "解决弹框界面");
private int value; private String value;
private String description; private String description;
ROUTE_TRIGGER_TYPE(int value, String description) { ANDON_ROUTE_STATUS_INTERFACE_NO(String value, String description) {
this.value = value; this.value = value;
this.description = description; this.description = description;
} }
public int getValue() { public String getValue() {
return value; return value;
} }
@ -38,20 +45,21 @@ public class AndonEnumUtil {
} }
/** /**
* *
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ROUTE_STATUS_TYPE { public enum ACTION_MODULE_PARAM_TYPE {
START(10, "START", "开始状态"),
EXECUTING(20, "EXECUTING", "执行中状态"), QUALIFIED(10, "number", "数字"),
TERMINATE(30, "TERMINATE", "中断状态"), DEFECTED(20, "text", "字符串"),
FINISH(40, "FINISH", "完成状态"); SCRAPED(30, "select", "可选值"),
BUTTON(40, "button", "按钮");
private int value; private int value;
private String code; private String code;
private String description; private String description;
ROUTE_STATUS_TYPE(int value, String code, String description) { ACTION_MODULE_PARAM_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;
@ -68,16 +76,24 @@ public class AndonEnumUtil {
public String getDescription() { public String getDescription() {
return description; 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)
public enum ACTION_MODULE_AM_TYPE { public enum ACTION_MODULE_AM_TYPE {
COMMON_MODULE(10, "通用组件");
METHOD_MODULE(10, "方法组件"),
INTERFACE_MODULE(20, "界面组件");
private int value; private int value;
private String description; private String description;
@ -94,15 +110,63 @@ public class AndonEnumUtil {
public String getDescription() { public String getDescription() {
return description; return description;
} }
}
public static String valueOfDescription(int val) { /**
String tmp = null; * -
for (int i = 0; i < values().length; i++) { */
if (values()[i].value == val) { @JsonFormat(shape = JsonFormat.Shape.OBJECT)
tmp = values()[i].description; public enum ROUTE_TRIGGER_TYPE {
INNER_TRIGGER(10, "内部触发"),
OUTER_TRIGGER(20, "外部触发");
private int value;
private String description;
ROUTE_TRIGGER_TYPE(int value, String description) {
this.value = value;
this.description = description;
} }
public int getValue() {
return value;
} }
return tmp;
public String getDescription() {
return description;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ROUTE_STATUS_TYPE {
START(10, "START", "开始状态"),
EXECUTING(20, "EXECUTING", "执行中状态"),
TERMINATE(30, "TERMINATE", "中断状态"),
FINISH(40, "FINISH", "完成状态");
private int value;
private String code;
private String description;
ROUTE_STATUS_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
} }
} }
@ -831,21 +895,23 @@ public class AndonEnumUtil {
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ANDON_ACTION_TAG { public enum ANDON_ACTION_TAG {
CALL(1,"10","呼叫"), CALL(1, "1","10","呼叫"),
SIGN(2,"20","响应"), SIGN(2, "2","20","响应"),
RESOLVE(3,"30","解决"), RESOLVE(3, "3","30","解决"),
CANCEL(4,"40", "撤销"), CANCEL(4, "4","40", "撤销"),
COMMIT(5,"50","解决待审"), COMMIT(5, "5","50","解决待审"),
PASS(6,"60","审批完成"), PASS(6, "6","60","审批完成"),
REJECT(7,"70","驳回"), REJECT(7, "7","70","驳回"),
CONFIRMED_CANCEL(8,"80","撤销已确认"); CONFIRMED_CANCEL(8, "8","80","撤销已确认");
private int value; private int value;
private String valueStr;
private String code; private String code;
private String description; private String description;
ANDON_ACTION_TAG(int value, String code, String description) { ANDON_ACTION_TAG(int value, String valueStr, String code, String description) {
this.value = value; this.value = value;
this.valueStr = valueStr;
this.code = code; this.code = code;
this.description = description; this.description = description;
} }
@ -854,6 +920,8 @@ public class AndonEnumUtil {
return value; return value;
} }
public String getValueStr(){ return valueStr; }
public String getCode(){ return code; } public String getCode(){ return code; }
public String getDescription() { public String getDescription() {
@ -869,6 +937,15 @@ public class AndonEnumUtil {
return null; return null;
} }
public static ANDON_ACTION_TAG getByValueStr(String valueStr) {
for (ANDON_ACTION_TAG actionTag : values()) {
if (actionTag.getValueStr().equals(valueStr)) {
return actionTag;
}
}
return null;
}
public static String valueOfDescription(int val) { public static String valueOfDescription(int val) {
String tmp = null; String tmp = null;
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {

@ -19,60 +19,69 @@ public class CommonEnumUtil {
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SOFT_TYPE { public enum SOFT_TYPE {
IMPP(1, 0, 0, "impp-platform", "IMPP平台"), /** WMS 服务 */
CORE(2, 8100, 4, "i3core", "i3业务平台"), WMS(3, 8200, 10, 102000000L, "i3wms", "仓库管理软件"),
WMS(3, 8200, 10, "i3wms", "仓库管理软件"), SWEB(7, 8800, 19, 108000000L, "i3sweb", "供应商服务"),
MES(4, 8300, 11, "i3mes", "生产管理软件"), QMS(5, 0, 0, 0, "i3qms", "质量管理软件"),
QMS(5, 0, 0, "i3qms", "质量管理软件"),
MES_PCN(6, 8350, 12, "i3mes-pcn", "生产管理软件-节点中心"),
SWEB(7, 8800, 19, "i3sweb", "供应商服务"),
PTL(8, 8700, 20, "i3ptl", "亮灯自动拣选"),
PTL_PCN(9, 8750, 21, "i3ptl-pcn", "亮灯自动拣选-节点中心"),
FORM(20, 8900, 16, "block-form", "智能表单"),
REPORT(21, 8910, 17, "block-report", "智能报表"),
WORKFLOW(22, 0, 0, "block-workflow", "智能工作流"),
JOBFLOW(23, 0, 0, "block-jobflow", "智能作业流"),
SOFTSWITCH(24, 8920, 18, "block-softswitch", "软件适配器"),
HARDSWITCH(25, 0, 0, "block-hardswitch", "硬件适配器"),
LAC(26, 8600, 13, "lac", "连接适配器"),
ANDON(27, 8500, 14, "andon", "安灯"),
APS(28, 8400, 15, "i3aps", "高级计划与排产"),
MDM(29, 8150, 22, "i3mdm", "数据中心MDM"),
CENTER(99, 8000, 1, "icloud-server", "注册中心"),
SURFACE(98, 0, 0, "i3surface", "对外服务"),
CLOUD(97, 0, 0, "i3cloud", "微服务"),
GATEWAY(96, 9000, 3, "impp-gateway", "服务网关"),
CONSOLE(95, 8010, 2, "impp-console", "服务监控台"),
DEV(9999, 0000, 0, "Development", "系统调试");
/** /** Mes 服务 */
* ID MES(4, 8300, 11, 103000000L, "i3mes", "生产管理软件"),
*/ MES_PCN(6, 8350, 12, 107000000L, "i3mes-pcn", "生产管理软件-节点中心"),
/** PTL 服务 */
PTL(8, 8700, 20, 111000000L, "i3ptl", "亮灯自动拣选"),
PTL_PCN(9, 8750, 21, 109000000L, "i3ptl-pcn", "亮灯自动拣选-节点中心"),
/** Block 服务 */
FORM(20, 8900, 16, 104000000L, "block-form", "智能表单"),
REPORT(21, 8910, 17, 105000000L, "block-report", "智能报表"),
WORKFLOW(22, 0, 0, 0, "block-workflow", "智能工作流"),
JOBFLOW(23, 0, 0, 0, "block-jobflow", "智能作业流"),
SOFTSWITCH(24, 8920, 18, 130000000L, "block-softswitch", "软件适配器"),
HARDSWITCH(25, 0, 0, 0, "block-hardswitch", "硬件适配器"),
/** 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业务平台"),
/** 调试服务 */
DEV(9999, 0000, 0, 120000000L, "Development", "系统调试");
/** 产品ID */
private int value; private int value;
/** /** 应用默认端口 */
* private int port;
*/ /** 应用默认雪花DataBaseId(0-31)共32 个存储区 */
private int prot;
/**
* DataBaseId(0-31)32
*/
private int snowflakeId; private int snowflakeId;
/** /** 产品代码 */
*
*/
private String code; private String code;
/** /** 顶级菜单代码 */
* private long menuRootId;
*/ /** 产品描述 */
private String description; private String description;
SOFT_TYPE(int value, int prot, int snowflakeId, String code, String description) { SOFT_TYPE(int value, int port, int snowflakeId, long menuRootCode, String code, String description) {
this.value = value; this.value = value;
this.prot = prot; this.port = port;
this.snowflakeId = snowflakeId; this.snowflakeId = snowflakeId;
this.menuRootId = menuRootCode;
this.code = code; this.code = code;
this.description = description; this.description = description;
} }
@ -89,14 +98,18 @@ public class CommonEnumUtil {
return description; return description;
} }
public int getProt() { public int getPort() {
return prot; return port;
} }
public int getSnowflakeId() { public int getSnowflakeId() {
return snowflakeId; return snowflakeId;
} }
public long getMenuRootId() {
return menuRootId;
}
public static String valueOfCode(int val) { public static String valueOfCode(int val) {
String tmp = null; String tmp = null;
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {
@ -137,7 +150,6 @@ public class CommonEnumUtil {
} }
public static SOFT_TYPE valueOf(int val) { public static SOFT_TYPE valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) { if (values()[i].value == val) {
return values()[i]; return values()[i];
@ -146,6 +158,15 @@ public class CommonEnumUtil {
return null; return null;
} }
public static SOFT_TYPE valueOfMenuRootId(long id) {
for (int i = 0; i < values().length; i++) {
if (values()[i].menuRootId == id) {
return values()[i];
}
}
return null;
}
public static SOFT_TYPE codeOfDescription(String code) { public static SOFT_TYPE codeOfDescription(String code) {
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) { if (values()[i].code.equals(code)) {
@ -923,7 +944,9 @@ public class CommonEnumUtil {
public enum LOG_LOGIN_PLATFORM { public enum LOG_LOGIN_PLATFORM {
PC_IMPP_CORE(10, "PC-IMPP", "PC后台管理端"), PC_IMPP_CORE(10, "PC-IMPP", "PC后台管理端"),
PC_WMS_SWEB(20, "PC-SWEB", "PC SWEB后台管理端"), PC_WMS_SWEB(20, "PC-SWEB", "PC SWEB后台管理端"),
Mobile_PDA(30, "Mobile-PDA", "移动设备PDA操作端"); Mobile_PDA(30, "Mobile-PDA", "移动设备PDA操作端"),
MES_PCN(40, "MES-PCN", "MES-PCN"),
PTL_PCN(50, "PTL-PCN", "PTL-PCN");
private int value; private int value;
private String name; private String name;
@ -2178,6 +2201,89 @@ public class CommonEnumUtil {
} }
} }
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DATA_SOURCE_STATUS {
CONN_SUCCESS(10, "验证成功", "验证成功"),
CONN_FAILURE(20, "验证失败", "验证失败");
// TIME_OUT(30, "连接超时", "连接超时"),
// AUTH_ERROR(40, "账号密码错误", "账号密码错误");
private int value;
private String code;
private String description;
private DATA_SOURCE_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 DATA_SOURCE_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;
}
}
/** /**
* PC- * PC-
* 10-20-30-4050- * 10-20-30-4050-

@ -14,14 +14,14 @@ public class MesEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum HQL_EXPRESSION { public enum HQL_EXPRESSION {
GT(">",">","大于"), GT(">", ">", "大于"),
LT("<","<","小于"), LT("<", "<", "小于"),
EQ("=","=","等于"), EQ("=", "=", "等于"),
NEQ("!=","!=","不等于"), NEQ("!=", "!=", "不等于"),
GTE(">=",">=","大于等于"), GTE(">=", ">=", "大于等于"),
LTE("<=","<=","小于等于"), LTE("<=", "<=", "小于等于"),
LIKE("like","like","LIKE"), LIKE("like", "like", "LIKE"),
IN("in","in","包含"); IN("in", "in", "包含");
private String value; private String value;
private String code; private String code;
@ -372,6 +372,7 @@ public class MesEnumUtil {
return valueOf(val); return valueOf(val);
} }
} }
/** /**
* JIS * JIS
*/ */
@ -3242,7 +3243,7 @@ public class MesEnumUtil {
BH_ORDER(40, "B&H工单"), BH_ORDER(40, "B&H工单"),
JIT_ORDER(50, "JIT工单"), JIT_ORDER(50, "JIT工单"),
STOCK_ORDER(60, "库存工单"), STOCK_ORDER(60, "库存工单"),
REPAIR(70,"返修插单"); REPAIR(70, "返修插单");
private int value; private int value;
private String description; private String description;
@ -5483,7 +5484,6 @@ public class MesEnumUtil {
} }
/** /**
* *
*/ */
@ -5731,6 +5731,44 @@ public class MesEnumUtil {
} }
} }
/**
* MES_PLC
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PLC_DATA_TYPE {
INT("int", "数字"),
STRING("string", "字符串"),
BOOLEAN("boolean", "布尔");
private String value;
private String description;
PLC_DATA_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;
}
}
/** /**
* MES_ * MES_
*/ */

@ -94,4 +94,8 @@ public class IfQcOrder extends BaseBean implements Serializable {
@ApiParam("发运时间") @ApiParam("发运时间")
private String deliveryDate; private String deliveryDate;
@Column(name = "CHECK_TYPE")
@ApiParam("检测类型")
private Integer checkType;
} }

@ -29,7 +29,7 @@ import java.io.Serializable;
@Api("IF_质检结果") @Api("IF_质检结果")
public class IfQcResult extends BaseBean implements Serializable { public class IfQcResult extends BaseBean implements Serializable {
private static final long serialVersionUID = -5412635747424111476L; //private static final long serialVersionUID = -5412635747424111476L;
@Column(name = "ORDER_NO") @Column(name = "ORDER_NO")
@ApiParam("质检单号") @ApiParam("质检单号")
private String orderNo; private String orderNo;

@ -123,4 +123,8 @@ public class MesOee extends BaseBean implements Serializable {
@Transient @Transient
@ApiParam("自定义数据map") @ApiParam("自定义数据map")
private List<MesOperateObjectAttribute> operateObjectAttributes; private List<MesOperateObjectAttribute> operateObjectAttributes;
@Transient
@ApiParam("手工录入集合")
private List<String> attributes;
} }

@ -50,8 +50,4 @@ public class MesOperateObjectAttribute extends BaseBean implements Serializable
@Transient @Transient
@ApiParam("属性值") @ApiParam("属性值")
private String attributeValue; private String attributeValue;
@Transient
@ApiParam("是否自定义属性")
private boolean customAttribute = false;
} }

@ -84,6 +84,10 @@ public class MesQcCheckStandard extends BaseBean implements Serializable {
@ApiParam("间隔时间") @ApiParam("间隔时间")
private Integer checkInterval = 0; private Integer checkInterval = 0;
@Column(name = "IS_CONCESSION")
@ApiParam("是否允许让步")
private Integer isConcession = 0;
@Transient @Transient
@ApiParam("检测类型名称") @ApiParam("检测类型名称")
private String checkTypeName; private String checkTypeName;

@ -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: jessica.chen
* @CreateDate: 2019\11\15 10:01
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_QC_ORDER_ACCESSORY")
@Api("MES_检验单附件")
public class MesQcOrderAccessory extends BaseBean implements Serializable {
private static final long serialVersionUID = 2648132773643541110L;
@Column(name = "ORDER_NO")
@ApiParam("质检单号")
private String orderNo;
@Column(name = "ACCESSORY_NAME")
@ApiParam("附件名称")
private String accessoryName;
@Column(name = "ACCESSORY_URL")
@ApiParam("附件路径")
private String accessoryUrl;
}

@ -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.MesQcOrderAccessory;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\11\18 10:34
* @Modify:
**/
public interface MesQcOrderAccessoryRepository extends BaseRepository<MesQcOrderAccessory, Long> {
}

@ -7,7 +7,6 @@ import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.time.DateFormatUtils; import org.apache.commons.lang3.time.DateFormatUtils;
import java.io.Serializable; import java.io.Serializable;
import java.time.format.DateTimeFormatter;
import java.util.Date; import java.util.Date;
import java.util.Objects; import java.util.Objects;
@ -41,7 +40,7 @@ public class ImppLicense implements Serializable {
/* 基础信息 */ /* 基础信息 */
@ApiParam(value ="授权ID") @ApiParam(value ="授权ID")
private Long Id; // ID private Long id; // ID
@ApiParam(value ="授权应用ID") @ApiParam(value ="授权应用ID")
private Long appId; // APP_ID private Long appId; // APP_ID
@ApiParam(value ="授权读取授权数据ID") @ApiParam(value ="授权读取授权数据ID")
@ -70,6 +69,28 @@ public class ImppLicense implements Serializable {
@ApiParam(value ="深思授权信息") @ApiParam(value ="深思授权信息")
private ImppLicenseSenseshield senseshield; private ImppLicenseSenseshield senseshield;
/* 备用预留字段 */
@ApiParam(value ="备用字段")
private String licenseSpare01;
@ApiParam(value ="备用字段")
private String licenseSpare02;
@ApiParam(value ="备用字段")
private String licenseSpare03;
@ApiParam(value ="备用字段")
private String licenseSpare04;
@ApiParam(value ="备用字段")
private String licenseSpare05;
@ApiParam(value ="备用字段")
private String licenseSpare06;
@ApiParam(value ="备用字段")
private String licenseSpare07;
@ApiParam(value ="备用字段")
private String licenseSpare08;
@ApiParam(value ="备用字段")
private String licenseSpare09;
@ApiParam(value ="备用字段")
private String licenseSpare10;
/* 业务人员信息 */ /* 业务人员信息 */
@ApiParam(value ="授权创建时间") @ApiParam(value ="授权创建时间")
private Date licenseCreateDateTime; // 授权时间 private Date licenseCreateDateTime; // 授权时间
@ -92,6 +113,7 @@ public class ImppLicense implements Serializable {
@ApiParam(value ="锁类型") @ApiParam(value ="锁类型")
private String lockType; private String lockType;
/* 基础业务逻辑 */ /* 基础业务逻辑 */
@ApiParam(value ="到期时间") @ApiParam(value ="到期时间")
private String maturityDateTime; private String maturityDateTime;

@ -0,0 +1,88 @@
package cn.estsh.i3plus.pojo.platform.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
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 : alwaysfrin
* @CreateDate : 2019-02-27 10:53
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="SYS_DATA_SOURCE")
@Api(value="数据对象")
public class SysDataSource extends BaseBean {
private static final long serialVersionUID = -3116421427693381484L;
@Column(name="SOFT_TYPE")
@ApiParam(value ="产品类型")
private Integer softType;
public String getSoftTypeTxt() {
return softType == null ? null : CommonEnumUtil.SOFT_TYPE.valueOfDescription(softType);
}
@Column(name="SOURCE_NAME")
@ApiParam(value ="数据源名称")
private String sourceName;
@Column(name="SOURCE_CODE")
@ApiParam(value ="数据源编码")
private String sourceCode;
@Column(name="SOURCE_STATUS")
@ApiParam(value ="数据源状态",name = "状态:可用,不可用 看枚举当中是否存在")
private Integer sourceStatus;
public String getSourceStatusTxt() {
return softType == null ? null : CommonEnumUtil.DATA_SOURCE_STATUS.valueOfDescription(sourceStatus);
}
@Column(name="SOURCE_TYPE")
@ApiParam(value ="数据源类型",name = "BlockFormEnumUtil.DATA_SOURCE_TYPE")
private Integer sourceType;
public String getSourceTypeTxt() {
return softType == null ? null : CommonEnumUtil.DATA_SOURCE_TYPE.valueOfDescription(sourceType);
}
@Column(name="SOURCE_HOST")
@ApiParam(value ="数据源连接地址")
private String sourceHost;
@Column(name="SOURCE_PORT")
@ApiParam(value ="数据源端口")
private Integer sourcePort;
@Column(name="SOURCE_DATA_BASE_NAME")
@ApiParam(value ="数据库名称")
private String sourceDataBaseName;
@Column(name="SOURCE_USER_NAME")
@ApiParam(value ="数据库用户名称")
private String sourceUserName;
@Column(name="SOURCE_PASSWORD")
@ApiParam(value ="数据库用户密码")
private String sourcePassword;
@Column(name="SOURCE_DESCRIPTION")
@ApiParam(value ="数据源描述")
private String sourceDescription;
}

@ -68,4 +68,12 @@ public class SysDepartment extends BaseBean {
@ApiParam(value ="子集列表") @ApiParam(value ="子集列表")
private List<SysDepartment> childList; private List<SysDepartment> childList;
public SysDepartment() {
}
public SysDepartment(String departmentCode, Long parentId, Long organizeId) {
this.departmentCode = departmentCode;
this.parentId = parentId;
this.organizeId = organizeId;
}
} }

@ -113,4 +113,10 @@ public class SysMenu extends BaseBean {
@ApiParam(value ="子集列表") @ApiParam(value ="子集列表")
private List<SysMenu> childList = new ArrayList<>(); private List<SysMenu> childList = new ArrayList<>();
public SysMenu() {
}
public SysMenu(String menuCode) {
this.menuCode = menuCode;
}
} }

@ -80,4 +80,13 @@ public class SysOrganize extends BaseBean {
@ApiParam(value ="子集ID列表") @ApiParam(value ="子集ID列表")
private List<Long> childIdList; private List<Long> childIdList;
public SysOrganize() {
}
public SysOrganize(String organizeCode, Integer organizeType, Long parentId, Integer organizeStatus) {
this.organizeCode = organizeCode;
this.organizeType = organizeType;
this.parentId = parentId;
this.organizeStatus = organizeStatus;
}
} }

@ -26,13 +26,14 @@ import javax.persistence.*;
@DynamicInsert @DynamicInsert
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Table(name="SYS_POJO_VERSION") @Table(name="SYS_POJO_VERSION",indexes = {
@Index(name="index_sys_pojo_version_ref_id",columnList = "REF_ID"),
@Index(name="index_sys_pojo_version_ref_class",columnList = "REF_CLASS"),
})
@Api(value="对象历史") @Api(value="对象历史")
public class SysPojoVersion extends BaseBean { public class SysPojoVersion extends BaseBean {
private static final long serialVersionUID = -2265406135818649545L;
private static final long serialVersionUID = -2456588444446248239L;
@Column(name="SOFT_TYPE") @Column(name="SOFT_TYPE")
@ApiParam(value ="产品类型") @ApiParam(value ="产品类型")
private Integer softType; private Integer softType;
@ -41,6 +42,11 @@ public class SysPojoVersion extends BaseBean {
return softType == null ? null : CommonEnumUtil.SOFT_TYPE.valueOfDescription(softType); return softType == null ? null : CommonEnumUtil.SOFT_TYPE.valueOfDescription(softType);
} }
@Column(name="PLAN_ID")
@ApiParam(value ="对象计划id" ,example = "-1")
@JsonSerialize(using = ToStringSerializer.class)
private Long planId;
@Column(name="REF_ID") @Column(name="REF_ID")
@ApiParam(value ="对象id" ,example = "-1") @ApiParam(value ="对象id" ,example = "-1")
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
@ -79,4 +85,7 @@ public class SysPojoVersion extends BaseBean {
@ApiParam(value ="用户部门信息") @ApiParam(value ="用户部门信息")
private SysPojoVersionDetail versionDetail; private SysPojoVersionDetail versionDetail;
@Transient
@ApiParam(value ="操作对象本身")
private String bean;
} }

@ -32,8 +32,7 @@ import javax.persistence.Table;
@Api(value="对象历史") @Api(value="对象历史")
public class SysPojoVersionDetail extends BaseBean { public class SysPojoVersionDetail extends BaseBean {
private static final long serialVersionUID = 5385530381442176242L;
private static final long serialVersionUID = -2456588444446248239L;
@Column(name="POJO_VERSION_ID") @Column(name="POJO_VERSION_ID")
@ApiParam(value ="对象id" ,example = "-1") @ApiParam(value ="对象id" ,example = "-1")
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)

@ -29,7 +29,7 @@ import javax.persistence.Table;
@Api(value="对象历史") @Api(value="对象历史")
public class SysPojoVersionPlan extends BaseBean { public class SysPojoVersionPlan extends BaseBean {
private static final long serialVersionUID = -1120504360281638917L; private static final long serialVersionUID = -3125272220108497862L;
@Column(name="SOFT_TYPE") @Column(name="SOFT_TYPE")
@ApiParam(value ="产品类型") @ApiParam(value ="产品类型")
private Integer softType; private Integer softType;

@ -59,4 +59,11 @@ public class SysPosition extends BaseBean {
@ApiParam(value ="子部门列表") @ApiParam(value ="子部门列表")
private List<SysPosition> childList; private List<SysPosition> childList;
public SysPosition() {
}
public SysPosition(String positionCode, Long parentId) {
this.positionCode = positionCode;
this.parentId = parentId;
}
} }

@ -11,10 +11,8 @@ import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Type; import org.hibernate.annotations.Type;
import javax.persistence.Column; import javax.persistence.*;
import javax.persistence.Entity; import java.util.List;
import javax.persistence.Lob;
import javax.persistence.Table;
/** /**
* @Description : * @Description :
@ -53,4 +51,15 @@ public class SysRole extends BaseBean {
@ApiParam(value ="角色状态枚举1.正常2.状态)" , example ="-1") @ApiParam(value ="角色状态枚举1.正常2.状态)" , example ="-1")
private Integer roleStatus; private Integer roleStatus;
@Transient
@ApiParam(value ="角色拥有功能权限信息")
private transient List<Long> menuIdList;
public SysRole() {
}
public SysRole(String name, Integer roleStatus) {
this.name = name;
this.roleStatus = roleStatus;
}
} }

@ -247,4 +247,9 @@ public class SysUserInfo extends BaseBean {
@ApiParam(value = "岗位信息") @ApiParam(value = "岗位信息")
@AnnoOutputColumn(hidden = true) @AnnoOutputColumn(hidden = true)
private SysPosition position; private SysPosition position;
@Transient
@ApiParam(value = "图像信息")
@AnnoOutputColumn(hidden = true)
private String imageFileUrl;
} }

@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.platform.platbean; package cn.estsh.i3plus.pojo.platform.platbean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
@ -35,7 +36,10 @@ public class SysLogConsole extends BaseBean {
/******** 服务器信息 ********/ /******** 服务器信息 ********/
@Column(name="SOFT_TYPE") @Column(name="SOFT_TYPE")
@ApiParam(value ="产品名称") @ApiParam(value ="产品名称")
private String softType; private Integer softType;
public String getSoftTypeTxt() {
return softType == null ? null : CommonEnumUtil.SOFT_TYPE.valueOfDescription(softType);
}
@Column(name="LOG_HOST") @Column(name="LOG_HOST")
@ApiParam(value ="服务器IP") @ApiParam(value ="服务器IP")

@ -34,17 +34,12 @@ public class SysLogException extends BaseBean {
private static final long serialVersionUID = -2844455884020022321L; private static final long serialVersionUID = -2844455884020022321L;
//CommonEnumUtil.SOFT_TYPE //CommonEnumUtil.SOFT_TYPE
@Indexed @Indexed
@Column(name="EXC_MODULE_ID") @Column(name="SOFT_TYPE")
@ApiParam(value ="系统模块(枚举)", example = "1") @ApiParam(value ="系统模块(枚举)", example = "1")
@AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class,refForeignKey = "value",value = "description") @AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class,refForeignKey = "value",value = "description")
private Integer excModule; private Integer softType;
public String getSoftTypeTxt() {
private String excModuleName; return softType == null ? null : CommonEnumUtil.SOFT_TYPE.valueOfDescription(softType);
public String getExcModuleName(){
if(this.excModule != null){
return CommonEnumUtil.SOFT_TYPE.valueOfDescription(this.excModule);
}
return excModuleName;
} }
@Column(name="EXC_CLASS_NAME") @Column(name="EXC_CLASS_NAME")

@ -36,17 +36,12 @@ public class SysLogOperate extends BaseBean {
private static final long serialVersionUID = 1515035521283176727L; private static final long serialVersionUID = 1515035521283176727L;
@Indexed @Indexed
@Column(name="OPERATE_MODULE") @Column(name="SOFT_TYPE")
@ApiParam(value ="系统模块(枚举)", example = "1") @ApiParam(value ="系统模块(枚举)", example = "1")
@AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class,refForeignKey = "value",value = "description") @AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class,refForeignKey = "value",value = "description")
private Integer operateModule; private Integer softType;
public String getSoftTypeTxt() {
private String operateModuleName; return softType == null ? null : CommonEnumUtil.SOFT_TYPE.valueOfDescription(softType);
public String getOperateModuleName(){
if(this.operateModule != null){
return CommonEnumUtil.SOFT_TYPE.valueOfDescription(this.operateModule);
}
return operateModuleName;
} }
@Indexed @Indexed
@ -55,8 +50,8 @@ public class SysLogOperate extends BaseBean {
@AnnoOutputColumn(refClass = ImppEnumUtil.OPERATE_TYPE.class,refForeignKey = "value",value = "description") @AnnoOutputColumn(refClass = ImppEnumUtil.OPERATE_TYPE.class,refForeignKey = "value",value = "description")
private Integer operateType; private Integer operateType;
public String getOperateTypeName(){ public String getOperateTypeTxt(){
return ImppEnumUtil.OPERATE_TYPE.valueOfCode(operateType); return operateType == null ? null : ImppEnumUtil.OPERATE_TYPE.valueOfDescription(operateType);
} }
@Column(name="OPERATE_MESSAGE") @Column(name="OPERATE_MESSAGE")
@ -75,9 +70,9 @@ public class SysLogOperate extends BaseBean {
@ApiParam(value ="请求路径" , access ="请求路径") @ApiParam(value ="请求路径" , access ="请求路径")
private String requestUrl; private String requestUrl;
@Column(name="HTTP_METHOD") // @Column(name="HTTP_METHOD")
@ApiParam(value ="http请求方法" , access ="http请求方法") // @ApiParam(value ="http请求方法" , access ="http请求方法")
private String httpMethod; // private String httpMethod;
@Column(name="LOG_ARGS") @Column(name="LOG_ARGS")
@ApiParam(value ="方法入参" , access ="方法入参") @ApiParam(value ="方法入参" , access ="方法入参")

@ -40,12 +40,18 @@ public class SysLogSystem extends BaseBean {
@ApiParam(value ="日志级别" , example ="1") @ApiParam(value ="日志级别" , example ="1")
@AnnoOutputColumn(refClass = ImppEnumUtil.LOG_LEVEL.class,refForeignKey = "value",value = "name") @AnnoOutputColumn(refClass = ImppEnumUtil.LOG_LEVEL.class,refForeignKey = "value",value = "name")
private Integer logLevel; private Integer logLevel;
public String getLogLevelTxt() {
return logLevel == null ? null : ImppEnumUtil.LOG_LEVEL.valueOfDescription(logLevel);
}
@Indexed @Indexed
@Column(name="LOG_MODULE_ID") @Column(name="SOFT_TYPE")
@ApiParam(value ="系统模块(枚举)", example = "1") @ApiParam(value ="系统模块(枚举)", example = "1")
@AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class,refForeignKey = "value",value = "description") @AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class,refForeignKey = "value",value = "description")
private Integer logModuleId; private Integer softType;
public String getSoftTypeTxt() {
return softType == null ? null : CommonEnumUtil.SOFT_TYPE.valueOfDescription(softType);
}
@Column(name="REMOTE_IP") @Column(name="REMOTE_IP")
@ApiParam(value ="请求IP" , access ="请求IP") @ApiParam(value ="请求IP" , access ="请求IP")

@ -64,9 +64,12 @@ public class SysLogTaskTime extends BaseBean {
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private Long taskPlanId; private Long taskPlanId;
@Column(name = "TASK_SOFT_TYPE_RDD") @Column(name="SOFT_TYPE")
@ApiParam(value = "任务所属模块") @ApiParam(value ="产品名称")
private Integer taskSoftTypeRdd; private Integer softType;
public String getSoftTypeTxt() {
return softType == null ? null : CommonEnumUtil.SOFT_TYPE.valueOfDescription(softType);
}
@Column(name="TASK_CYCLE_NAME_RDD") @Column(name="TASK_CYCLE_NAME_RDD")
@ApiParam(value ="任务周期名称") @ApiParam(value ="任务周期名称")

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

@ -141,7 +141,7 @@ public class CoreHqlPack {
DdlPackBean result = DdlPackBean.getDdlPackBean(position.getOrganizeCode()); DdlPackBean result = DdlPackBean.getDdlPackBean(position.getOrganizeCode());
// 查询参数封装 // 查询参数封装
// DdlPreparedPack.getNumEqualPack(position.getParentId(),"parentId",result); DdlPreparedPack.getNumEqualPack(position.getParentId(),"parentId",result);
// String Like // String Like
DdlPreparedPack.getStringLikerPack(position.getName(),"name",result); DdlPreparedPack.getStringLikerPack(position.getName(),"name",result);
DdlPreparedPack.getStringLikerPack(position.getPositionCode(),"positionCode",result); DdlPreparedPack.getStringLikerPack(position.getPositionCode(),"positionCode",result);
@ -167,6 +167,21 @@ public class CoreHqlPack {
/** /**
*
* @param bean
* @return
*/
public static DdlPackBean packHqlSysRefUserPosition(SysRefUserPosition bean){
DdlPackBean result = DdlPackBean.getDdlPackBean(bean);
// 查询参数封装
DdlPreparedPack.getNumEqualPack(bean.getUserId(),"userId",result);
return result;
}
/**
* *
* @param organize * @param organize
* @return * @return
@ -189,13 +204,22 @@ public class CoreHqlPack {
} }
public static DdlPackBean packHqlSysOrganize(SysOrganize organize,List<Long> idList){ public static DdlPackBean packHqlSysOrganize(SysOrganize organize,List<Long> idList){
HqlPack.getOrderDefault(organize);
DdlPackBean result = DdlPackBean.getDdlPackBean(organize); DdlPackBean result = DdlPackBean.getDdlPackBean(organize);
// String Like
DdlPreparedPack.getStringLikerPack(organize.getName(),"name",result); DdlPreparedPack.getStringLikerPack(organize.getName(),"name",result);
DdlPreparedPack.getStringLikerPack(organize.getOrganizeCode(),"organizeCode",result); DdlPreparedPack.getStringLikerPack(organize.getOrganizeCode(),"organizeCode",result);
DdlPreparedPack.getNumEqualPack(organize.getParentId(),"parentId",result);
// 查询参数封装
if(organize.getChildIdList() != null){
DdlPreparedPack.getInPack(StringUtils.join(organize.getChildIdList(),","),"parentId",result);
}
// Number In // Number In
DdlPreparedPack.getInPackList(idList,"id",result); DdlPreparedPack.getInPackList(idList,"id",result);
return result; return result;
} }
@ -214,6 +238,7 @@ public class CoreHqlPack {
* @param department * @param department
* @return * @return
*/ */
@Deprecated
public static String packHqlSysDepartment(SysDepartment department){ public static String packHqlSysDepartment(SysDepartment department){
StringBuffer result = new StringBuffer(); StringBuffer result = new StringBuffer();
@ -236,34 +261,15 @@ public class CoreHqlPack {
DdlPackBean result = DdlPackBean.getDdlPackBean(department); DdlPackBean result = DdlPackBean.getDdlPackBean(department);
DdlPreparedPack.getStringLikerPack(department.getName(),"name",result); DdlPreparedPack.getStringLikerPack(department.getName(),"name",result);
DdlPreparedPack.getStringLikerPack(department.getName(),"departmentCode",result); DdlPreparedPack.getNumEqualPack(department.getParentId(),"parentId",result);
DdlPreparedPack.getNumEqualPack(department.getOrganizeId(),"organizeId",result);
DdlPreparedPack.getStringLikerPack(department.getDepartmentCode(),"departmentCode",result);
DdlPreparedPack.getInPackList(idList,"id",result); DdlPreparedPack.getInPackList(idList,"id",result);
result.setOrderByStr(department.orderBy()); result.setOrderByStr(department.orderBy());
return result; return result;
} }
/**
*
* @param menu
* @return
*/
public static String packHqlSysMenu(SysMenu menu){
StringBuffer result = new StringBuffer();
// 查询参数封装
HqlPack.getNumEqualPack(menu.getParentId(),"parentId",result);
HqlPack.getNumEqualPack(menu.getMenuType(),"menuType",result);
HqlPack.getNumEqualPack(menu.getMenuStatus(),"menuStatus",result);
HqlPack.getStringLikerPack(menu.getName(),"name",result);
HqlPack.getStringLikerPack(menu.getMenuCode(),"menuCode",result);
// 添加默认排序
HqlPack.getOrderDefault(menu);
return result.toString();
}
public static DdlPackBean packDdlBeanSysMenu(SysMenu menu,List<Long> idList){ public static DdlPackBean packDdlBeanSysMenu(SysMenu menu,List<Long> idList){
DdlPackBean result = DdlPackBean.getDdlPackBean(menu); DdlPackBean result = DdlPackBean.getDdlPackBean(menu);
@ -1021,7 +1027,7 @@ public class CoreHqlPack {
* @return * @return
*/ */
public static DdlPackBean packHqlSysDictionary(SysDictionary sysDictionary){ public static DdlPackBean packHqlSysDictionary(SysDictionary sysDictionary){
DdlPackBean packBean = new DdlPackBean(); DdlPackBean packBean = DdlPackBean.getDdlPackBean(sysDictionary);
DdlPreparedPack.getStringEqualPack(sysDictionary.getName(), "name", packBean); DdlPreparedPack.getStringEqualPack(sysDictionary.getName(), "name", packBean);
DdlPreparedPack.getStringEqualPack(sysDictionary.getDictionaryCode(), "dictionaryCode", packBean); DdlPreparedPack.getStringEqualPack(sysDictionary.getDictionaryCode(), "dictionaryCode", packBean);
@ -1033,4 +1039,37 @@ public class CoreHqlPack {
return packBean; return packBean;
} }
/**
*
* @param bean
* @return
*/
public static DdlPackBean packHqlSysPojoVersion(SysPojoVersion bean){
DdlPackBean packBean = DdlPackBean.getDdlPackBean(bean);
DdlPreparedPack.getNumEqualPack(bean.getRefId(),"refId",packBean);
DdlPreparedPack.getNumEqualPack(bean.getPlanId(),"planId",packBean);
DdlPreparedPack.getNumEqualPack(bean.getOperateType(),"operateType",packBean);
DdlPreparedPack.getStringLeftLikerPack(bean.getRefClass(),"refClass",packBean);
DdlPreparedPack.getStringLeftLikerPack(bean.getVersionMethodName(),"versionMethodName",packBean);
DdlPreparedPack.getStringLikerPack(bean.getPojoCompare(),"pojoCompare",packBean);
return packBean;
}
public static DdlPackBean packSysDataSource(SysDataSource bean){
DdlPackBean ddlPackBean = DdlPackBean.getDdlPackBean(bean);
DdlPreparedPack.getStringLikerPack(bean.getSourceHost(), "sourceHost", ddlPackBean);
DdlPreparedPack.getStringLikerPack(bean.getSourceName(), "sourceName", ddlPackBean);
DdlPreparedPack.getStringLikerPack(bean.getSourceCode(), "sourceCode", ddlPackBean);
DdlPreparedPack.getStringLikerPack(bean.getSourceDataBaseName(), "sourceDataBaseName", ddlPackBean);
DdlPreparedPack.getNumEqualPack(bean.getSourceType(), "sourceType", ddlPackBean);
DdlPreparedPack.getNumEqualPack(bean.getSourceStatus(), "sourceStatus", ddlPackBean);
DdlPreparedPack.getNumEqualPack(bean.getSoftType(), "softType", ddlPackBean);
return ddlPackBean;
}
} }

@ -114,13 +114,13 @@ public class ReportHqlPack {
* @param brLayout * @param brLayout
* @return * @return
*/ */
public static String packHqlBrLayout(BrLayout brLayout){ public static DdlPackBean packHqlBrLayout(BrLayout brLayout){
StringBuffer result = new StringBuffer(); DdlPackBean result = DdlPackBean.getDdlPackBean(brLayout);
// 查询参数封装 // 查询参数封装
HqlPack.getStringLikerPack(brLayout.getLayoutName(),"layoutName",result); DdlPreparedPack.getStringLikerPack(brLayout.getLayoutName(),"layoutName",result);
return result.toString(); return result;
} }
/** /**

@ -1,4 +1,4 @@
package cn.estsh.i3plus.pojo.wms.engine.script; package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;

@ -1,4 +1,4 @@
package cn.estsh.i3plus.pojo.wms.engine.script; package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;

@ -143,8 +143,9 @@ public class WmsASNMasterDetails extends BaseBean {
public WmsASNMasterDetails(){} public WmsASNMasterDetails(){}
public WmsASNMasterDetails(Double recQty,String partNo,String orderNo,String partNameRdd,String item,String unit,String erpAreaNo,String organizeCode){ public WmsASNMasterDetails(Double recQty,Double qty,String partNo,String orderNo,String partNameRdd,String item,String unit,String erpAreaNo,String organizeCode,String planDate,String planTime){
this.recQty = recQty; this.recQty = recQty;
this.qty = qty;
this.partNo = partNo; this.partNo = partNo;
this.orderNo = orderNo; this.orderNo = orderNo;
this.partNameRdd = partNameRdd; this.partNameRdd = partNameRdd;
@ -152,5 +153,7 @@ public class WmsASNMasterDetails extends BaseBean {
this.unit = unit; this.unit = unit;
this.erpAreaNo = erpAreaNo; this.erpAreaNo = erpAreaNo;
this.organizeCode = organizeCode; this.organizeCode = organizeCode;
this.planDate = planDate;
this.planTime = planTime;
} }
} }

@ -3,7 +3,6 @@ package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn; import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
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 cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import cn.estsh.i3plus.pojo.base.util.StringUtil;
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;
@ -11,7 +10,12 @@ import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*; import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Transient;
/** /**
* @Description : * @Description :
@ -235,6 +239,28 @@ public class WmsMoveMaster extends BaseBean {
this.orderStatus = orderStatus; this.orderStatus = orderStatus;
} }
public WmsMoveMaster(String orderNo, Integer orderStatus, String transTypeCode, String errorMessage,
Integer isUrgent, String carNo, Integer busiTypeCode, String refOrderNo, String remark,
String organizeCode, String createDatetime, String createUser, String modifyDatetime, String modifyUser, String fixId
) {
this.orderNo = orderNo;
this.orderStatus = orderStatus;
this.remark = remark;
this.isUrgent = isUrgent;
this.transTypeCode = transTypeCode;
this.errorMessage = errorMessage;
this.busiTypeCode = busiTypeCode;
this.refOrderNo = refOrderNo;
this.carNo = carNo;
this.organizeCode = organizeCode;
this.createDatetime = createDatetime;
this.createUser = createUser;
this.modifyDatetime = modifyDatetime;
this.modifyUser = modifyUser;
this.fixId = fixId;
}
public Double getTransQty() { public Double getTransQty() {
return this.transQty == null ? 0 : this.transQty.doubleValue(); return this.transQty == null ? 0 : this.transQty.doubleValue();
} }

@ -4,6 +4,8 @@ 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;
/** /**
* @Description : * @Description :
* @Reference : * @Reference :
@ -23,13 +25,22 @@ public class WmsAutoPurchasePartModel {
@ApiParam("物料名称") @ApiParam("物料名称")
private String partName; private String partName;
@ApiParam(value = "单位")
private String unit;
@ApiParam("物料数量") @ApiParam("物料数量")
private Integer qty; private Double qty;
@ApiParam("Erp库存地") @ApiParam("Erp库存地")
private String erpWarehouse; private String erpWarehouse;
public WmsAutoPurchasePartModel(String partNo, String partName, Integer qty, String warehouse) { @ApiParam("供应商编码")
private String vendorNo;
@ApiParam("供应商名称")
private String vendorName;
public WmsAutoPurchasePartModel(String partNo, String partName, Double qty, String warehouse) {
this.partNo = partNo; this.partNo = partNo;
this.partName = partName; this.partName = partName;
this.qty = qty; this.qty = qty;

@ -1,7 +1,7 @@
package cn.estsh.i3plus.pojo.wms.repository; package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.engine.script.EngineScriptPersistenceHistory; import cn.estsh.i3plus.pojo.wms.bean.EngineScriptPersistenceHistory;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
@Repository @Repository

@ -1,7 +1,7 @@
package cn.estsh.i3plus.pojo.wms.repository; package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.engine.script.EngineScriptPersistence; import cn.estsh.i3plus.pojo.wms.bean.EngineScriptPersistence;
import org.springframework.data.jpa.repository.Query; import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;

@ -15,13 +15,15 @@ import cn.estsh.i3plus.pojo.wms.bean.template.BasImportTemplate;
import cn.estsh.i3plus.pojo.wms.bean.template.BasImportTemplateDetails; import cn.estsh.i3plus.pojo.wms.bean.template.BasImportTemplateDetails;
import cn.estsh.i3plus.pojo.wms.dbinterface.WmsInterfaceDataMapper; import cn.estsh.i3plus.pojo.wms.dbinterface.WmsInterfaceDataMapper;
import cn.estsh.i3plus.pojo.wms.engine.rule.EngineRulePersistence; import cn.estsh.i3plus.pojo.wms.engine.rule.EngineRulePersistence;
import cn.estsh.i3plus.pojo.wms.engine.script.EngineScriptPersistence;
import cn.estsh.i3plus.pojo.wms.engine.script.EngineScriptPersistenceHistory;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.google.common.base.Strings; import com.google.common.base.Strings;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import java.util.*; import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**

Loading…
Cancel
Save