|
|
@ -1,5 +1,6 @@ |
|
|
package com.spring.ifs.api; |
|
|
package com.spring.ifs.api; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
import com.spring.ifs.data.CharacteristicTemplate; |
|
|
import com.spring.ifs.data.CharacteristicTemplate; |
|
|
import com.spring.ifs.data.CopyPartItem; |
|
|
import com.spring.ifs.data.CopyPartItem; |
|
|
import com.spring.ifs.data.IfsParamBean; |
|
|
import com.spring.ifs.data.IfsParamBean; |
|
|
@ -7,6 +8,8 @@ import com.spring.ifs.utils.IfsConverterToMap; |
|
|
import com.spring.ifs.utils.IfsPlsqlUtils; |
|
|
import com.spring.ifs.utils.IfsPlsqlUtils; |
|
|
import com.spring.modules.part.entity.APIEntity.*; |
|
|
import com.spring.modules.part.entity.APIEntity.*; |
|
|
import ifs.fnd.ap.*; |
|
|
import ifs.fnd.ap.*; |
|
|
|
|
|
import org.slf4j.Logger; |
|
|
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
import java.util.ArrayList; |
|
|
import java.util.HashMap; |
|
|
import java.util.HashMap; |
|
|
@ -21,6 +24,7 @@ import java.util.Map; |
|
|
*/ |
|
|
*/ |
|
|
public class InventoryPartApi{ |
|
|
public class InventoryPartApi{ |
|
|
|
|
|
|
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(InventoryPartApi.class); |
|
|
/** |
|
|
/** |
|
|
* @description: 查询库存件的信息 |
|
|
* @description: 查询库存件的信息 |
|
|
* @author LR |
|
|
* @author LR |
|
|
@ -168,7 +172,7 @@ public class InventoryPartApi{ |
|
|
inParam.put("MIN_DURAB_DAYS_CO_DELIV", "0"); // 拼接固定参数 |
|
|
inParam.put("MIN_DURAB_DAYS_CO_DELIV", "0"); // 拼接固定参数 |
|
|
inParam.put("MIN_DURAB_DAYS_PLANNING", "0"); // 拼接固定参数 |
|
|
inParam.put("MIN_DURAB_DAYS_PLANNING", "0"); // 拼接固定参数 |
|
|
inParam.put("MANDATORY_EXPIRATION_DATE_DB", "FALSE"); // 拼接固定参数 |
|
|
inParam.put("MANDATORY_EXPIRATION_DATE_DB", "FALSE"); // 拼接固定参数 |
|
|
inParam.put("SUPPLY_CODE", "Inventory Order"); // 拼接固定参数 |
|
|
|
|
|
|
|
|
//inParam.put("SUPPLY_CODE", "Inventory Order"); // 拼接固定参数 |
|
|
inParam.put("DOP_CONNECTION", "Automatic DOP"); // 拼接固定参数 |
|
|
inParam.put("DOP_CONNECTION", "Automatic DOP"); // 拼接固定参数 |
|
|
inParam.put("DOP_NETTING", "No Netting"); // 拼接固定参数 |
|
|
inParam.put("DOP_NETTING", "No Netting"); // 拼接固定参数 |
|
|
inParam.put("QTY_CALC_ROUNDING", "16"); // 拼接固定参数 |
|
|
inParam.put("QTY_CALC_ROUNDING", "16"); // 拼接固定参数 |
|
|
@ -178,6 +182,7 @@ public class InventoryPartApi{ |
|
|
inParam.put("SPECIAL_CONSUMPTION_TAX_DB", "FALSE"); // SPECIAL_CONSUMPTION_TAX_DB |
|
|
inParam.put("SPECIAL_CONSUMPTION_TAX_DB", "FALSE"); // SPECIAL_CONSUMPTION_TAX_DB |
|
|
inParam.put("CUSTOMS_DECL_NO_LEVEL", "Not Used"); // CUSTOMS_DECL_NO_LEVEL |
|
|
inParam.put("CUSTOMS_DECL_NO_LEVEL", "Not Used"); // CUSTOMS_DECL_NO_LEVEL |
|
|
inParam.put("SUPPLY_CODE", supplyCode); // 2025-12-22 新增IFS字段 |
|
|
inParam.put("SUPPLY_CODE", supplyCode); // 2025-12-22 新增IFS字段 |
|
|
|
|
|
logger.info("insertInventoryPart inParam:" + JSON.toJSONString(inParam)); |
|
|
//执行存储过程 获取结果集 |
|
|
//执行存储过程 获取结果集 |
|
|
//执行check的操作 |
|
|
//执行check的操作 |
|
|
Map<String, String> checkMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "INVENTORY_PART_API", |
|
|
Map<String, String> checkMap = IfsPlsqlUtils.execProcedureGetRecord(srv, "INVENTORY_PART_API", |
|
|
@ -262,6 +267,8 @@ public class InventoryPartApi{ |
|
|
inParam.put("PART_COST_GROUP_ID", partCostGroupId); // PART_COST_GROUP_ID |
|
|
inParam.put("PART_COST_GROUP_ID", partCostGroupId); // PART_COST_GROUP_ID |
|
|
inParam.put("ENG_ATTRIBUTE", engAttribute); // 库存件模版 |
|
|
inParam.put("ENG_ATTRIBUTE", engAttribute); // 库存件模版 |
|
|
inParam.put("SUPPLY_CODE", supplyCode); // 2025-12-22 新增IFS字段 |
|
|
inParam.put("SUPPLY_CODE", supplyCode); // 2025-12-22 新增IFS字段 |
|
|
|
|
|
//打印存储过程入参 |
|
|
|
|
|
logger.info("modifyInventoryPart inParam:" + JSON.toJSONString(inParam)); |
|
|
|
|
|
|
|
|
//执行存储过程 获取结果集 |
|
|
//执行存储过程 获取结果集 |
|
|
//执行check的操作 |
|
|
//执行check的操作 |
|
|
|