diff --git a/pom.xml b/pom.xml
index 8ac8955..ee44e77 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,7 +11,7 @@
com.imyeyu.timiserverapi
TimiServerAPI
- 1.0.42
+ 1.0.43
jar
TimiServerAPI
imyeyu.com API
diff --git a/src/main/java/com/imyeyu/api/modules/gao/service/GaoProductSkuService.java b/src/main/java/com/imyeyu/api/modules/gao/service/GaoProductSkuService.java
index c8de44d..aaacd35 100644
--- a/src/main/java/com/imyeyu/api/modules/gao/service/GaoProductSkuService.java
+++ b/src/main/java/com/imyeyu/api/modules/gao/service/GaoProductSkuService.java
@@ -33,6 +33,14 @@ public interface GaoProductSkuService extends BaseService
/// 查询并校验可销售 SKU 单位
GaoProductSkuUnitSelection getSellableSkuUnit(String storeId, String skuId, String skuUnitId);
+ /// 查询并校验可用于历史订单履约的 SKU 单位
+ ///
+ /// @param storeId 门店 ID
+ /// @param skuId SKU ID
+ /// @param skuUnitId SKU 单位 ID
+ /// @return SKU 单位选择结果
+ GaoProductSkuUnitSelection getFulfillableSkuUnit(String storeId, String skuId, String skuUnitId);
+
/// 查询并校验 SKU 单位
GaoProductSkuUnitSelection getSkuUnit(String storeId, String skuId, String skuUnitId, boolean purchase);
diff --git a/src/main/java/com/imyeyu/api/modules/gao/service/implement/GaoOrderFulfillmentServiceImplement.java b/src/main/java/com/imyeyu/api/modules/gao/service/implement/GaoOrderFulfillmentServiceImplement.java
index effca17..07d5cba 100644
--- a/src/main/java/com/imyeyu/api/modules/gao/service/implement/GaoOrderFulfillmentServiceImplement.java
+++ b/src/main/java/com/imyeyu/api/modules/gao/service/implement/GaoOrderFulfillmentServiceImplement.java
@@ -450,12 +450,32 @@ public class GaoOrderFulfillmentServiceImplement extends AbstractEntityService loadPersistedSources(GaoSalesOrder order, List itemList) {
TimiException.requiredTrue(itemList != null && !itemList.isEmpty(), "履约单没有明细");
List sortedItemList = new ArrayList<>(itemList);
diff --git a/src/main/java/com/imyeyu/api/modules/gao/service/implement/GaoProductSkuServiceImplement.java b/src/main/java/com/imyeyu/api/modules/gao/service/implement/GaoProductSkuServiceImplement.java
index 8e85d17..965575f 100644
--- a/src/main/java/com/imyeyu/api/modules/gao/service/implement/GaoProductSkuServiceImplement.java
+++ b/src/main/java/com/imyeyu/api/modules/gao/service/implement/GaoProductSkuServiceImplement.java
@@ -109,6 +109,22 @@ public class GaoProductSkuServiceImplement extends AbstractEntityService retainedIdSet.contains(existing.getId())),
+ "已保存的 SKU 单位不能删除,请关闭允许销售和允许采购");
}
private void saveSpecValues(String skuId, List specValueIdList) {