优化计费重量规则,新增按收货重取重逻辑

This commit is contained in:
wuweihua
2026-11-17 17:00:03 +08:00
parent 8d45439931
commit 4f2954ebce
6 changed files with 130 additions and 8 deletions
@@ -0,0 +1,7 @@
-- USE_RECEIVE_WEIGHT: hit by product/country/customer/weight range, use receive/actual weight
SET NAMES utf8mb4;
INSERT INTO sys_dict_data (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark)
SELECT 3, N'取实重(收货重)', 'USE_RECEIVE_WEIGHT', 'bms_biz_rule_type', '', 'warning', 'N', '0', 'admin', sysdate(),
N'命中后按取值字段取重;实重优先 actual_weight,次收货重 receive_weight'
FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM sys_dict_data WHERE dict_type = 'bms_biz_rule_type' AND dict_value = 'USE_RECEIVE_WEIGHT');