修改优化
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
+6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user