|
|
|
@ -54,6 +54,51 @@ public class Seq {
|
|
|
|
|
public static final String dmsLubeInstanceCode = "LI";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//检修计划序列类型
|
|
|
|
|
public static final String planRepairSeqType = "PLANREPAIR";
|
|
|
|
|
//检修计划接口序列数
|
|
|
|
|
private static AtomicInteger planRepairSeq = new AtomicInteger(1);
|
|
|
|
|
//检修记录标识
|
|
|
|
|
public static final String planRepairCode = "PR";
|
|
|
|
|
//检修工单序列类型
|
|
|
|
|
public static final String repairInstanceSeqTupe = "REPAIRINSTANCE";
|
|
|
|
|
//检修工单接口序列数
|
|
|
|
|
private static AtomicInteger repairInstanceSeq = new AtomicInteger(1);
|
|
|
|
|
//检修工单标识
|
|
|
|
|
public static final String repairInstanceCode = "RI";
|
|
|
|
|
|
|
|
|
|
//检修计划序列类型
|
|
|
|
|
public static final String planInspectSeqType = "PLANINSPECT";
|
|
|
|
|
//检修计划接口序列数
|
|
|
|
|
private static AtomicInteger planInspectSeq = new AtomicInteger(1);
|
|
|
|
|
//检修记录标识
|
|
|
|
|
public static final String planInspectCode = "PIC";
|
|
|
|
|
//检修工单序列类型
|
|
|
|
|
public static final String InspectInstanceSeqTupe = "INSPECTINSTANCE";
|
|
|
|
|
//检修工单接口序列数
|
|
|
|
|
private static AtomicInteger INSPECTInstanceSeq = new AtomicInteger(1);
|
|
|
|
|
//检修工单标识
|
|
|
|
|
public static final String InspectInstanceCode = "IIC";
|
|
|
|
|
|
|
|
|
|
// 保养计划序列类型
|
|
|
|
|
public static final String planMaintSeqType = "PLANMAINT";
|
|
|
|
|
|
|
|
|
|
// 保养计划接口序列数
|
|
|
|
|
private static AtomicInteger planMaintSeq = new AtomicInteger(1);
|
|
|
|
|
|
|
|
|
|
// 保养记录标识
|
|
|
|
|
public static final String planMaintCode = "PM";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 保养工单序列类型
|
|
|
|
|
public static final String maintInstanceSeqType = "MAINTINSTANCE";
|
|
|
|
|
|
|
|
|
|
// 保养工单接口序列数
|
|
|
|
|
private static AtomicInteger maintInstanceSeq = new AtomicInteger(1);
|
|
|
|
|
|
|
|
|
|
// 保养工单标识
|
|
|
|
|
public static final String maintInstanceCode = "MI";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取通用序列号
|
|
|
|
|
*
|
|
|
|
@ -122,7 +167,12 @@ public class Seq {
|
|
|
|
|
atomicInt = dmsPlanLubeSeq;
|
|
|
|
|
}else if (dmsLubeInstanceSeqType.equals(type)) {
|
|
|
|
|
atomicInt = dmsLubeInstanceSeq;
|
|
|
|
|
}else if (planMaintSeqType.equals(type)) {
|
|
|
|
|
atomicInt = planMaintSeq;
|
|
|
|
|
}else if(maintInstanceSeqType.equals(type)) {
|
|
|
|
|
atomicInt = maintInstanceSeq;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return getId(atomicInt, 4, code);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|