|
|
|
@ -301,6 +301,11 @@ public class SupplierPartMoqPriceServiceImpl implements ISupplierPartMoqPriceSer |
|
|
|
String copyPriceDate = resolveCopyPriceDate(currentTierRows); |
|
|
|
String attachmentRefs = resolveCopyAttachmentRefs(currentTierRows); |
|
|
|
String submitBy = resolveSubmitBy(data.getSubmitBy()); |
|
|
|
// 复制语义扩展:MOQ 全量信息(三个数量+在用状态)随价格一起复制到目标物料 |
|
|
|
SupplierPartMoqPriceVo sourceMoq = supplierPartMoqPriceMapper.getSupplierPartMoq(site, supplierCode, sourcePartNo); |
|
|
|
if (sourceMoq == null) { |
|
|
|
throw new RuntimeException("源物料MOQ信息不存在"); |
|
|
|
} |
|
|
|
|
|
|
|
List<SupplierPartMoqPriceVo> seriesRows = supplierPartMoqPriceMapper.listSeriesPartByBasePartNo(site, basePartNo); |
|
|
|
Set<String> seriesPartNoSet = new LinkedHashSet<>(); |
|
|
|
@ -341,6 +346,9 @@ public class SupplierPartMoqPriceServiceImpl implements ISupplierPartMoqPriceSer |
|
|
|
saveVo.setTierPriceList(cloneTierPriceItems(currentTierRows)); |
|
|
|
// 复用“变更价格表”逻辑:先写历史,再替换当前 - rqrq |
|
|
|
saveTierPrice(saveVo); |
|
|
|
// MOQ 全量信息覆盖到目标物料,与价格同事务回滚 |
|
|
|
supplierPartMoqPriceMapper.updateSupplierPartMoq(site, supplierCode, targetPartNo, |
|
|
|
sourceMoq.getMoq(), sourceMoq.getMoqColor(), sourceMoq.getQtyCarton(), sourceMoq.getActive()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|