优化套餐编辑逻辑
This commit is contained in:
@@ -30,6 +30,9 @@ public interface PrcPriceSetDetailMapper
|
||||
|
||||
public int deletePrcPriceSetDetailByPsvId(Long psvId);
|
||||
|
||||
/** Hard delete detail rows by ids (draft / pending). */
|
||||
public int physicalDeleteByIds(Long[] psdIds);
|
||||
|
||||
/** Hard delete all detail rows under a version. */
|
||||
public int physicalDeleteByPsvId(@Param("psvId") Long psvId);
|
||||
|
||||
|
||||
@@ -23,6 +23,9 @@ public interface PrcPriceSetProductMapper
|
||||
|
||||
public int deleteByPsvIdAndCode(@Param("psvId") Long psvId, @Param("productCode") String productCode);
|
||||
|
||||
/** Hard delete one product under a version (draft / pending). */
|
||||
public int physicalDeleteByPsvIdAndCode(@Param("psvId") Long psvId, @Param("productCode") String productCode);
|
||||
|
||||
/** Hard delete all product rows under a version. */
|
||||
public int physicalDeleteByPsvId(@Param("psvId") Long psvId);
|
||||
|
||||
|
||||
@@ -35,6 +35,16 @@ public interface PrcSurchargeRelMapper
|
||||
@Param("productIds") List<Long> productIds,
|
||||
@Param("priceType") String priceType);
|
||||
|
||||
/** Hard delete surcharge rows by detail ids (draft / pending). */
|
||||
public int physicalDeleteByDetailIdsAndPriceType(
|
||||
@Param("detailIds") List<Long> detailIds,
|
||||
@Param("priceType") String priceType);
|
||||
|
||||
/** Hard delete surcharge rows by set-product ids (draft / pending). */
|
||||
public int physicalDeleteByProductIdsAndPriceType(
|
||||
@Param("productIds") List<Long> productIds,
|
||||
@Param("priceType") String priceType);
|
||||
|
||||
/** Hard delete surcharge rows linked to products/details under a version. */
|
||||
public int physicalDeleteByPsvId(@Param("psvId") Long psvId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user