|
|
|
@ -7,6 +7,7 @@ import com.spring.ifs.data.BomDistribution; |
|
|
|
import com.spring.modules.part.entity.APIEntity.BomIfsAlternative; |
|
|
|
import com.spring.modules.part.entity.APIEntity.BomIfsHeader; |
|
|
|
import com.spring.modules.part.entity.APIEntity.BomIfsItem; |
|
|
|
import com.spring.modules.part.entity.APIEntity.BomIfsManufStructCostDistrib; |
|
|
|
import ifs.fnd.ap.APException; |
|
|
|
import ifs.fnd.ap.Server; |
|
|
|
import org.slf4j.Logger; |
|
|
|
@ -630,7 +631,7 @@ public class BomServiceBean { |
|
|
|
* @date 2024/12/13 10:51 |
|
|
|
* @version 1.0 |
|
|
|
*/ |
|
|
|
public Map<String, String> modifyBomDistribution(Server srv, BomDistribution inData) { |
|
|
|
public Map<String, String> modifyBomDistribution(Server srv, BomIfsManufStructCostDistrib inData) { |
|
|
|
logger.info("Bom Distribution查询开始:"+JSON.toJSONString(inData)); |
|
|
|
//公共参数 |
|
|
|
Map<String, String> returnMap = new HashMap<>(); |
|
|
|
@ -673,9 +674,9 @@ public class BomServiceBean { |
|
|
|
* @date 2024/12/13 10:57 |
|
|
|
* @version 1.0 |
|
|
|
*/ |
|
|
|
public Map<String, String> modifyBomDistributions(Server srv, List<BomDistribution> inDatas) { |
|
|
|
public Map<String, String> modifyBomDistributions(Server srv, List<BomIfsManufStructCostDistrib> inDatas) { |
|
|
|
logger.info("Bom Distribution批量修改开始:"+JSON.toJSONString(inDatas)); |
|
|
|
BomDistribution inData = inDatas.get(0); |
|
|
|
BomIfsManufStructCostDistrib inData = inDatas.get(0); |
|
|
|
//公共参数 |
|
|
|
Map<String, String> returnMap = new HashMap<>(); |
|
|
|
String contract = inData.getContract(); |
|
|
|
@ -685,7 +686,7 @@ public class BomServiceBean { |
|
|
|
String alternativeNo = inData.getAlternativeNo(); |
|
|
|
try{ |
|
|
|
//迭代循环调用 验证 |
|
|
|
for(BomDistribution bomDistribution : inDatas) { |
|
|
|
for(BomIfsManufStructCostDistrib bomDistribution : inDatas) { |
|
|
|
String componentLineItemNo = bomDistribution.getComponentLineItemNo(); |
|
|
|
String byProductLineItemNo = bomDistribution.getByProdLineItemNo();// 副产品的序号 |
|
|
|
Map<String, String> searchMap = BomApi.getBomDistribution(srv, contract, partNo, engChgLevel, bomType, alternativeNo, |
|
|
|
@ -696,7 +697,7 @@ public class BomServiceBean { |
|
|
|
} |
|
|
|
} |
|
|
|
//迭代循环调用 |
|
|
|
for(BomDistribution bomDistribution : inDatas) { |
|
|
|
for(BomIfsManufStructCostDistrib bomDistribution : inDatas) { |
|
|
|
String componentLineItemNo = bomDistribution.getComponentLineItemNo(); |
|
|
|
String byProductLineItemNo = bomDistribution.getByProdLineItemNo();// 副产品的序号 |
|
|
|
Map<String, String> searchMap = BomApi.getBomDistribution(srv, contract, partNo, engChgLevel, bomType, alternativeNo, |
|
|
|
|