|
|
|
@ -1,46 +1,6 @@
|
|
|
|
|
package cn.estsh.i3plus.pojo.andon.sqlpack;
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonActionModule;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonActionModuleParam;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonActionRoute;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonActor;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonActorRule;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonAlarmCause;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonAlarmDetailType;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonAlarmResponseCfg;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonAlarmRoute;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonAlarmType;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonBroadCast;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonBroadCastCfg;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonCellAlarmCause;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonCellEventCause;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonCellEventMethod;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonCellEventPhenomenon;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonCellGroupCfg;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonConfig;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonDisposalCfg;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonDisposalMaintenCfg;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonEventCause;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonEventMethod;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonEventPhenoMenon;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonHaltCfg;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonHaltType;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonKnowledgeBase;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonManageQueue;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonManageRecord;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonMessageRecord;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonMessageType;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonPLC;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonQueueAttach;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonResponse;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonResponseObject;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonRiteRoute;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.AndonRiteRouteDetail;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.MesArea;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.MesEquipment;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.MesShift;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.MesWorkCell;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.MesWorkCenter;
|
|
|
|
|
import cn.estsh.i3plus.pojo.andon.bean.*;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
|
|
|
@ -1086,6 +1046,12 @@ public class AndonHqlPack {
|
|
|
|
|
return packBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 作业流程
|
|
|
|
|
* @param actionRoute
|
|
|
|
|
* @param organizeCode
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static DdlPackBean packHqlAndonActionRoute(AndonActionRoute actionRoute, String organizeCode) {
|
|
|
|
|
DdlPackBean packBean = getAllBaseDataByNormalPro(actionRoute, organizeCode);
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(actionRoute.getRouteCode(), "routeCode", packBean);
|
|
|
|
@ -1094,6 +1060,12 @@ public class AndonHqlPack {
|
|
|
|
|
return packBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 安灯作业流程配置
|
|
|
|
|
* @param alarmRoute
|
|
|
|
|
* @param organizeCode
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static DdlPackBean packHqlAndonAlarmRoute(AndonAlarmRoute alarmRoute, String organizeCode) {
|
|
|
|
|
DdlPackBean packBean = getAllBaseDataByNormalPro(alarmRoute, organizeCode);
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(alarmRoute.getRouteCode(), "routeCode", packBean);
|
|
|
|
@ -1101,4 +1073,21 @@ public class AndonHqlPack {
|
|
|
|
|
DdlPreparedPack.getNumEqualPack(alarmRoute.getRouteType(), "routeType", packBean);
|
|
|
|
|
return packBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 流程状态异常记录
|
|
|
|
|
* @param routeStatusErrorRecord
|
|
|
|
|
* @param organizeCode
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static DdlPackBean getAndonRouteStatusErrorRecord(AndonRouteStatusErrorRecord routeStatusErrorRecord, String organizeCode) {
|
|
|
|
|
DdlPackBean packBean = getAllBaseDataByNormalPro(routeStatusErrorRecord, organizeCode);
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(routeStatusErrorRecord.getRouteCode(), "routeCode", packBean);
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(routeStatusErrorRecord.getStatusCode(), "statusCode", packBean);
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(routeStatusErrorRecord.getAndonOrderNo(), "andonOrderNo", packBean);
|
|
|
|
|
DdlPreparedPack.getStringEqualPack(routeStatusErrorRecord.getAlarmCode(), "alarmCode", packBean);
|
|
|
|
|
DdlPreparedPack.getStringEqualPack(routeStatusErrorRecord.getSourceType(), "sourceType", packBean);
|
|
|
|
|
DdlPreparedPack.getNumEqualPack(routeStatusErrorRecord.getHandleStatus(), "handleStatus", packBean);
|
|
|
|
|
return packBean;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|