10 changed files with 1930 additions and 0 deletions
-
292src/main/java/com/spring/ifs/api/TechnicalClassApi.java
-
461src/main/java/com/spring/ifs/api/ToolApi.java
-
433src/main/java/com/spring/ifs/controller/TestIfsController.java
-
80src/main/java/com/spring/ifs/data/TechnicalAttribute.java
-
89src/main/java/com/spring/ifs/data/TechnicalClass.java
-
126src/main/java/com/spring/ifs/data/ToolHeader.java
-
117src/main/java/com/spring/ifs/data/ToolInstance.java
-
27src/main/java/com/spring/ifs/data/ToolInstanceDate.java
-
125src/main/java/com/spring/ifs/data/WarehouseLocation.java
-
180src/main/java/com/spring/ifs/data/WorkCenter.java
@ -0,0 +1,292 @@ |
|||
package com.spring.ifs.api; |
|||
|
|||
import com.spring.ifs.data.TechnicalAttribute; |
|||
import com.spring.ifs.data.TechnicalClass; |
|||
import com.spring.ifs.utils.IfsConverterToMap; |
|||
import com.spring.ifs.utils.IfsPlsqlUtils; |
|||
import ifs.fnd.ap.*; |
|||
|
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* @description: 处理技术等级的api |
|||
* @author LR |
|||
* @date 2024/12/9 10:56 |
|||
* @version 1.0 |
|||
*/ |
|||
public class TechnicalClassApi { |
|||
|
|||
/** |
|||
* @description: 查询技术等级的信息 |
|||
* @author LR |
|||
* @date 2024/12/11 11:35 |
|||
* @version 1.0 |
|||
*/ |
|||
public static Map<String, String> getTechnicalClass(Server srv, String luName, String keyRef) throws APException { |
|||
StringBuilder searchSql = new StringBuilder(); |
|||
searchSql.append("SELECT OBJID ifsRowId, OBJVERSION ifsRowVersion, LU_NAME, KEY_REF, TECHNICAL_SPEC_NO, TECHNICAL_CLASS,"); |
|||
searchSql.append(" OK_YES_NO, OK_SIGN, DT_OK"); |
|||
searchSql.append(" FROM ifsapp.TECHNICAL_OBJECT_REFERENCE"); |
|||
searchSql.append(" WHERE LU_NAME = :luName and KEY_REF = :keyRef"); |
|||
//设置查询的入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
inParam.put("luName", luName); |
|||
inParam.put("keyRef", keyRef); |
|||
//调用查询的通用方法 |
|||
RecordCollection recordCollection = IfsPlsqlUtils.execSqlSearchGetRecordCollection(srv, searchSql, inParam); |
|||
//判断能否返回 |
|||
if (recordCollection == null) { |
|||
return null; |
|||
} else { |
|||
Record recordData = recordCollection.get(0); |
|||
Map<String, String> resultMap = IfsConverterToMap.ConverterIfsToMap(recordData); |
|||
return resultMap; |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* @description: 新增技术等级的数据 |
|||
* @author LR |
|||
* @date 2024/12/11 11:38 |
|||
* @version 1.0 |
|||
*/ |
|||
public static Map<String, String> insertTechnicalClass(Server srv, TechnicalClass inData) throws APException { |
|||
//公共参数 |
|||
String keyRef = inData.getKeyRef(); |
|||
String luName = inData.getLuName(); |
|||
String technicalSpecNo = inData.getTechnicalSpecNo(); // |
|||
String technicalClass = inData.getTechnicalClass(); // |
|||
String okSign = inData.getOkSign(); // |
|||
String dtOk = inData.getDtOk(); |
|||
//是否存在有效值 |
|||
if(dtOk == null || dtOk.equals("")) { |
|||
dtOk = ""; |
|||
}else { |
|||
dtOk = dtOk+"-00.00.00"; |
|||
} |
|||
//入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
//填充参数 |
|||
inParam.put("OBJID", ""); |
|||
inParam.put("OBJVERSION", ""); |
|||
inParam.put("LU_NAME", luName); // 属性值 |
|||
inParam.put("KEY_REF", keyRef); // 物料 |
|||
inParam.put("TECHNICAL_SPEC_NO", technicalSpecNo); // 固定值 |
|||
inParam.put("TECHNICAL_CLASS", technicalClass); // 技术等级 |
|||
inParam.put("OK_YES_NO", "Not Approved"); // 是否批准 |
|||
inParam.put("OK_SIGN", okSign); // 人员 |
|||
inParam.put("DT_OK", dtOk); // 时间 |
|||
|
|||
//执行存储过程 获取结果集 |
|||
//执行check的操作 |
|||
Map<String, String> checkMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "TECHNICAL_OBJECT_REFERENCE_API", |
|||
"NEW__", PlsqlBaseMethodType.NEW, PlsqlBaseMethodAction.CHECK, inParam); |
|||
//执行do的操作 |
|||
Map<String, String> resultMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "TECHNICAL_OBJECT_REFERENCE_API", |
|||
"NEW__", PlsqlBaseMethodType.NEW, PlsqlBaseMethodAction.DO, inParam); |
|||
//返回结果集 |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 修改技术等级的信息 |
|||
* @author LR |
|||
* @date 2024/12/11 11:42 |
|||
* @version 1.0 |
|||
*/ |
|||
public static Map<String, String> modifyTechnicalClass(Server srv, TechnicalClass inData) throws APException { |
|||
//公共参数 |
|||
String ifsRowId = inData.getIfsRowId(); |
|||
String ifsRowVersion = inData.getIfsRowVersion(); |
|||
//入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
//填充参数 |
|||
inParam.put("OBJID", ifsRowId); |
|||
inParam.put("OBJVERSION", ifsRowVersion); |
|||
//执行存储过程 获取结果集 |
|||
//执行check的操作 |
|||
Map<String, String> checkMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "INVENTORY_PART_API", |
|||
"REMOVE__", PlsqlBaseMethodType.REMOVE, PlsqlBaseMethodAction.CHECK, inParam); |
|||
//执行do的操作 |
|||
Map<String, String> resultMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "INVENTORY_PART_API", |
|||
"REMOVE__", PlsqlBaseMethodType.REMOVE, PlsqlBaseMethodAction.DO, inParam); |
|||
//返回结果集 |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 删除技术等级的信息 |
|||
* @author LR |
|||
* @date 2024/12/11 11:45 |
|||
* @version 1.0 |
|||
*/ |
|||
public static void removeTechnicalClass(Server srv, TechnicalClass inData) throws APException { |
|||
//公共参数 |
|||
String ifsRowId = inData.getIfsRowId(); |
|||
String ifsRowVersion = inData.getIfsRowVersion(); |
|||
//入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
//填充参数 |
|||
inParam.put("OBJID", ifsRowId); |
|||
inParam.put("OBJVERSION", ifsRowVersion); |
|||
//执行存储过程 获取结果集 |
|||
//执行check的操作 |
|||
Map<String, String> checkMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "TECHNICAL_OBJECT_REFERENCE_API", |
|||
"REMOVE__", PlsqlBaseMethodType.REMOVE, PlsqlBaseMethodAction.CHECK, inParam); |
|||
//执行do的操作 |
|||
Map<String, String> resultMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "TECHNICAL_OBJECT_REFERENCE_API", |
|||
"REMOVE__", PlsqlBaseMethodType.REMOVE, PlsqlBaseMethodAction.DO, inParam); |
|||
} |
|||
|
|||
/** |
|||
* @description: 查询技术等级的属性 |
|||
* @author LR |
|||
* @date 2024/12/11 13:23 |
|||
* @version 1.0 |
|||
*/ |
|||
public static Map<String, String> getTechnicalAttribute(Server srv, String technicalSpecNo, String technicalClass, String attribute) throws APException { |
|||
StringBuilder searchSql = new StringBuilder(); |
|||
searchSql.append("SELECT OBJID ifsRowId, OBJVERSION ifsRowVersion, TECHNICAL_SPEC_NO, TECHNICAL_CLASS, ATTRIB_NUMBER, ATTRIBUTE,"); |
|||
searchSql.append(" VALUE_NO, LOWER_LIMIT, UPPER_LIMIT, INFO, ALT_VALUE_NO, ALT_UNIT,"); |
|||
searchSql.append(" CASE WHEN objtype = 'TechnicalSpecNumeric' THEN 'Numeric'"); |
|||
searchSql.append(" WHEN objtype = 'TechnicalSpecAlphanum' THEN 'Alpha' ELSE '' END attributeType"); |
|||
searchSql.append(" FROM ifsapp.TECHNICAL_SPECIFICATION_BOTH"); |
|||
searchSql.append(" WHERE TECHNICAL_SPEC_NO = :technicalSpecNo AND TECHNICAL_CLASS = :technicalClass AND ATTRIBUTE = :attribute"); |
|||
|
|||
//设置查询的入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
inParam.put("technicalSpecNo", technicalSpecNo); |
|||
inParam.put("technicalClass", technicalClass); |
|||
inParam.put("attribute", attribute); |
|||
//调用查询的通用方法 |
|||
RecordCollection recordCollection = IfsPlsqlUtils.execSqlSearchGetRecordCollection(srv, searchSql, inParam); |
|||
//判断能否返回 |
|||
if (recordCollection == null) { |
|||
return null; |
|||
} else { |
|||
Record recordData = recordCollection.get(0); |
|||
Map<String, String> resultMap = IfsConverterToMap.ConverterIfsToMap(recordData); |
|||
return resultMap; |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* @description: 查询技术等级的属性集合 |
|||
* @author LR |
|||
* @date 2024/12/11 13:26 |
|||
* @version 1.0 |
|||
*/ |
|||
public static List<Map<String, String>> getTechnicalAttributes(Server srv, String technicalSpecNo, String technicalClass) throws APException { |
|||
StringBuilder searchSql = new StringBuilder(); |
|||
searchSql.append("SELECT OBJID ifsRowId, OBJVERSION ifsRowVersion, TECHNICAL_SPEC_NO, TECHNICAL_CLASS, ATTRIB_NUMBER, ATTRIBUTE,"); |
|||
searchSql.append(" VALUE_NO, LOWER_LIMIT, UPPER_LIMIT, INFO, ALT_VALUE_NO, ALT_UNIT,"); |
|||
searchSql.append(" CASE WHEN objtype = 'TechnicalSpecNumeric' THEN 'Numeric'"); |
|||
searchSql.append(" WHEN objtype = 'TechnicalSpecAlphanum' THEN 'Alpha' ELSE '' END attributeType"); |
|||
searchSql.append(" FROM ifsapp.TECHNICAL_SPECIFICATION_BOTH"); |
|||
searchSql.append(" WHERE TECHNICAL_SPEC_NO = :technicalSpecNo AND TECHNICAL_CLASS = :technicalClass"); |
|||
|
|||
//设置查询的入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
inParam.put("technicalSpecNo", technicalSpecNo); |
|||
inParam.put("technicalClass", technicalClass); |
|||
//调用查询的通用方法 |
|||
RecordCollection recordCollection = IfsPlsqlUtils.execSqlSearchGetRecordCollection(srv, searchSql, inParam); |
|||
//判断能否返回 |
|||
if (recordCollection == null) { |
|||
return null; |
|||
} else { |
|||
//处理结果集 |
|||
List<Map<String, String>> resultList = IfsConverterToMap.ConverterIfsToList(recordCollection); |
|||
return resultList; |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* @description: 插入技术等级的属性 |
|||
* @author LR |
|||
* @date 2024/12/11 13:55 |
|||
* @version 1.0 |
|||
*/ |
|||
public static Map<String, String> modifyTechnicalAttribute(Server srv, TechnicalAttribute inData) throws APException { |
|||
//公共参数 |
|||
String ifsRowId = inData.getIfsRowId(); |
|||
String ifsRowVersion = inData.getIfsRowVersion(); |
|||
String valueNo = inData.getValueNo(); |
|||
String lowerLimit = inData.getLowerLimit(); |
|||
String upperLimit = inData.getUpperLimit(); |
|||
String valueText = inData.getValueText(); |
|||
String attributeType = inData.getAttributeType(); |
|||
String info = inData.getInfo(); |
|||
String packageName = ""; |
|||
//入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
//填充参数 |
|||
inParam.put("OBJID", ifsRowId); |
|||
inParam.put("OBJVERSION", ifsRowVersion); |
|||
if(!(null == info || "".equals(info))) { |
|||
inParam.put("INFO", info); |
|||
} |
|||
//区分修改的是字符串 还是数字 |
|||
if("Numeric".equalsIgnoreCase(attributeType)) { |
|||
packageName = "TECHNICAL_SPEC_NUMERIC_API"; |
|||
inParam.put("VALUE_NO", valueNo); // 属性值 |
|||
//判断上下限 |
|||
if(!(null == lowerLimit || "".equals(lowerLimit))) { |
|||
inParam.put("LOWER_LIMIT", lowerLimit); // 下限 |
|||
} |
|||
if(!(null == upperLimit || "".equals(upperLimit))) { |
|||
inParam.put("UPPER_LIMIT", upperLimit); // 上限 |
|||
} |
|||
}else if("Alpha".equalsIgnoreCase(attributeType)) { |
|||
packageName = "TECHNICAL_SPEC_ALPHANUM_API"; |
|||
inParam.put("VALUE_TEXT", valueText); // 属性值 |
|||
} |
|||
|
|||
//执行check的操作 |
|||
Map<String, String> checkMap = IfsPlsqlUtils.execProcedureGetRecord(srv, packageName, |
|||
"MODIFY__", PlsqlBaseMethodType.MODIFY, PlsqlBaseMethodAction.CHECK, inParam); |
|||
//执行do的操作 |
|||
Map<String, String> resultMap = IfsPlsqlUtils.execProcedureGetRecord(srv, packageName, |
|||
"MODIFY__", PlsqlBaseMethodType.MODIFY, PlsqlBaseMethodAction.DO, inParam); |
|||
//返回结果集 |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 删除属性的书 |
|||
* @author LR |
|||
* @date 2024/12/11 14:04 |
|||
* @version 1.0 |
|||
*/ |
|||
public static void removeTechnicalAttribute(Server srv, TechnicalAttribute inData) throws APException { |
|||
//公共参数 |
|||
String ifsRowId = inData.getIfsRowId(); |
|||
String ifsRowVersion = inData.getIfsRowVersion(); |
|||
String attributeType = inData.getAttributeType(); |
|||
String packageName = ""; |
|||
//入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
//填充参数 |
|||
inParam.put("OBJID", ifsRowId); |
|||
inParam.put("OBJVERSION", ifsRowVersion); |
|||
//区分修改的是字符串 还是数字 |
|||
if("Numeric".equalsIgnoreCase(attributeType)) { |
|||
packageName = "TECHNICAL_SPEC_NUMERIC_API"; |
|||
}else if("Alpha".equalsIgnoreCase(attributeType)) { |
|||
packageName = "TECHNICAL_SPEC_ALPHANUM_API"; |
|||
} |
|||
|
|||
//执行check的操作 |
|||
Map<String, String> checkMap = IfsPlsqlUtils.execProcedureGetRecord(srv, packageName, |
|||
"REMOVE__", PlsqlBaseMethodType.REMOVE, PlsqlBaseMethodAction.CHECK, inParam); |
|||
//执行do的操作 |
|||
Map<String, String> resultMap = IfsPlsqlUtils.execProcedureGetRecord(srv, packageName, |
|||
"REMOVE__", PlsqlBaseMethodType.REMOVE, PlsqlBaseMethodAction.DO, inParam); |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,461 @@ |
|||
package com.spring.ifs.api; |
|||
|
|||
import com.spring.ifs.data.ToolHeader; |
|||
import com.spring.ifs.data.ToolInstance; |
|||
import com.spring.ifs.data.ToolInstanceDate; |
|||
import com.spring.ifs.utils.IfsConverterToMap; |
|||
import com.spring.ifs.utils.IfsPlsqlUtils; |
|||
import ifs.fnd.ap.*; |
|||
|
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* @description: Bom的api |
|||
* @author LR |
|||
* @date 2024/12/9 10:56 |
|||
* @version 1.0 |
|||
*/ |
|||
public class ToolApi { |
|||
|
|||
/** |
|||
* @description: 查询Tool Header |
|||
* @author LR |
|||
* @date 2024/12/11 14:45 |
|||
* @version 1.0 |
|||
*/ |
|||
public static Map<String, String> getBomHeader(Server srv, String contract, String toolId) throws APException { |
|||
StringBuilder searchSql = new StringBuilder(); |
|||
searchSql.append("SELECT OBJID ifsRowId, OBJVERSION ifsRowVersion,"); |
|||
searchSql.append(" CONTRACT, TOOL_ID, TOOL_DESCRIPTION, NOTE_TEXT"); |
|||
searchSql.append(" FROM IFSAPP.MANUF_TOOL"); |
|||
searchSql.append(" WHERE CONTRACT = :contract AND TOOL_ID = :toolId"); |
|||
//设置查询的入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
//查询条件 |
|||
inParam.put("contract", contract); |
|||
inParam.put("toolId", toolId); |
|||
//调用查询的通用方法 |
|||
RecordCollection recordCollection = IfsPlsqlUtils.execSqlSearchGetRecordCollection(srv, searchSql, inParam); |
|||
//判断能否返回 |
|||
if (recordCollection == null) { |
|||
return null; |
|||
} else { |
|||
Record recordData = recordCollection.get(0); |
|||
Map<String, String> resultMap = IfsConverterToMap.ConverterIfsToMap(recordData); |
|||
return resultMap; |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* @description: 插入Tool Header的主表 |
|||
* @author LR |
|||
* @date 2024/12/11 15:08 |
|||
* @version 1.0 |
|||
*/ |
|||
public static Map<String, String> insertToolHeader(Server srv, ToolHeader inData) throws APException { |
|||
//公共参数 |
|||
String contract = inData.getContract();// 域 |
|||
String toolId = inData.getToolId();// 物料编码 |
|||
String toolDesc = inData.getToolDesc();// |
|||
String toolType = inData.getToolType();// 分类 |
|||
String calendarId = inData.getCalendarId();// |
|||
String schedCapacity = inData.getSchedCapacity();// |
|||
String alternateToolId = inData.getAlternateToolId();// |
|||
String calibrationControl = inData.getCalibrationControl();// |
|||
String calibrationTime = inData.getCalibrationTime();// |
|||
String enabledForControlPlanDb = inData.getEnabledForControlPlanDb();// |
|||
//入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
//填充参数 |
|||
inParam.put("OBJID", ""); |
|||
inParam.put("OBJVERSION", ""); |
|||
inParam.put("CONTRACT", contract); // 基础合同或协议编号 |
|||
inParam.put("TOOL_ID", toolId); // 工具编码 |
|||
inParam.put("TOOL_DESCRIPTION", toolDesc); // 工具描述 |
|||
inParam.put("TOOL_TYPE", toolType); // 工具的分类 |
|||
inParam.put("CALENDAR_ID", calendarId); // 日历ID,可能用于调度 |
|||
inParam.put("SCHED_CAPACITY", schedCapacity); // 调度容量 |
|||
inParam.put("ALTERNATE_TOOL_ID", alternateToolId); // 替代工具ID |
|||
inParam.put("CALIBRATION_CONTROL", calibrationControl); // 校准控制标志 |
|||
inParam.put("CALIBRATION_TIME", calibrationTime); // 校准时间 |
|||
inParam.put("ENABLED_FOR_CONTROL_PLAN_DB", enabledForControlPlanDb); // 是否启用控制计划数据库 |
|||
|
|||
//执行存储过程 获取结果集 |
|||
//执行check的操作 |
|||
Map<String, String> checkMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_API", |
|||
"NEW__", PlsqlBaseMethodType.NEW, PlsqlBaseMethodAction.CHECK, inParam); |
|||
//执行do的操作 |
|||
Map<String, String> resultMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_API", |
|||
"NEW__", PlsqlBaseMethodType.NEW, PlsqlBaseMethodAction.DO, inParam); |
|||
//返回结果集 |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 修改Tool Header的主表信息 |
|||
* @author LR |
|||
* @date 2024/12/11 15:32 |
|||
* @version 1.0 |
|||
*/ |
|||
public static Map<String, String> modifyToolHeader(Server srv, ToolHeader inData) throws APException { |
|||
//公共参数 |
|||
String ifsRowId = inData.getIfsRowId();// 域 |
|||
String ifsRowVersion = inData.getIfsRowVersion();// 物料编码 |
|||
String toolDesc = inData.getToolDesc();// |
|||
String toolType = inData.getToolType();// 分类 |
|||
String calendarId = inData.getCalendarId();// |
|||
String schedCapacity = inData.getSchedCapacity();// |
|||
String alternateToolId = inData.getAlternateToolId();// |
|||
String calibrationControl = inData.getCalibrationControl();// |
|||
String calibrationTime = inData.getCalibrationTime();// |
|||
String enabledForControlPlanDb = inData.getEnabledForControlPlanDb();// |
|||
String noteText = inData.getNoteText();// 备注 |
|||
//入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
//填充参数 |
|||
inParam.put("OBJID", ifsRowId); |
|||
inParam.put("OBJVERSION", ifsRowVersion); |
|||
inParam.put("TOOL_DESCRIPTION", toolDesc); // 工具描述 |
|||
inParam.put("TOOL_TYPE", toolType); // 工具的分类 |
|||
inParam.put("CALENDAR_ID", calendarId); // 日历ID,可能用于调度 |
|||
inParam.put("SCHED_CAPACITY", schedCapacity); // 调度容量 |
|||
inParam.put("ALTERNATE_TOOL_ID", alternateToolId); // 替代工具ID |
|||
inParam.put("CALIBRATION_CONTROL", calibrationControl); // 校准控制标志 |
|||
inParam.put("CALIBRATION_TIME", calibrationTime); // 校准时间 |
|||
inParam.put("ENABLED_FOR_CONTROL_PLAN_DB", enabledForControlPlanDb); // 是否启用控制计划数据库 |
|||
inParam.put("NOTE_TEXT", noteText); // 备注文本 |
|||
|
|||
//执行check的操作 |
|||
Map<String, String> checkMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_API", |
|||
"MODIFY__", PlsqlBaseMethodType.MODIFY, PlsqlBaseMethodAction.CHECK, inParam); |
|||
//执行do的操作 |
|||
Map<String, String> resultMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_API", |
|||
"MODIFY__", PlsqlBaseMethodType.MODIFY, PlsqlBaseMethodAction.DO, inParam); |
|||
//返回结果集 |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 删除Tool Header |
|||
* @author LR |
|||
* @date 2024/12/11 15:33 |
|||
* @version 1.0 |
|||
*/ |
|||
public static Map<String, String> removeToolHeader(Server srv, ToolHeader inData) throws APException { |
|||
//公共参数 |
|||
String ifsRowId = inData.getIfsRowId(); |
|||
String ifsRowVersion = inData.getIfsRowVersion(); |
|||
//入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
//填充参数 |
|||
inParam.put("OBJID", ifsRowId); |
|||
inParam.put("OBJVERSION", ifsRowVersion); |
|||
|
|||
//执行check的操作 |
|||
Map<String, String> checkMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_API", |
|||
"REMOVE__", PlsqlBaseMethodType.REMOVE, PlsqlBaseMethodAction.CHECK, inParam); |
|||
//执行do的操作 |
|||
Map<String, String> resultMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_API", |
|||
"REMOVE__", PlsqlBaseMethodType.REMOVE, PlsqlBaseMethodAction.DO, inParam); |
|||
//返回结果集 |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 查询工具实例 |
|||
* @author LR |
|||
* @date 2024/12/11 14:48 |
|||
* @version 1.0 |
|||
*/ |
|||
public static Map<String, String> getToolInstance(Server srv, String contract, String toolId, String toolInstance) throws APException { |
|||
StringBuilder searchSql = new StringBuilder(); |
|||
searchSql.append("SELECT OBJID ifsRowId, OBJVERSION ifsRowVersion,"); |
|||
searchSql.append(" CONTRACT, TOOL_ID, TOOL_INSTANCE, NOTE_TEXT"); |
|||
searchSql.append(" FROM IFSAPP.MANUF_TOOL_DETAIL"); |
|||
searchSql.append(" WHERE CONTRACT = :contract AND TOOL_ID = :toolId AND TOOL_INSTANCE = :toolInstance"); |
|||
//设置查询的入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
inParam.put("contract", contract); |
|||
inParam.put("toolId", toolId); |
|||
inParam.put("toolInstance", toolInstance); |
|||
//调用查询的通用方法 |
|||
RecordCollection recordCollection = IfsPlsqlUtils.execSqlSearchGetRecordCollection(srv, searchSql, inParam); |
|||
//判断能否返回 |
|||
if (recordCollection == null) { |
|||
return null; |
|||
} else { |
|||
Record recordData = recordCollection.get(0); |
|||
Map<String, String> resultMap = IfsConverterToMap.ConverterIfsToMap(recordData); |
|||
return resultMap; |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* @description: 插入Tool Instance |
|||
* @author LR |
|||
* @date 2024/12/11 15:45 |
|||
* @version 1.0 |
|||
*/ |
|||
public static Map<String, String> insertToolInstance(Server srv, ToolInstance inData) throws APException { |
|||
//公共参数 |
|||
String contract = inData.getContract();// 域 |
|||
String toolId = inData.getToolId();// 物料编码 |
|||
String toolInstance = inData.getToolInstance();// |
|||
String desc = inData.getDesc();// 分类 |
|||
String lastCalibrationDate = inData.getLastCalibrationDate();// |
|||
//判断空值 |
|||
if(lastCalibrationDate == null || lastCalibrationDate.equals("")) { |
|||
lastCalibrationDate = ""; |
|||
}else { |
|||
lastCalibrationDate = lastCalibrationDate+"-00.00.00"; |
|||
} |
|||
String normalWorkCenterNo = inData.getNormalWorkCenterNo();// |
|||
String normalProductionLine = inData.getNormalProductionLine();// |
|||
String noteText = inData.getNoteText();// 备注 |
|||
|
|||
String toolDiscrimination = inData.getToolDiscrimination();// |
|||
String toolLinearity = inData.getToolLinearity();// |
|||
String toolRepeatability = inData.getToolRepeatability();// |
|||
String toolBias = inData.getToolBias();// |
|||
String toolStability = inData.getToolStability();// |
|||
String toolReproducibility = inData.getToolReproducibility();// |
|||
|
|||
//入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
//填充参数 |
|||
inParam.put("OBJID", ""); |
|||
inParam.put("OBJVERSION", ""); |
|||
inParam.put("CONTRACT", contract); // 域 |
|||
inParam.put("TOOL_ID", toolId); // 工具编码 |
|||
inParam.put("TOOL_INSTANCE", toolInstance); // 工具实例 |
|||
inParam.put("DESCRIPTION", desc); // 工具描述 |
|||
inParam.put("NOTE_TEXT", noteText); // 备注文本 |
|||
inParam.put("NORMAL_WORK_CENTER_NO", normalWorkCenterNo); // 标准工作中心编号 |
|||
inParam.put("LAST_CALIBRATION_DATE", lastCalibrationDate); // 最后校准日期 |
|||
inParam.put("NORMAL_PRODUCTION_LINE", normalProductionLine); // 标准生产线 |
|||
inParam.put("TOOL_DISCRIMINATION", toolDiscrimination); // 工具区分度 |
|||
inParam.put("TOOL_LINEARITY", toolLinearity); // 工具线性度 |
|||
inParam.put("TOOL_REPEATABILITY", toolRepeatability); // 工具重复性 |
|||
inParam.put("TOOL_BIAS", toolBias); // 工具偏差 |
|||
inParam.put("TOOL_STABILITY", toolStability); // 工具稳定性 |
|||
inParam.put("TOOL_REPRODUCIBILITY", toolReproducibility); // 工具再现性 |
|||
|
|||
//执行check的操作 |
|||
Map<String, String> checkMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_DETAIL_API", |
|||
"NEW__", PlsqlBaseMethodType.NEW, PlsqlBaseMethodAction.CHECK, inParam); |
|||
//执行do的操作 |
|||
Map<String, String> resultMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_DETAIL_API", |
|||
"NEW__", PlsqlBaseMethodType.NEW, PlsqlBaseMethodAction.DO, inParam); |
|||
//返回结果集 |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 修改Tool Instance |
|||
* @author LR |
|||
* @date 2024/12/11 15:47 |
|||
* @version 1.0 |
|||
*/ |
|||
public static Map<String, String> modifyToolInstance(Server srv, ToolInstance inData) throws APException { |
|||
//公共参数 |
|||
String ifsRowId = inData.getIfsRowId();// 域 |
|||
String ifsRowVersion = inData.getIfsRowVersion();// 物料编码 |
|||
String desc = inData.getDesc();// 分类 |
|||
String lastCalibrationDate = inData.getLastCalibrationDate();// |
|||
//判断空值 |
|||
if(lastCalibrationDate == null || lastCalibrationDate.equals("")) { |
|||
lastCalibrationDate = ""; |
|||
}else { |
|||
lastCalibrationDate = lastCalibrationDate+"-00.00.00"; |
|||
} |
|||
String normalWorkCenterNo = inData.getNormalWorkCenterNo();// |
|||
String normalProductionLine = inData.getNormalProductionLine();// |
|||
String noteText = inData.getNoteText();// 备注 |
|||
String toolDiscrimination = inData.getToolDiscrimination();// |
|||
String toolLinearity = inData.getToolLinearity();// |
|||
String toolRepeatability = inData.getToolRepeatability();// |
|||
String toolBias = inData.getToolBias();// |
|||
String toolStability = inData.getToolStability();// |
|||
String toolReproducibility = inData.getToolReproducibility();// |
|||
//入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
//填充参数 |
|||
inParam.put("OBJID", ifsRowId); |
|||
inParam.put("OBJVERSION", ifsRowVersion); |
|||
inParam.put("DESCRIPTION", desc); // 工具的描述 |
|||
inParam.put("NOTE_TEXT", noteText); // 备注文本 |
|||
inParam.put("NORMAL_WORK_CENTER_NO", normalWorkCenterNo); // 标准工作中心编号 |
|||
inParam.put("LAST_CALIBRATION_DATE", lastCalibrationDate); // 最后校准日期 |
|||
inParam.put("NORMAL_PRODUCTION_LINE", normalProductionLine); // 标准生产线 |
|||
inParam.put("TOOL_DISCRIMINATION", toolDiscrimination); // 工具区分度 |
|||
inParam.put("TOOL_LINEARITY", toolLinearity); // 工具线性度 |
|||
inParam.put("TOOL_REPEATABILITY", toolRepeatability); // 工具重复性 |
|||
inParam.put("TOOL_BIAS", toolBias); // 工具偏差 |
|||
inParam.put("TOOL_STABILITY", toolStability); // 工具稳定性 |
|||
inParam.put("TOOL_REPRODUCIBILITY", toolReproducibility); // 工具再现性 |
|||
//执行check的操作 |
|||
Map<String, String> checkMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_DETAIL_API", |
|||
"MODIFY__", PlsqlBaseMethodType.MODIFY, PlsqlBaseMethodAction.CHECK, inParam); |
|||
//执行do的操作 |
|||
Map<String, String> resultMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_DETAIL_API", |
|||
"MODIFY__", PlsqlBaseMethodType.MODIFY, PlsqlBaseMethodAction.DO, inParam); |
|||
//返回结果集 |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 删除Tool Instance |
|||
* @author LR |
|||
* @date 2024/12/11 15:51 |
|||
* @version 1.0 |
|||
*/ |
|||
public static void removeToolInstance(Server srv, ToolInstance inData) throws APException { |
|||
//公共参数 |
|||
String ifsRowId = inData.getIfsRowId();// 域 |
|||
String ifsRowVersion = inData.getIfsRowVersion();// 物料编码 |
|||
//入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
//填充参数 |
|||
inParam.put("OBJID", ifsRowId); |
|||
inParam.put("OBJVERSION", ifsRowVersion); |
|||
|
|||
//执行check的操作 |
|||
Map<String, String> checkMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_DETAIL_API", |
|||
"REMOVE__", PlsqlBaseMethodType.REMOVE, PlsqlBaseMethodAction.CHECK, inParam); |
|||
//执行do的操作 |
|||
Map<String, String> resultMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_DETAIL_API", |
|||
"REMOVE__", PlsqlBaseMethodType.REMOVE, PlsqlBaseMethodAction.DO, inParam); |
|||
} |
|||
|
|||
/** |
|||
* @description: 获取Tool Instance Date |
|||
* @author LR |
|||
* @date 2024/12/11 16:12 |
|||
* @version 1.0 |
|||
*/ |
|||
public static List<Map<String, String>> getToolInstanceDates(Server srv, String contract, String partNo, String engChgLevel, String bomType, String alternativeNo, String lineItemNo) throws APException { |
|||
StringBuilder searchSql = new StringBuilder(); |
|||
searchSql.append("SELECT OBJID, OBJVERSION, CONTRACT, TOOL_ID, TOOL_INSTANCE,"); |
|||
searchSql.append(" BEGIN_DATE, END_DATE"); |
|||
searchSql.append(" FROM IFSAPP.MANUF_TOOL_DETAIL_AVAIL"); |
|||
searchSql.append(" WHERE CONTRACT = :contract AND TOOL_ID = :toolId AND TOOL_INSTANCE = :toolInstance"); |
|||
searchSql.append(" AND ALTERNATIVE_NO = :alternativeNo AND LINE_ITEM_NO = :lineItemNo"); |
|||
|
|||
//设置查询的入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
inParam.put("contract", contract); |
|||
inParam.put("partNo", partNo); |
|||
inParam.put("engChgLevel", engChgLevel); |
|||
inParam.put("bomType", bomType); |
|||
inParam.put("alternativeNo", alternativeNo); |
|||
inParam.put("lineItemNo", lineItemNo); |
|||
//调用查询的通用方法 |
|||
RecordCollection recordCollection = IfsPlsqlUtils.execSqlSearchGetRecordCollection(srv, searchSql, inParam); |
|||
//判断能否返回 |
|||
if (recordCollection == null) { |
|||
return null; |
|||
} else { |
|||
List<Map<String, String>> resultList = IfsConverterToMap.ConverterIfsToList(recordCollection); |
|||
return resultList; |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* @description: 插入Tool Instance Date |
|||
* @author LR |
|||
* @date 2024/12/11 16:17 |
|||
* @version 1.0 |
|||
*/ |
|||
public static Map<String, String> insertToolInstanceDate(Server srv, ToolInstanceDate inData) throws APException { |
|||
//公共参数 |
|||
String contract = inData.getContract();// 域 |
|||
String toolId = inData.getToolId();// 物料编码 |
|||
String toolInstance = inData.getToolInstance();// |
|||
String beginDate = inData.getBeginDate()+"-00:00:00";// |
|||
//判断是否需要填充数据 |
|||
String endDate = ""; |
|||
if(!(null == inData.getEndDate() ||"".equals(inData.getEndDate()))) { |
|||
endDate = inData.getEndDate()+"-00:00:00";// |
|||
} |
|||
//入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
//填充参数 |
|||
inParam.put("OBJID", ""); |
|||
inParam.put("OBJVERSION", ""); |
|||
inParam.put("CONTRACT", contract); // 域 |
|||
inParam.put("TOOL_ID", toolId); // 工具编码 |
|||
inParam.put("TOOL_INSTANCE", toolInstance); // 工具实例 |
|||
inParam.put("BEGIN_DATE", beginDate); // 开始日期 |
|||
inParam.put("END_DATE", endDate); // 结束日期 |
|||
|
|||
//执行check的操作 |
|||
Map<String, String> checkMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_DETAIL_AVAIL_API", |
|||
"NEW__", PlsqlBaseMethodType.NEW, PlsqlBaseMethodAction.CHECK, inParam); |
|||
//执行do的操作 |
|||
Map<String, String> resultMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_DETAIL_AVAIL_API", |
|||
"NEW__", PlsqlBaseMethodType.NEW, PlsqlBaseMethodAction.DO, inParam); |
|||
//返回结果集 |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 修改 Tool Instance Date |
|||
* @author LR |
|||
* @date 2024/12/11 16:22 |
|||
* @version 1.0 |
|||
*/ |
|||
public static Map<String, String> modifyToolInstanceDate(Server srv, ToolInstanceDate inData) throws APException { |
|||
//公共参数 |
|||
String ifsRowId = inData.getIfsRowId();// |
|||
String ifsRowVersion = inData.getIfsRowVersion();// |
|||
//判断是否需要填充数据 |
|||
String endDate = ""; |
|||
if(!(null == inData.getEndDate() ||"".equals(inData.getEndDate()))) { |
|||
endDate = inData.getEndDate()+"-00:00:00";// |
|||
} |
|||
//入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
//填充参数 |
|||
inParam.put("OBJID", ifsRowId); |
|||
inParam.put("OBJVERSION", ifsRowVersion); |
|||
inParam.put("END_DATE", endDate); // 序号 |
|||
//执行check的操作 |
|||
Map<String, String> checkMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_DETAIL_AVAIL_API", |
|||
"MODIFY__", PlsqlBaseMethodType.MODIFY, PlsqlBaseMethodAction.CHECK, inParam); |
|||
//执行do的操作 |
|||
Map<String, String> resultMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_DETAIL_AVAIL_API", |
|||
"MODIFY__", PlsqlBaseMethodType.MODIFY, PlsqlBaseMethodAction.DO, inParam); |
|||
//返回结果集 |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 删除 Tool Instance Date |
|||
* @author LR |
|||
* @date 2024/12/11 16:24 |
|||
* @version 1.0 |
|||
*/ |
|||
public static Map<String, String> removeToolInstanceDate(Server srv, ToolInstanceDate inData) throws APException { |
|||
//公共参数 |
|||
//公共参数 |
|||
String ifsRowId = inData.getIfsRowId();// |
|||
String ifsRowVersion = inData.getIfsRowVersion();// |
|||
//入参 |
|||
Map<String, String> inParam = new HashMap<>(); |
|||
//填充参数 |
|||
inParam.put("OBJID", ifsRowId); |
|||
inParam.put("OBJVERSION", ifsRowVersion); |
|||
|
|||
//执行check的操作 |
|||
Map<String, String> checkMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_DETAIL_AVAIL_API", |
|||
"REMOVE__", PlsqlBaseMethodType.REMOVE, PlsqlBaseMethodAction.CHECK, inParam); |
|||
//执行do的操作 |
|||
Map<String, String> resultMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "MANUF_TOOL_DETAIL_AVAIL_API", |
|||
"REMOVE__", PlsqlBaseMethodType.REMOVE, PlsqlBaseMethodAction.DO, inParam); |
|||
//返回结果集 |
|||
return resultMap; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,433 @@ |
|||
package com.spring.ifs.controller; |
|||
|
|||
import com.spring.ifs.bean.BaseSearchBean; |
|||
import com.spring.ifs.bean.InventoryServiceBean; |
|||
import com.spring.ifs.bean.MasterServiceBean; |
|||
import com.spring.ifs.data.*; |
|||
import ifs.fnd.ap.APException; |
|||
import ifs.fnd.ap.Server; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
@RequestMapping("/test/ifs") |
|||
@RestController |
|||
public class TestIfsController { |
|||
|
|||
@Autowired |
|||
private BaseSearchBean baseSearchBean; |
|||
@Autowired |
|||
private MasterServiceBean masterServiceBean; |
|||
@Autowired |
|||
private InventoryServiceBean inventoryServiceBean; |
|||
|
|||
|
|||
|
|||
/** |
|||
* @description: 测试加工中心查询 |
|||
* @author LR |
|||
* @date 2024/12/9 13:53 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/getWorkCenterNos") |
|||
public Object getWorkCenterNos(Server srv, @RequestBody BaseSearchData inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
List<WorkCenter> returnlist = baseSearchBean.getWorkCenterNos(srv, inData); |
|||
resultMap.put("obj", returnlist); |
|||
resultMap.put("total", returnlist.size()); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 测试库位查询 |
|||
* @author LR |
|||
* @date 2024/12/9 13:53 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/getWarehouseLocations") |
|||
public Object getWarehouseLocations(Server srv, @RequestBody BaseSearchData inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
List<WarehouseLocation> returnlist = baseSearchBean.getWarehouseLocations(srv, inData); |
|||
resultMap.put("obj", returnlist); |
|||
resultMap.put("total", returnlist.size()); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 测试人员等级查询 |
|||
* @author LR |
|||
* @date 2024/12/9 13:53 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/getIfsLaborClasss") |
|||
public Object getIfsLaborClasss(Server srv, @RequestBody BaseSearchData inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
List<LaborClass> returnlist = baseSearchBean.getIfsLaborClasss(srv, inData); |
|||
resultMap.put("obj", returnlist); |
|||
resultMap.put("total", returnlist.size()); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 测试物料件查询 |
|||
* @author LR |
|||
* @date 2024/12/9 13:53 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/getMasterParts") |
|||
public Object getMasterParts(Server srv, @RequestBody BaseSearchData inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
List<PartCatalog> returnlist = baseSearchBean.getMasterParts(srv, inData); |
|||
resultMap.put("obj", returnlist); |
|||
resultMap.put("total", returnlist.size()); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 测试库存件属性查询 |
|||
* @author LR |
|||
* @date 2024/12/9 13:53 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/getInventoryValues") |
|||
public Object getInventoryValues(Server srv, @RequestBody BaseSearchData inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
List<InventoryValue> returnlist = baseSearchBean.getInventoryValues(srv, inData); |
|||
resultMap.put("obj", returnlist); |
|||
resultMap.put("total", returnlist.size()); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 查询物料件 |
|||
* @author LR |
|||
* @date 2024/12/9 13:53 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/getPartCatalog") |
|||
public Object getPartCatalog(@RequestBody PartCatalog inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
Map<String, String> returnMap = masterServiceBean.getMasterPart(inData); |
|||
resultMap.put("obj", returnMap); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 新增物料件 |
|||
* @author LR |
|||
* @date 2024/12/13 15:03 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/syncPartCatalog") |
|||
public Object syncPartCatalog(@RequestBody PartCatalog inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
PartCatalog resultRow = masterServiceBean.syncPartCatalog(inData); |
|||
resultMap.put("obj", resultRow); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 修改物料件 |
|||
* @author LR |
|||
* @date 2024/12/13 15:05 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/modifyPartCatalog") |
|||
public Object modifyPartCatalog(@RequestBody PartCatalog inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
PartCatalog resultRow = masterServiceBean.modifyPartCatalog(inData); |
|||
resultMap.put("obj", resultRow); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 删除物料件 |
|||
* @author LR |
|||
* @date 2024/12/13 15:09 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/removePartCatalog") |
|||
public Object removePartCatalog(@RequestBody PartCatalog inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
masterServiceBean.removePartCatalog(inData); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 查询Inventory Part |
|||
* @author LR |
|||
* @date 2024/12/9 13:53 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/getInventoryPart") |
|||
public Object getInventoryPart(@RequestBody InventoryPart inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
InventoryPart returnRow = inventoryServiceBean.getInventoryPart(inData); |
|||
resultMap.put("obj", returnRow); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 新增Inventory Part |
|||
* @author LR |
|||
* @date 2024/12/13 15:03 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/syncInventoryPart") |
|||
public Object syncInventoryPart(@RequestBody InventoryPart inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
InventoryPart resultRow = inventoryServiceBean.syncInventoryPart(inData); |
|||
resultMap.put("obj", resultRow); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 修改Inventory Part |
|||
* @author LR |
|||
* @date 2024/12/13 15:05 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/modifyInventoryPart") |
|||
public Object modifyInventoryPart(@RequestBody InventoryPart inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
InventoryPart resultRow = inventoryServiceBean.modifyInventoryPart(inData); |
|||
resultMap.put("obj", resultRow); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 删除Inventory Part |
|||
* @author LR |
|||
* @date 2024/12/13 15:09 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/removeInventoryPart") |
|||
public Object removeInventoryPart(@RequestBody InventoryPart inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
inventoryServiceBean.removeInventoryPart(inData); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 修改库存件的配置信息 |
|||
* @author LR |
|||
* @date 2024/12/13 17:03 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/modifyInventoryPartCost") |
|||
public Object modifyInventoryPartCost(@RequestBody InventoryPartConfig inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
InventoryPartConfig resultRow = inventoryServiceBean.modifyInventoryPartCost(inData); |
|||
resultMap.put("obj", resultRow); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 修改库存件的计划 |
|||
* @author LR |
|||
* @date 2024/12/13 17:12 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/modifyInventoryPartPlan") |
|||
public Object modifyInventoryPartPlan(@RequestBody InventoryPartPlan inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
InventoryPartPlan resultRow = inventoryServiceBean.modifyInventoryPartPlan(inData); |
|||
resultMap.put("obj", resultRow); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 同步库存件的库存位 |
|||
* @author LR |
|||
* @date 2024/12/13 17:15 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/syncInventoryPartLocations") |
|||
public Object syncInventoryPartLocations(@RequestBody List<InventoryPartLocation> inDatas) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
List<InventoryPartLocation> resultList = inventoryServiceBean.syncInventoryPartLocations(inDatas); |
|||
resultMap.put("obj", resultList); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 删除库存件的库位 |
|||
* @author LR |
|||
* @date 2024/12/13 17:18 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/removeInventoryPartLocation") |
|||
public Object removeInventoryPartLocation(@RequestBody InventoryPartLocation inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
inventoryServiceBean.removeInventoryPartLocation(inData); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
/** |
|||
* @description: 批量删除库存件的库位 |
|||
* @author LR |
|||
* @date 2024/12/13 17:19 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/removeInventoryPartLocations") |
|||
public Object removeInventoryPartLocations(@RequestBody List<InventoryPartLocation> inDatas) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
inventoryServiceBean.removeInventoryPartLocations(inDatas); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
|
|||
/** |
|||
* @description: 测试代码用力 |
|||
* @author LR |
|||
* @date 2024/12/9 13:53 |
|||
* @version 1.0 |
|||
*/ |
|||
@PostMapping("/syncIfsCopyPart") |
|||
public Object syncIfsCopyPart(@RequestBody CopyPart inData) throws APException { |
|||
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|||
try { |
|||
inventoryServiceBean.syncCopyPartForInventoryPart(inData); |
|||
resultMap.put("code", 200); |
|||
resultMap.put("msg", "操作成功!"); |
|||
} catch (Exception e) { |
|||
resultMap.put("code", 400); |
|||
resultMap.put("msg", e.getMessage()); |
|||
} |
|||
return resultMap; |
|||
} |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,80 @@ |
|||
package com.spring.ifs.data; |
|||
|
|||
/** |
|||
* |
|||
* @ClassName: TechnicalClassAttribute |
|||
* @Description:技术等级的属性 |
|||
* @author: LR |
|||
* @date: 2024年10月24日 下午3:57:14 |
|||
* @Copyright: |
|||
*/ |
|||
public class TechnicalAttribute extends TechnicalClass { |
|||
private String attribute; |
|||
private String valueNo; // |
|||
private String valueText; // |
|||
private String lowerLimit; // |
|||
private String upperLimit; // |
|||
private String info; // |
|||
private String attributeType; // 属性类型 numeric alpha |
|||
|
|||
public TechnicalAttribute() { |
|||
super(); |
|||
} |
|||
|
|||
public String getAttribute() { |
|||
return attribute; |
|||
} |
|||
|
|||
public void setAttribute(String attribute) { |
|||
this.attribute = attribute; |
|||
} |
|||
|
|||
public String getValueNo() { |
|||
return valueNo; |
|||
} |
|||
|
|||
public void setValueNo(String valueNo) { |
|||
this.valueNo = valueNo; |
|||
} |
|||
|
|||
public String getValueText() { |
|||
return valueText; |
|||
} |
|||
|
|||
public void setValueText(String valueText) { |
|||
this.valueText = valueText; |
|||
} |
|||
|
|||
public String getLowerLimit() { |
|||
return lowerLimit; |
|||
} |
|||
|
|||
public void setLowerLimit(String lowerLimit) { |
|||
this.lowerLimit = lowerLimit; |
|||
} |
|||
|
|||
public String getUpperLimit() { |
|||
return upperLimit; |
|||
} |
|||
|
|||
public void setUpperLimit(String upperLimit) { |
|||
this.upperLimit = upperLimit; |
|||
} |
|||
|
|||
public String getInfo() { |
|||
return info; |
|||
} |
|||
|
|||
public void setInfo(String info) { |
|||
this.info = info; |
|||
} |
|||
|
|||
public String getAttributeType() { |
|||
return attributeType; |
|||
} |
|||
|
|||
public void setAttributeType(String attributeType) { |
|||
this.attributeType = attributeType; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,89 @@ |
|||
package com.spring.ifs.data; |
|||
|
|||
/** |
|||
* |
|||
* @ClassName: TechnicalClass |
|||
* @Description:技术等级的参数 |
|||
* @author: LR |
|||
* @date: 2024年10月23日 下午5:37:27 |
|||
* @Copyright: |
|||
*/ |
|||
public class TechnicalClass extends PartCatalog { |
|||
private String luName; // |
|||
private String keyRef; // |
|||
private String technicalSpecNo; // |
|||
private String technicalClass; // |
|||
private String okYesNo; // |
|||
private String okSign; // |
|||
private String dtOk; // |
|||
private String technicalType;// 区分类型 物料件 还是工具 |
|||
|
|||
public TechnicalClass() { |
|||
super(); |
|||
} |
|||
|
|||
public String getLuName() { |
|||
return luName; |
|||
} |
|||
|
|||
public void setLuName(String luName) { |
|||
this.luName = luName; |
|||
} |
|||
|
|||
public String getKeyRef() { |
|||
return keyRef; |
|||
} |
|||
|
|||
public void setKeyRef(String keyRef) { |
|||
this.keyRef = keyRef; |
|||
} |
|||
|
|||
public String getTechnicalSpecNo() { |
|||
return technicalSpecNo; |
|||
} |
|||
|
|||
public void setTechnicalSpecNo(String technicalSpecNo) { |
|||
this.technicalSpecNo = technicalSpecNo; |
|||
} |
|||
|
|||
public String getTechnicalClass() { |
|||
return technicalClass; |
|||
} |
|||
|
|||
public void setTechnicalClass(String technicalClass) { |
|||
this.technicalClass = technicalClass; |
|||
} |
|||
|
|||
public String getOkYesNo() { |
|||
return okYesNo; |
|||
} |
|||
|
|||
public void setOkYesNo(String okYesNo) { |
|||
this.okYesNo = okYesNo; |
|||
} |
|||
|
|||
public String getOkSign() { |
|||
return okSign; |
|||
} |
|||
|
|||
public void setOkSign(String okSign) { |
|||
this.okSign = okSign; |
|||
} |
|||
|
|||
public String getDtOk() { |
|||
return dtOk; |
|||
} |
|||
|
|||
public void setDtOk(String dtOk) { |
|||
this.dtOk = dtOk; |
|||
} |
|||
|
|||
public String getTechnicalType() { |
|||
return technicalType; |
|||
} |
|||
|
|||
public void setTechnicalType(String technicalType) { |
|||
this.technicalType = technicalType; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,126 @@ |
|||
package com.spring.ifs.data; |
|||
|
|||
public class ToolHeader { |
|||
private String contract; |
|||
private String toolId; |
|||
private String toolDesc; |
|||
private String toolType; |
|||
private String calendarId; |
|||
private String schedCapacity; |
|||
private String alternateToolId; |
|||
private String calibrationControl; |
|||
private String calibrationTime; |
|||
private String enabledForControlPlanDb; |
|||
private String noteText;// 备注 |
|||
private String ifsRowId; |
|||
private String ifsRowVersion; |
|||
|
|||
public ToolHeader() { |
|||
super(); |
|||
} |
|||
|
|||
public String getContract() { |
|||
return contract; |
|||
} |
|||
|
|||
public void setContract(String contract) { |
|||
this.contract = contract; |
|||
} |
|||
|
|||
public String getToolId() { |
|||
return toolId; |
|||
} |
|||
|
|||
public void setToolId(String toolId) { |
|||
this.toolId = toolId; |
|||
} |
|||
|
|||
public String getToolDesc() { |
|||
return toolDesc; |
|||
} |
|||
|
|||
public void setToolDesc(String toolDesc) { |
|||
this.toolDesc = toolDesc; |
|||
} |
|||
|
|||
public String getToolType() { |
|||
return toolType; |
|||
} |
|||
|
|||
public void setToolType(String toolType) { |
|||
this.toolType = toolType; |
|||
} |
|||
|
|||
public String getCalendarId() { |
|||
return calendarId; |
|||
} |
|||
|
|||
public void setCalendarId(String calendarId) { |
|||
this.calendarId = calendarId; |
|||
} |
|||
|
|||
public String getSchedCapacity() { |
|||
return schedCapacity; |
|||
} |
|||
|
|||
public void setSchedCapacity(String schedCapacity) { |
|||
this.schedCapacity = schedCapacity; |
|||
} |
|||
|
|||
public String getAlternateToolId() { |
|||
return alternateToolId; |
|||
} |
|||
|
|||
public void setAlternateToolId(String alternateToolId) { |
|||
this.alternateToolId = alternateToolId; |
|||
} |
|||
|
|||
public String getCalibrationControl() { |
|||
return calibrationControl; |
|||
} |
|||
|
|||
public void setCalibrationControl(String calibrationControl) { |
|||
this.calibrationControl = calibrationControl; |
|||
} |
|||
|
|||
public String getCalibrationTime() { |
|||
return calibrationTime; |
|||
} |
|||
|
|||
public void setCalibrationTime(String calibrationTime) { |
|||
this.calibrationTime = calibrationTime; |
|||
} |
|||
|
|||
public String getEnabledForControlPlanDb() { |
|||
return enabledForControlPlanDb; |
|||
} |
|||
|
|||
public void setEnabledForControlPlanDb(String enabledForControlPlanDb) { |
|||
this.enabledForControlPlanDb = enabledForControlPlanDb; |
|||
} |
|||
|
|||
public String getNoteText() { |
|||
return noteText; |
|||
} |
|||
|
|||
public void setNoteText(String noteText) { |
|||
this.noteText = noteText; |
|||
} |
|||
|
|||
public String getIfsRowId() { |
|||
return ifsRowId; |
|||
} |
|||
|
|||
public void setIfsRowId(String ifsRowId) { |
|||
this.ifsRowId = ifsRowId; |
|||
} |
|||
|
|||
public String getIfsRowVersion() { |
|||
return ifsRowVersion; |
|||
} |
|||
|
|||
public void setIfsRowVersion(String ifsRowVersion) { |
|||
this.ifsRowVersion = ifsRowVersion; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,117 @@ |
|||
package com.spring.ifs.data; |
|||
|
|||
public class ToolInstance extends ToolHeader { |
|||
private String toolInstance; |
|||
private String desc; |
|||
private String lastCalibrationDate; |
|||
private String objectId; |
|||
private String normalWorkCenterNo; |
|||
private String normalProductionLine; |
|||
private String toolDiscrimination; |
|||
private String toolLinearity; |
|||
private String toolRepeatability; |
|||
private String toolBias; |
|||
private String toolStability; |
|||
private String toolReproducibility; |
|||
|
|||
public ToolInstance() { |
|||
super(); |
|||
} |
|||
|
|||
public String getToolInstance() { |
|||
return toolInstance; |
|||
} |
|||
|
|||
public void setToolInstance(String toolInstance) { |
|||
this.toolInstance = toolInstance; |
|||
} |
|||
|
|||
public String getDesc() { |
|||
return desc; |
|||
} |
|||
|
|||
public void setDesc(String desc) { |
|||
this.desc = desc; |
|||
} |
|||
|
|||
public String getLastCalibrationDate() { |
|||
return lastCalibrationDate; |
|||
} |
|||
|
|||
public void setLastCalibrationDate(String lastCalibrationDate) { |
|||
this.lastCalibrationDate = lastCalibrationDate; |
|||
} |
|||
|
|||
public String getObjectId() { |
|||
return objectId; |
|||
} |
|||
|
|||
public void setObjectId(String objectId) { |
|||
this.objectId = objectId; |
|||
} |
|||
|
|||
public String getNormalWorkCenterNo() { |
|||
return normalWorkCenterNo; |
|||
} |
|||
|
|||
public void setNormalWorkCenterNo(String normalWorkCenterNo) { |
|||
this.normalWorkCenterNo = normalWorkCenterNo; |
|||
} |
|||
|
|||
public String getNormalProductionLine() { |
|||
return normalProductionLine; |
|||
} |
|||
|
|||
public void setNormalProductionLine(String normalProductionLine) { |
|||
this.normalProductionLine = normalProductionLine; |
|||
} |
|||
|
|||
public String getToolDiscrimination() { |
|||
return toolDiscrimination; |
|||
} |
|||
|
|||
public void setToolDiscrimination(String toolDiscrimination) { |
|||
this.toolDiscrimination = toolDiscrimination; |
|||
} |
|||
|
|||
public String getToolLinearity() { |
|||
return toolLinearity; |
|||
} |
|||
|
|||
public void setToolLinearity(String toolLinearity) { |
|||
this.toolLinearity = toolLinearity; |
|||
} |
|||
|
|||
public String getToolRepeatability() { |
|||
return toolRepeatability; |
|||
} |
|||
|
|||
public void setToolRepeatability(String toolRepeatability) { |
|||
this.toolRepeatability = toolRepeatability; |
|||
} |
|||
|
|||
public String getToolBias() { |
|||
return toolBias; |
|||
} |
|||
|
|||
public void setToolBias(String toolBias) { |
|||
this.toolBias = toolBias; |
|||
} |
|||
|
|||
public String getToolStability() { |
|||
return toolStability; |
|||
} |
|||
|
|||
public void setToolStability(String toolStability) { |
|||
this.toolStability = toolStability; |
|||
} |
|||
|
|||
public String getToolReproducibility() { |
|||
return toolReproducibility; |
|||
} |
|||
|
|||
public void setToolReproducibility(String toolReproducibility) { |
|||
this.toolReproducibility = toolReproducibility; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,27 @@ |
|||
package com.spring.ifs.data; |
|||
|
|||
public class ToolInstanceDate extends ToolInstance { |
|||
private String beginDate; |
|||
private String endDate; |
|||
|
|||
public ToolInstanceDate() { |
|||
super(); |
|||
} |
|||
|
|||
public String getBeginDate() { |
|||
return beginDate; |
|||
} |
|||
|
|||
public void setBeginDate(String beginDate) { |
|||
this.beginDate = beginDate; |
|||
} |
|||
|
|||
public String getEndDate() { |
|||
return endDate; |
|||
} |
|||
|
|||
public void setEndDate(String endDate) { |
|||
this.endDate = endDate; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,125 @@ |
|||
package com.spring.ifs.data; |
|||
|
|||
public class WarehouseLocation { |
|||
private String site; |
|||
private String locationId; |
|||
private String locationName; |
|||
private String warehouseId; |
|||
private String active; |
|||
private String createBy; |
|||
private String createDate; |
|||
private String updateBy; |
|||
private String updateDate; |
|||
private String locationType; |
|||
private String ifsRowId; |
|||
private String ifsRowVersion; |
|||
|
|||
public WarehouseLocation() { |
|||
super(); |
|||
} |
|||
|
|||
public String getSite() { |
|||
return site; |
|||
} |
|||
|
|||
public void setSite(String site) { |
|||
this.site = site; |
|||
} |
|||
|
|||
public String getLocationId() { |
|||
return locationId; |
|||
} |
|||
|
|||
public void setLocationId(String locationId) { |
|||
this.locationId = locationId; |
|||
} |
|||
|
|||
public String getLocationName() { |
|||
return locationName; |
|||
} |
|||
|
|||
public void setLocationName(String locationName) { |
|||
this.locationName = locationName; |
|||
} |
|||
|
|||
public String getWarehouseId() { |
|||
return warehouseId; |
|||
} |
|||
|
|||
public void setWarehouseId(String warehouseId) { |
|||
this.warehouseId = warehouseId; |
|||
} |
|||
|
|||
public String getActive() { |
|||
return active; |
|||
} |
|||
|
|||
public void setActive(String active) { |
|||
this.active = active; |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy; |
|||
} |
|||
|
|||
public String getCreateDate() { |
|||
return createDate; |
|||
} |
|||
|
|||
public void setCreateDate(String createDate) { |
|||
this.createDate = createDate; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy; |
|||
} |
|||
|
|||
public String getUpdateDate() { |
|||
return updateDate; |
|||
} |
|||
|
|||
public void setUpdateDate(String updateDate) { |
|||
this.updateDate = updateDate; |
|||
} |
|||
|
|||
public String getLocationType() { |
|||
return locationType; |
|||
} |
|||
|
|||
public void setLocationType(String locationType) { |
|||
this.locationType = locationType; |
|||
} |
|||
|
|||
public String getIfsRowId() { |
|||
return ifsRowId; |
|||
} |
|||
|
|||
public void setIfsRowId(String ifsRowId) { |
|||
this.ifsRowId = ifsRowId; |
|||
} |
|||
|
|||
public String getIfsRowVersion() { |
|||
return ifsRowVersion; |
|||
} |
|||
|
|||
public void setIfsRowVersion(String ifsRowVersion) { |
|||
this.ifsRowVersion = ifsRowVersion; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return "IfsLocationData [site=" + site + ", locationId=" + locationId + ", locationName=" + locationName |
|||
+ ", warehouseId=" + warehouseId + ", active=" + active + ", createBy=" + createBy + ", createDate=" |
|||
+ createDate + ", updateBy=" + updateBy + ", updateDate=" + updateDate + ", locationType=" |
|||
+ locationType + ", ifsRowVersion=" + ifsRowVersion + "]"; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,180 @@ |
|||
package com.spring.ifs.data; |
|||
|
|||
public class WorkCenter { |
|||
private String site; |
|||
private String workCenterNo; |
|||
private String workCenterDesc; |
|||
private String workCenterTypeDb; |
|||
private String workCenterType; |
|||
private String averageCapacity; |
|||
private String efficiency; |
|||
private String utilization; |
|||
private String capacityTypeDb; |
|||
private String capacityType; |
|||
private String umId; |
|||
private String active; |
|||
private String remark; |
|||
private String createdDate; |
|||
private String proLineNo; |
|||
private String canCreateNewRollFlag; |
|||
private String needSetupFlag; |
|||
private String ifsRowId; |
|||
private String ifsRowVersion; |
|||
|
|||
public WorkCenter() { |
|||
super(); |
|||
} |
|||
|
|||
public String getSite() { |
|||
return site; |
|||
} |
|||
|
|||
public void setSite(String site) { |
|||
this.site = site; |
|||
} |
|||
|
|||
public String getWorkCenterNo() { |
|||
return workCenterNo; |
|||
} |
|||
|
|||
public void setWorkCenterNo(String workCenterNo) { |
|||
this.workCenterNo = workCenterNo; |
|||
} |
|||
|
|||
public String getWorkCenterDesc() { |
|||
return workCenterDesc; |
|||
} |
|||
|
|||
public void setWorkCenterDesc(String workCenterDesc) { |
|||
this.workCenterDesc = workCenterDesc; |
|||
} |
|||
|
|||
public String getWorkCenterTypeDb() { |
|||
return workCenterTypeDb; |
|||
} |
|||
|
|||
public void setWorkCenterTypeDb(String workCenterTypeDb) { |
|||
this.workCenterTypeDb = workCenterTypeDb; |
|||
} |
|||
|
|||
public String getWorkCenterType() { |
|||
return workCenterType; |
|||
} |
|||
|
|||
public void setWorkCenterType(String workCenterType) { |
|||
this.workCenterType = workCenterType; |
|||
} |
|||
|
|||
public String getAverageCapacity() { |
|||
return averageCapacity; |
|||
} |
|||
|
|||
public void setAverageCapacity(String averageCapacity) { |
|||
this.averageCapacity = averageCapacity; |
|||
} |
|||
|
|||
public String getEfficiency() { |
|||
return efficiency; |
|||
} |
|||
|
|||
public void setEfficiency(String efficiency) { |
|||
this.efficiency = efficiency; |
|||
} |
|||
|
|||
public String getUtilization() { |
|||
return utilization; |
|||
} |
|||
|
|||
public void setUtilization(String utilization) { |
|||
this.utilization = utilization; |
|||
} |
|||
|
|||
public String getCapacityTypeDb() { |
|||
return capacityTypeDb; |
|||
} |
|||
|
|||
public void setCapacityTypeDb(String capacityTypeDb) { |
|||
this.capacityTypeDb = capacityTypeDb; |
|||
} |
|||
|
|||
public String getCapacityType() { |
|||
return capacityType; |
|||
} |
|||
|
|||
public void setCapacityType(String capacityType) { |
|||
this.capacityType = capacityType; |
|||
} |
|||
|
|||
public String getUmId() { |
|||
return umId; |
|||
} |
|||
|
|||
public void setUmId(String umId) { |
|||
this.umId = umId; |
|||
} |
|||
|
|||
public String getActive() { |
|||
return active; |
|||
} |
|||
|
|||
public void setActive(String active) { |
|||
this.active = active; |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark; |
|||
} |
|||
|
|||
public String getCreatedDate() { |
|||
return createdDate; |
|||
} |
|||
|
|||
public void setCreatedDate(String createdDate) { |
|||
this.createdDate = createdDate; |
|||
} |
|||
|
|||
public String getProLineNo() { |
|||
return proLineNo; |
|||
} |
|||
|
|||
public void setProLineNo(String proLineNo) { |
|||
this.proLineNo = proLineNo; |
|||
} |
|||
|
|||
public String getCanCreateNewRollFlag() { |
|||
return canCreateNewRollFlag; |
|||
} |
|||
|
|||
public void setCanCreateNewRollFlag(String canCreateNewRollFlag) { |
|||
this.canCreateNewRollFlag = canCreateNewRollFlag; |
|||
} |
|||
|
|||
public String getNeedSetupFlag() { |
|||
return needSetupFlag; |
|||
} |
|||
|
|||
public void setNeedSetupFlag(String needSetupFlag) { |
|||
this.needSetupFlag = needSetupFlag; |
|||
} |
|||
|
|||
public String getIfsRowId() { |
|||
return ifsRowId; |
|||
} |
|||
|
|||
public void setIfsRowId(String ifsRowId) { |
|||
this.ifsRowId = ifsRowId; |
|||
} |
|||
|
|||
public String getIfsRowVersion() { |
|||
return ifsRowVersion; |
|||
} |
|||
|
|||
public void setIfsRowVersion(String ifsRowVersion) { |
|||
this.ifsRowVersion = ifsRowVersion; |
|||
} |
|||
|
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue