Enhance price set import functionality with preview options and update handling. Added new endpoints for previewing product library pulls and Excel imports, along with support for update-only imports. Updated internationalization messages for import success and error scenarios.
This commit is contained in:
@@ -22,6 +22,9 @@ public interface PrcPriceSetDetailMapper
|
||||
|
||||
public int insertPrcPriceSetDetail(PrcPriceSetDetail detail);
|
||||
|
||||
/** Batch insert details; fills generated psdId on each item. */
|
||||
public int insertPrcPriceSetDetailBatch(@Param("list") List<PrcPriceSetDetail> list);
|
||||
|
||||
public int updatePrcPriceSetDetail(PrcPriceSetDetail detail);
|
||||
|
||||
public int deletePrcPriceSetDetailByIds(Long[] psdIds);
|
||||
@@ -49,6 +52,11 @@ public interface PrcPriceSetDetailMapper
|
||||
@Param("asOf") Date asOf,
|
||||
@Param("openOnly") boolean openOnly);
|
||||
|
||||
/** Preview: FIXED details from product country library (no insert). */
|
||||
public List<PrcPriceSetDetail> selectFixedDetailsFromLibrary(
|
||||
@Param("asOf") Date asOf,
|
||||
@Param("openOnly") boolean openOnly);
|
||||
|
||||
/** DISCOUNT: one detail row per effective product */
|
||||
public int insertDiscountDetailsFromLibrary(
|
||||
@Param("priceSetId") Long priceSetId,
|
||||
|
||||
@@ -26,6 +26,9 @@ public interface PrcPriceSetProductMapper
|
||||
/** Copy active library products into this version (ignore duplicates). */
|
||||
public int insertFromLibrary(@Param("priceSetId") Long priceSetId, @Param("psvId") Long psvId);
|
||||
|
||||
/** Preview: active library products without writing set-product rows. */
|
||||
public List<PrcPriceSetProduct> selectFromLibrary();
|
||||
|
||||
/** Copy set products from one version to another. */
|
||||
public int copyFromVersion(@Param("srcPsvId") Long srcPsvId, @Param("newPsvId") Long newPsvId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user