|
|
|
@ -2193,9 +2193,6 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
@Transactional |
|
|
|
public void saveCopyBom(PartInformationVo inData, PartInformationEntity fromPart, PartInformationEntity toPart, HashMap<Integer, Integer> revisionMap, Date actualDate) { |
|
|
|
List<BomHeaderVo> bomHeaderList = bomManagementMapper.selectBomHeaderByPartNo(fromPart.getSite(), fromPart.getPartNo()); |
|
|
|
List<BomDetailVo> bomDetailList = bomManagementMapper.selectBomDetailByPartNo(fromPart.getSite(), fromPart.getPartNo()); |
|
|
|
List<BomComponentVo> bomComponentList = bomManagementMapper.selectBomComponentByPartNo(fromPart.getSite(), fromPart.getPartNo()); |
|
|
|
List<BomManufStructCostDistribVo> bomManufStructCostDistribList = bomManagementMapper.selectBomManufStructCostDistribByPartNo(fromPart.getSite(), fromPart.getPartNo()); |
|
|
|
if (!bomHeaderList.isEmpty()) { |
|
|
|
for (BomHeaderVo bomHeader : bomHeaderList) { |
|
|
|
bomHeader.setSite(toPart.getSite()); |
|
|
|
@ -2206,7 +2203,9 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
bomManagementMapper.saveBomHeader(bomHeader); |
|
|
|
} |
|
|
|
//partInformationMapper.saveBomHeaders(bomHeaderList); |
|
|
|
} |
|
|
|
List<BomDetailVo> bomDetailList = bomManagementMapper.selectBomDetailByPartNo(fromPart.getSite(), fromPart.getPartNo()); |
|
|
|
List<BomComponentVo> bomComponentList = bomManagementMapper.selectBomComponentByPartNo(fromPart.getSite(), fromPart.getPartNo()); |
|
|
|
List<BomManufStructCostDistribVo> bomManufStructCostDistribList = bomManagementMapper.selectBomManufStructCostDistribByPartNo(fromPart.getSite(), fromPart.getPartNo()); |
|
|
|
if (!bomDetailList.isEmpty()) { |
|
|
|
for (BomDetailVo bomDetail : bomDetailList) { |
|
|
|
bomDetail.setSite(toPart.getSite()); |
|
|
|
@ -2236,6 +2235,7 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
bomManagementMapper.saveBomManufStructCostDistrib(bomManufStructCostDistribList); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Transactional |
|
|
|
public void saveCopyRecipe(PartInformationVo inData, PartInformationEntity fromPart, PartInformationEntity toPart, HashMap<Integer, Integer> revisionMap, Date actualDate) { |
|
|
|
|