修改优化

This commit is contained in:
wuweihua
2026-10-18 15:32:48 +08:00
parent 60d4614695
commit a19d97d111
5 changed files with 46 additions and 0 deletions
@@ -46,6 +46,9 @@ public interface PrcPriceSetDetailMapper
/** Copy version effective time, expire time and status onto catalog detail rows. */
public int syncEffectByPriceType(@Param("priceType") String priceType);
/** Copy SALES version effect fields onto package detail rows. */
public int syncEffectByPriceSetId(@Param("priceSetId") Long priceSetId);
public int insertFixedDetailsFromLibrary(
@Param("psvId") Long psvId,
@Param("asOf") Date asOf,
@@ -40,4 +40,7 @@ public interface PrcPriceSetProductMapper
/** Copy version effective_time and status onto catalog product rows. */
public int syncEffectByPriceType(@Param("priceType") String priceType);
/** Copy SALES version effect fields onto package product rows. */
public int syncEffectByPriceSetId(@Param("priceSetId") Long priceSetId);
}
@@ -3990,6 +3990,12 @@ public class PrcPriceSetServiceImpl implements IPrcPriceSetService
versionMapper.updatePrcPriceSetVersion(v);
}
}
// Keep package product/detail effect fields aligned with version
if (priceSetId != null)
{
setProductMapper.syncEffectByPriceSetId(priceSetId);
detailMapper.syncEffectByPriceSetId(priceSetId);
}
}
@Override