From daa5a6aa5efdab3460ef8af43f2bd4ca57d7280e Mon Sep 17 00:00:00 2001 From: Timi Date: Sat, 12 Sep 2026 01:23:47 +0800 Subject: [PATCH 1/2] fix off product sku for keep fulfillment --- .../gao/service/GaoProductSkuService.java | 8 +++++++ .../GaoOrderFulfillmentServiceImplement.java | 22 +++++++++++++++++- .../GaoProductSkuServiceImplement.java | 23 +++++++++++++++---- 3 files changed, 47 insertions(+), 6 deletions(-) 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) { From f0b72b70e70225599f02a8a7db1594051ec81596 Mon Sep 17 00:00:00 2001 From: Timi Date: Sat, 12 Sep 2026 01:24:03 +0800 Subject: [PATCH 2/2] v1.0.43 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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