|
|
@ -551,6 +551,7 @@ public class BomApiTest { |
|
|
String consumptionItem = inData.getConsumptionItem(); |
|
|
String consumptionItem = inData.getConsumptionItem(); |
|
|
String createDate = DateUtils.getStringDate(new Date(), "yyyy-MM-dd")+"-00.00.00"; |
|
|
String createDate = DateUtils.getStringDate(new Date(), "yyyy-MM-dd")+"-00.00.00"; |
|
|
String lastActivityDate = DateUtils.getStringDate(new Date(), "yyyy-MM-dd")+"-00.00.00"; |
|
|
String lastActivityDate = DateUtils.getStringDate(new Date(), "yyyy-MM-dd")+"-00.00.00"; |
|
|
|
|
|
String productFlag = inData.getProductFlag(); |
|
|
//入参 |
|
|
//入参 |
|
|
Map<String, String> inParam = new HashMap<>(); |
|
|
Map<String, String> inParam = new HashMap<>(); |
|
|
//填充参数 |
|
|
//填充参数 |
|
|
@ -565,14 +566,18 @@ public class BomApiTest { |
|
|
inParam.put("LINE_SEQUENCE", sequenceNo); // 序号 |
|
|
inParam.put("LINE_SEQUENCE", sequenceNo); // 序号 |
|
|
inParam.put("COMPONENT_PART", componentPart); // 子零件 |
|
|
inParam.put("COMPONENT_PART", componentPart); // 子零件 |
|
|
inParam.put("QTY_PER_ASSEMBLY", qtyPerAssembly); // 单位用量 |
|
|
inParam.put("QTY_PER_ASSEMBLY", qtyPerAssembly); // 单位用量 |
|
|
inParam.put("ISSUE_TYPE", issueType); // 域 |
|
|
|
|
|
|
|
|
if ("byProduct".equalsIgnoreCase(productFlag)) { |
|
|
|
|
|
inParam.put("CONSUMPTION_ITEM", "Consumed"); // 消耗项目 |
|
|
|
|
|
}else { |
|
|
|
|
|
inParam.put("ISSUE_TYPE", issueType); // 生产属性 |
|
|
|
|
|
inParam.put("CONSUMPTION_ITEM", consumptionItem); // 消耗项目 |
|
|
|
|
|
} |
|
|
inParam.put("COMPONENT_SCRAP", componentScrap); // 报废 |
|
|
inParam.put("COMPONENT_SCRAP", componentScrap); // 报废 |
|
|
inParam.put("SHRINKAGE_FACTOR", shrinkageFactor); // 损耗率 |
|
|
inParam.put("SHRINKAGE_FACTOR", shrinkageFactor); // 损耗率 |
|
|
inParam.put("NOTE_TEXT", noteText); // 备注 |
|
|
inParam.put("NOTE_TEXT", noteText); // 备注 |
|
|
inParam.put("OPERATION_NO", operationNo); // 工序 |
|
|
inParam.put("OPERATION_NO", operationNo); // 工序 |
|
|
inParam.put("ISSUE_PLANNED_SCRAP_DB", "TRUE"); // 固定值 |
|
|
inParam.put("ISSUE_PLANNED_SCRAP_DB", "TRUE"); // 固定值 |
|
|
inParam.put("ISSUE_OVERREPORTED_QTY_DB", "FALSE"); // 固定值 |
|
|
inParam.put("ISSUE_OVERREPORTED_QTY_DB", "FALSE"); // 固定值 |
|
|
inParam.put("CONSUMPTION_ITEM", consumptionItem); // 消耗项目 |
|
|
|
|
|
inParam.put("LEADTIME_OFFSET", "0"); // 固定值 |
|
|
inParam.put("LEADTIME_OFFSET", "0"); // 固定值 |
|
|
inParam.put("PROMISE_PLANNED", "Promised"); // 固定值 |
|
|
inParam.put("PROMISE_PLANNED", "Promised"); // 固定值 |
|
|
inParam.put("PHANTOM_CONSUME", "Not Phantom Consume"); // 固定值 |
|
|
inParam.put("PHANTOM_CONSUME", "Not Phantom Consume"); // 固定值 |
|
|
@ -620,6 +625,7 @@ public class BomApiTest { |
|
|
String consumptionItem = inData.getConsumptionItem(); |
|
|
String consumptionItem = inData.getConsumptionItem(); |
|
|
String createDate = DateUtils.getStringDate(new Date(), "yyyy-MM-dd")+"-00.00.00"; |
|
|
String createDate = DateUtils.getStringDate(new Date(), "yyyy-MM-dd")+"-00.00.00"; |
|
|
String lastActivityDate = DateUtils.getStringDate(new Date(), "yyyy-MM-dd")+"-00.00.00"; |
|
|
String lastActivityDate = DateUtils.getStringDate(new Date(), "yyyy-MM-dd")+"-00.00.00"; |
|
|
|
|
|
String productFlag = inData.getProductFlag(); |
|
|
//入参 |
|
|
//入参 |
|
|
Map<String, String> inParam = new HashMap<>(); |
|
|
Map<String, String> inParam = new HashMap<>(); |
|
|
//填充参数 |
|
|
//填充参数 |
|
|
@ -628,11 +634,15 @@ public class BomApiTest { |
|
|
inParam.put("LINE_SEQUENCE", sequenceNo); // 序号 |
|
|
inParam.put("LINE_SEQUENCE", sequenceNo); // 序号 |
|
|
inParam.put("COMPONENT_PART", componentPart); // 子零件 |
|
|
inParam.put("COMPONENT_PART", componentPart); // 子零件 |
|
|
inParam.put("QTY_PER_ASSEMBLY", qtyPerAssembly); // 单位用量 |
|
|
inParam.put("QTY_PER_ASSEMBLY", qtyPerAssembly); // 单位用量 |
|
|
inParam.put("ISSUE_TYPE", issueType); // 域 |
|
|
|
|
|
|
|
|
if ("byProduct".equalsIgnoreCase(productFlag)) { |
|
|
|
|
|
inParam.put("CONSUMPTION_ITEM", "Consumed"); // 消耗项目 |
|
|
|
|
|
}else { |
|
|
|
|
|
inParam.put("ISSUE_TYPE", issueType); // 生产属性 |
|
|
|
|
|
inParam.put("CONSUMPTION_ITEM", consumptionItem); // 消耗项目 |
|
|
|
|
|
} |
|
|
inParam.put("COMPONENT_SCRAP", componentScrap); // 报废 |
|
|
inParam.put("COMPONENT_SCRAP", componentScrap); // 报废 |
|
|
inParam.put("SHRINKAGE_FACTOR", shrinkageFactor); // 损耗率 |
|
|
inParam.put("SHRINKAGE_FACTOR", shrinkageFactor); // 损耗率 |
|
|
inParam.put("NOTE_TEXT", noteText); // 备注 |
|
|
inParam.put("NOTE_TEXT", noteText); // 备注 |
|
|
inParam.put("CONSUMPTION_ITEM", consumptionItem); // 消耗项目 |
|
|
|
|
|
inParam.put("CREATE_DATE", createDate); // 创建时间 |
|
|
inParam.put("CREATE_DATE", createDate); // 创建时间 |
|
|
inParam.put("OPERATION_NO", operationNo); // 工序 |
|
|
inParam.put("OPERATION_NO", operationNo); // 工序 |
|
|
inParam.put("LAST_ACTIVITY_DATE", lastActivityDate); // 最近更新时间 |
|
|
inParam.put("LAST_ACTIVITY_DATE", lastActivityDate); // 最近更新时间 |
|
|
|