新增产品和附加费删除标记,优化版本编辑逻辑

This commit is contained in:
wuweihua
2026-11-16 14:54:19 +08:00
parent 4503424cf0
commit 215effe036
10 changed files with 418 additions and 166 deletions
@@ -117,6 +117,10 @@
where price_set_id = #{priceSetId} and version_no = #{versionNo}
</delete>
<delete id="deleteVersionById">
delete from prc_label_product_version where version_id = #{versionId}
</delete>
<select id="selectVersionsBySet" resultType="com.bms.price.domain.LblProductVersion">
select v.version_id as versionId, v.price_set_id as priceSetId, v.product_id as productId, v.dict_value as dictValue,
v.version_no as versionNo, v.effective_start as effectiveStart, v.effective_end as effectiveEnd, v.file_path as filePath,
@@ -200,6 +204,10 @@
delete from prc_label_weight_band where version_id = #{versionId}
</delete>
<delete id="deleteWeightBandById">
delete from prc_label_weight_band where band_id = #{bandId}
</delete>
<select id="selectWeightBandsByVersion" resultType="com.bms.price.domain.LblWeightBand">
select band_id as bandId, product_id as productId, version_id as versionId, fee_type as feeType,
country_name as countryName, country_code as countryCode, zone_code as zoneCode, zone_name as zoneName,
@@ -251,6 +259,10 @@
delete from prc_label_surcharge where version_id = #{versionId}
</delete>
<delete id="deleteSurchargeById">
delete from prc_label_surcharge where surcharge_id = #{surchargeId}
</delete>
<select id="selectSurchargesByVersion" resultType="com.bms.price.domain.LblSurcharge">
select surcharge_id as surchargeId, product_id as productId, version_id as versionId, fee_name as feeName, sc_id as scId,
zone_code as zoneCode, zone_name as zoneName, charge_text as chargeText, amount, currency, price_unit as priceUnit,