From 181975a3f258e35360c5967f6272ded9a979213d Mon Sep 17 00:00:00 2001 From: wangchaoxu Date: Sun, 3 Sep 2023 14:51:19 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SearchChooseSourceProductListService.java | 23 ++++++++++++++++++- .../SearchDsSourceSellerListService.java | 1 + 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/ms-biz/src/main/java/com/ms/api/spi/order/SearchChooseSourceProductListService.java b/ms-biz/src/main/java/com/ms/api/spi/order/SearchChooseSourceProductListService.java index 9dfaf025..82afd784 100644 --- a/ms-biz/src/main/java/com/ms/api/spi/order/SearchChooseSourceProductListService.java +++ b/ms-biz/src/main/java/com/ms/api/spi/order/SearchChooseSourceProductListService.java @@ -68,7 +68,28 @@ public class SearchChooseSourceProductListService extends SPIBaseService impleme ret.put("total", productToDsItemPager.getTotal()); ret.put("page", productToDsItemPager.getPage()); ret.put("pageSize", productToDsItemPager.getPageSize()); - +if (productToDsItemPager.getTotal()==0) { + ret = new HashMap(); + List list = new ArrayList<>(); + ChooseSourceProductDTO dto1 = new ChooseSourceProductDTO(); + ChooseSourceProductDTO dto2 = new ChooseSourceProductDTO(); + dto1.setName("开发商品名字11111"); + dto1.setProductId("911111111"); + dto1.setPrice(99.99); + dto1.setStatus(0L); + dto1.setImg("https://cbu01.alicdn.com/img/ibank/O1CN01XQ4vkl1V78Qnhpvxl_!!939772605-0-cib.jpg"); + dto1.setName("开发商品名字2"); + dto1.setProductId("9222222"); + dto1.setPrice(81.0); + dto1.setStatus(0L); + dto1.setImg("https://cbu01.alicdn.com/img/ibank/O1CN01XQ4vkl1V78Qnhpvxl_!!939772605-0-cib.jpg"); + list.add(dto1); + list.add(dto2); + ret.put("productList", list); + ret.put("total", 2); + ret.put("page", productToDsItemPager.getPage()); + ret.put("pageSize", productToDsItemPager.getPageSize()); +} return R.ok(Ret.success(ret)); } } diff --git a/ms-biz/src/main/java/com/ms/api/spi/order/SearchDsSourceSellerListService.java b/ms-biz/src/main/java/com/ms/api/spi/order/SearchDsSourceSellerListService.java index bb3d7b16..9b77a41c 100644 --- a/ms-biz/src/main/java/com/ms/api/spi/order/SearchDsSourceSellerListService.java +++ b/ms-biz/src/main/java/com/ms/api/spi/order/SearchDsSourceSellerListService.java @@ -59,6 +59,7 @@ if (sourceSellersObject.size() == 0) { b.put("sellerName", "开发人员的店2"); b.put("sellerIdMd5", "2234567890qwertyuio"); b.put("isEncryptLogisticsOrderSupportDouyin", 0); + sourceSellerList.add(a); sourceSellerList.add(b); } JSONObject retObj = new JSONObject(); From 688aabcc6420bfeddd94a16d2d5d618724f3360c Mon Sep 17 00:00:00 2001 From: wangchaoxu Date: Sun, 3 Sep 2023 14:52:27 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spi/order/SearchChooseSourceProductListService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ms-biz/src/main/java/com/ms/api/spi/order/SearchChooseSourceProductListService.java b/ms-biz/src/main/java/com/ms/api/spi/order/SearchChooseSourceProductListService.java index 82afd784..1b7328ea 100644 --- a/ms-biz/src/main/java/com/ms/api/spi/order/SearchChooseSourceProductListService.java +++ b/ms-biz/src/main/java/com/ms/api/spi/order/SearchChooseSourceProductListService.java @@ -79,10 +79,10 @@ if (productToDsItemPager.getTotal()==0) { dto1.setStatus(0L); dto1.setImg("https://cbu01.alicdn.com/img/ibank/O1CN01XQ4vkl1V78Qnhpvxl_!!939772605-0-cib.jpg"); dto1.setName("开发商品名字2"); - dto1.setProductId("9222222"); - dto1.setPrice(81.0); - dto1.setStatus(0L); - dto1.setImg("https://cbu01.alicdn.com/img/ibank/O1CN01XQ4vkl1V78Qnhpvxl_!!939772605-0-cib.jpg"); + dto2.setProductId("9222222"); + dto2.setPrice(81.0); + dto2.setStatus(0L); + dto2.setImg("https://cbu01.alicdn.com/img/ibank/O1CN01XQ4vkl1V78Qnhpvxl_!!939772605-0-cib.jpg"); list.add(dto1); list.add(dto2); ret.put("productList", list); From 5b7143847a32b880696d4a74a186e5af25a9af90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?cxxxxxxx=E8=AF=A6?= <286460656@qq.com> Date: Sun, 3 Sep 2023 15:11:04 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E9=93=BA=E8=B4=A7=E5=8D=95=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../move/AddMoveProductItemRequestDTO.java | 14 ++++ .../move/DeleteMoveProductItemRequestDTO.java | 13 ++++ .../move/SearchMoveProductItemRequestDTO.java | 8 +++ .../service/MicroMoveProductItemService.java | 9 +++ .../impl/MicroMoveProductItemServiceImpl.java | 26 ++++++++ .../api/spi/callback/MemberAuthCallback.java | 2 +- .../spi/move/AddMoveProductItemService.java | 66 ++++++++++++++++++- .../spi/move/DeleteProductItemService.java | 35 +++++++++- .../move/GetMoveProductItemCountService.java | 39 +++++++++++ .../move/GetMoveProductItemListService.java | 46 +++++++++++++ .../move/getMoceProductItemCountService.java | 4 -- .../spi/move/getMoveProductItemService.java | 4 -- .../mapper/MicroMoveProductItemMapper.java | 8 +++ .../mapper/MicroMoveProductItemMapper.xml | 21 ++++++ 14 files changed, 284 insertions(+), 11 deletions(-) create mode 100644 ms-api/src/main/java/com/ms/api/dto/move/AddMoveProductItemRequestDTO.java create mode 100644 ms-api/src/main/java/com/ms/api/dto/move/DeleteMoveProductItemRequestDTO.java create mode 100644 ms-api/src/main/java/com/ms/api/dto/move/SearchMoveProductItemRequestDTO.java create mode 100644 ms-biz/src/main/java/com/ms/api/spi/move/GetMoveProductItemCountService.java create mode 100644 ms-biz/src/main/java/com/ms/api/spi/move/GetMoveProductItemListService.java delete mode 100644 ms-biz/src/main/java/com/ms/api/spi/move/getMoceProductItemCountService.java delete mode 100644 ms-biz/src/main/java/com/ms/api/spi/move/getMoveProductItemService.java diff --git a/ms-api/src/main/java/com/ms/api/dto/move/AddMoveProductItemRequestDTO.java b/ms-api/src/main/java/com/ms/api/dto/move/AddMoveProductItemRequestDTO.java new file mode 100644 index 00000000..b6a96d78 --- /dev/null +++ b/ms-api/src/main/java/com/ms/api/dto/move/AddMoveProductItemRequestDTO.java @@ -0,0 +1,14 @@ +package com.ms.api.dto.move; + +import lombok.Data; + +/* + * 获取添加铺货单参数 + */ +@Data +public class AddMoveProductItemRequestDTO { + /** + * 商品ID + */ + private String productId; +} diff --git a/ms-api/src/main/java/com/ms/api/dto/move/DeleteMoveProductItemRequestDTO.java b/ms-api/src/main/java/com/ms/api/dto/move/DeleteMoveProductItemRequestDTO.java new file mode 100644 index 00000000..1c8e9022 --- /dev/null +++ b/ms-api/src/main/java/com/ms/api/dto/move/DeleteMoveProductItemRequestDTO.java @@ -0,0 +1,13 @@ +package com.ms.api.dto.move; +import lombok.Data; + +/* + * 删除铺货单参数 + */ +@Data +public class DeleteMoveProductItemRequestDTO { + /** + * 主键ID + */ + private String id; +} diff --git a/ms-api/src/main/java/com/ms/api/dto/move/SearchMoveProductItemRequestDTO.java b/ms-api/src/main/java/com/ms/api/dto/move/SearchMoveProductItemRequestDTO.java new file mode 100644 index 00000000..8b384836 --- /dev/null +++ b/ms-api/src/main/java/com/ms/api/dto/move/SearchMoveProductItemRequestDTO.java @@ -0,0 +1,8 @@ +package com.ms.api.dto.move; + +import com.ms.api.common.PageOption; +import lombok.Data; +@Data +public class SearchMoveProductItemRequestDTO extends PageOption { + private Long shopId; +} diff --git a/ms-biz/src/main/java/com/ms/api/service/MicroMoveProductItemService.java b/ms-biz/src/main/java/com/ms/api/service/MicroMoveProductItemService.java index bfff48b0..8f709d71 100644 --- a/ms-biz/src/main/java/com/ms/api/service/MicroMoveProductItemService.java +++ b/ms-biz/src/main/java/com/ms/api/service/MicroMoveProductItemService.java @@ -1,6 +1,9 @@ package com.ms.api.service; +import com.ms.api.common.Pager; +import com.ms.api.dto.move.SearchMoveProductItemRequestDTO; import com.ms.dal.entity.MicroMoveProductItem; +import com.ms.dal.entity.ProductToDsItem; /** * @@ -18,4 +21,10 @@ public interface MicroMoveProductItemService { int updateByPrimaryKeySelective(MicroMoveProductItem record); int updateByPrimaryKey(MicroMoveProductItem record); + + MicroMoveProductItem getDetailByShopId(Long shopId); + + Pager getMoveProductItemList(SearchMoveProductItemRequestDTO condition); + + int getMoveProductItemCount(Long shopId); } diff --git a/ms-biz/src/main/java/com/ms/api/service/impl/MicroMoveProductItemServiceImpl.java b/ms-biz/src/main/java/com/ms/api/service/impl/MicroMoveProductItemServiceImpl.java index b6e7650e..1db76d63 100644 --- a/ms-biz/src/main/java/com/ms/api/service/impl/MicroMoveProductItemServiceImpl.java +++ b/ms-biz/src/main/java/com/ms/api/service/impl/MicroMoveProductItemServiceImpl.java @@ -1,11 +1,15 @@ package com.ms.api.service.impl; +import com.ms.api.common.Pager; +import com.ms.api.dto.move.SearchMoveProductItemRequestDTO; import com.ms.api.service.MicroMoveProductItemService; import com.ms.dal.entity.MicroMoveProductItem; import com.ms.dal.mapper.MicroMoveProductItemMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import java.util.List; + /** * @@ -46,6 +50,28 @@ public class MicroMoveProductItemServiceImpl implements MicroMoveProductItemServ return microMoveProductItemMapper.updateByPrimaryKey(record); } + @Override + public MicroMoveProductItem getDetailByShopId(Long shopId) { + return microMoveProductItemMapper.getDetailByShopId(shopId); + } + + @Override + public Pager getMoveProductItemList(SearchMoveProductItemRequestDTO condition) { + List list = microMoveProductItemMapper.getMoveProductItemList(condition.getShopId(), condition.getPageStart(), condition.getPageSize()); + Integer count = microMoveProductItemMapper.getMoveProductItemCount(condition.getShopId()); + Pager pager = new Pager<>(); + pager.setTotal(count); + pager.setData(list); + pager.setPage(condition.getPage()); + pager.setPageSize(condition.getPageSize()); + return pager; + } + + @Override + public int getMoveProductItemCount(Long shopId) { + return microMoveProductItemMapper.getMoveProductItemCount(shopId); + } + } diff --git a/ms-biz/src/main/java/com/ms/api/spi/callback/MemberAuthCallback.java b/ms-biz/src/main/java/com/ms/api/spi/callback/MemberAuthCallback.java index 9a9d1cf9..0d11d2ea 100644 --- a/ms-biz/src/main/java/com/ms/api/spi/callback/MemberAuthCallback.java +++ b/ms-biz/src/main/java/com/ms/api/spi/callback/MemberAuthCallback.java @@ -32,7 +32,7 @@ import java.util.Objects; /** * 获取授权1688授权回调地址 */ -@ExtensionService("memberAuthCallBack") +@ExtensionService("addMoveProdectItem") @Slf4j public class MemberAuthCallback extends SPIBaseService implements ExtensionServiceHandler { @Autowired diff --git a/ms-biz/src/main/java/com/ms/api/spi/move/AddMoveProductItemService.java b/ms-biz/src/main/java/com/ms/api/spi/move/AddMoveProductItemService.java index 485ac499..0cef051f 100644 --- a/ms-biz/src/main/java/com/ms/api/spi/move/AddMoveProductItemService.java +++ b/ms-biz/src/main/java/com/ms/api/spi/move/AddMoveProductItemService.java @@ -1,4 +1,68 @@ package com.ms.api.spi.move; -public class AddMoveProductItemService { +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.jinritemai.cloud.base.api.BaseRequest; +import com.jinritemai.cloud.base.api.BaseResponse; +import com.jinritemai.cloud.base.api.ExtensionService; +import com.jinritemai.cloud.base.api.ExtensionServiceHandler; +import com.ms.api.common.R; +import com.ms.api.common.Ret; +import com.ms.api.common.SPIBaseService; +import com.ms.api.dto.auth.MemberAuthCallBackRequestDTO; +import com.ms.api.dto.move.AddMoveProductItemRequestDTO; +import com.ms.api.service.MicroMoveProductItemService; +import com.ms.api.service.Shop1688DsAuthService; +import com.ms.api.tool.CommonTool; +import com.ms.api.tool.DsJsonRequestTemplate; +import com.ms.dal.entity.MicroMoveProductItem; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; + +import java.util.HashMap; + +/** + * 添加铺货单 + * + */ + +@ExtensionService("memberAuthCallBack") +@Slf4j +public class AddMoveProductItemService extends SPIBaseService implements ExtensionServiceHandler { + @Autowired + private MicroMoveProductItemService microMoveProductItemService; + @Autowired + private DsJsonRequestTemplate dsJsonRequestTemplate; + @Override + public BaseResponse handle(BaseRequest req) { + initHandle(req); + getAuthCode(); + + AddMoveProductItemRequestDTO fields = req.getData(); + MicroMoveProductItem microMoveProductItem = new MicroMoveProductItem(); + HashMap params = new HashMap<>(); + params.put("productId",fields.getProductId()); + params.put("authCode",authCode); + String res = null; + JSONObject resObj = null; + try { + res = dsJsonRequestTemplate.execute("/micro_move/get_product_info", params); + resObj = JSON.parseObject(res); + JSONObject productInfo = resObj.getJSONObject("productInfo"); + microMoveProductItem.setProductId(Long.valueOf(fields.getProductId())); + microMoveProductItem.setProductImgUrls(productInfo.getJSONArray("productImgUrls").toJSONString()); + microMoveProductItem.setSkuMap(productInfo.getJSONObject("skuMap").toJSONString()); + microMoveProductItem.setShopId(shopId); + microMoveProductItem.setTitle(productInfo.getString("title")); + microMoveProductItemService.insert(microMoveProductItem); + + log.info(res); + } catch (Exception e) { + e.printStackTrace(); + log.error(e.getMessage()); + } + + // ----结果返回---- + return R.ok(Ret.success()); + } } diff --git a/ms-biz/src/main/java/com/ms/api/spi/move/DeleteProductItemService.java b/ms-biz/src/main/java/com/ms/api/spi/move/DeleteProductItemService.java index 6a4d7c01..45b57d58 100644 --- a/ms-biz/src/main/java/com/ms/api/spi/move/DeleteProductItemService.java +++ b/ms-biz/src/main/java/com/ms/api/spi/move/DeleteProductItemService.java @@ -1,4 +1,37 @@ package com.ms.api.spi.move; -public class DeleteProductItemService { +import com.jinritemai.cloud.base.api.BaseRequest; +import com.jinritemai.cloud.base.api.BaseResponse; +import com.jinritemai.cloud.base.api.ExtensionService; +import com.jinritemai.cloud.base.api.ExtensionServiceHandler; +import com.ms.api.common.R; +import com.ms.api.common.Ret; +import com.ms.api.common.SPIBaseService; +import com.ms.api.dto.move.AddMoveProductItemRequestDTO; +import com.ms.api.dto.move.DeleteMoveProductItemRequestDTO; +import com.ms.api.service.MicroMoveProductItemService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; + +/** + * 删除铺货单 + * + */ +@ExtensionService("deleteProductItem") +@Slf4j +public class DeleteProductItemService extends SPIBaseService implements ExtensionServiceHandler { + @Autowired + private MicroMoveProductItemService microMoveProductItemService; + @Override + public BaseResponse handle(BaseRequest req) { + DeleteMoveProductItemRequestDTO fields = req.getData(); + int count = microMoveProductItemService.deleteByPrimaryKey(Long.valueOf(fields.getId())); + if (count > 0) { + // ----结果返回---- + return R.ok(Ret.success()); + } else { + // ----结果返回---- + return R.ok(Ret.fail("删除失败")); + } + } } diff --git a/ms-biz/src/main/java/com/ms/api/spi/move/GetMoveProductItemCountService.java b/ms-biz/src/main/java/com/ms/api/spi/move/GetMoveProductItemCountService.java new file mode 100644 index 00000000..82c5d59e --- /dev/null +++ b/ms-biz/src/main/java/com/ms/api/spi/move/GetMoveProductItemCountService.java @@ -0,0 +1,39 @@ +package com.ms.api.spi.move; + +import com.jinritemai.cloud.base.api.BaseRequest; +import com.jinritemai.cloud.base.api.BaseResponse; +import com.jinritemai.cloud.base.api.ExtensionService; +import com.jinritemai.cloud.base.api.ExtensionServiceHandler; +import com.ms.api.common.R; +import com.ms.api.common.Ret; +import com.ms.api.common.SPIBaseService; +import com.ms.api.dto.move.AddMoveProductItemRequestDTO; +import com.ms.api.dto.move.SearchMoveProductItemRequestDTO; +import com.ms.api.service.MicroMoveProductItemService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; + +import java.util.HashMap; +import java.util.Map; + +/** + * 获取铺货单数量 + */ + +@ExtensionService("getMoveProductItemCount") +@Slf4j +public class GetMoveProductItemCountService extends SPIBaseService implements ExtensionServiceHandler { + @Autowired + private MicroMoveProductItemService microMoveProductItemService; + @Override + public BaseResponse handle(BaseRequest req) { + initHandle(req); + + int count = microMoveProductItemService.getMoveProductItemCount(shopId); + + Map result = new HashMap<>(); + result.put("count", count); + // ----结果返回---- + return R.ok(Ret.success(result)); + } +} diff --git a/ms-biz/src/main/java/com/ms/api/spi/move/GetMoveProductItemListService.java b/ms-biz/src/main/java/com/ms/api/spi/move/GetMoveProductItemListService.java new file mode 100644 index 00000000..8424b959 --- /dev/null +++ b/ms-biz/src/main/java/com/ms/api/spi/move/GetMoveProductItemListService.java @@ -0,0 +1,46 @@ +package com.ms.api.spi.move; + +import com.jinritemai.cloud.base.api.BaseRequest; +import com.jinritemai.cloud.base.api.BaseResponse; +import com.jinritemai.cloud.base.api.ExtensionService; +import com.jinritemai.cloud.base.api.ExtensionServiceHandler; +import com.ms.api.common.Pager; +import com.ms.api.common.R; +import com.ms.api.common.Ret; +import com.ms.api.common.SPIBaseService; +import com.ms.api.dto.move.SearchMoveProductItemRequestDTO; +import com.ms.api.service.MicroMoveProductItemService; +import com.ms.dal.entity.MicroMoveProductItem; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; + +import java.util.HashMap; +import java.util.Map; + +/** + * 获取铺货单列表 + */ +@ExtensionService("getMoveProductItemList") +@Slf4j +public class GetMoveProductItemListService extends SPIBaseService implements ExtensionServiceHandler { + @Autowired + private MicroMoveProductItemService microMoveProductItemService; + public BaseResponse handle(BaseRequest req) { + SearchMoveProductItemRequestDTO requestDTO = req.getData(); + + // 查询出micro_move_product_item中的相关数据列表 + SearchMoveProductItemRequestDTO condition = new SearchMoveProductItemRequestDTO(); + condition.setShopId(shopId); + condition.setPage(requestDTO.getPage()); + condition.setPageSize(requestDTO.getPageSize()); + Pager productToDsItemPager = microMoveProductItemService.getMoveProductItemList(condition); + + Map result = new HashMap<>(); + result.put("list", productToDsItemPager.getData()); + result.put("total", productToDsItemPager.getTotal()); + result.put("page", productToDsItemPager.getPage()); + result.put("pageSize", productToDsItemPager.getPageSize()); + // ----结果返回---- + return R.ok(Ret.success(result)); + } +} diff --git a/ms-biz/src/main/java/com/ms/api/spi/move/getMoceProductItemCountService.java b/ms-biz/src/main/java/com/ms/api/spi/move/getMoceProductItemCountService.java deleted file mode 100644 index ff452feb..00000000 --- a/ms-biz/src/main/java/com/ms/api/spi/move/getMoceProductItemCountService.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.ms.api.spi.move; - -public class getMoceProductItemCountService { -} diff --git a/ms-biz/src/main/java/com/ms/api/spi/move/getMoveProductItemService.java b/ms-biz/src/main/java/com/ms/api/spi/move/getMoveProductItemService.java deleted file mode 100644 index d41e07ae..00000000 --- a/ms-biz/src/main/java/com/ms/api/spi/move/getMoveProductItemService.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.ms.api.spi.move; - -public class getMoveProductItemService { -} diff --git a/ms-dal/src/main/java/com/ms/dal/mapper/MicroMoveProductItemMapper.java b/ms-dal/src/main/java/com/ms/dal/mapper/MicroMoveProductItemMapper.java index d86593aa..29e0f0cb 100644 --- a/ms-dal/src/main/java/com/ms/dal/mapper/MicroMoveProductItemMapper.java +++ b/ms-dal/src/main/java/com/ms/dal/mapper/MicroMoveProductItemMapper.java @@ -3,6 +3,8 @@ package com.ms.dal.mapper; import com.ms.dal.entity.MicroMoveProductItem; import org.apache.ibatis.annotations.Mapper; +import java.util.List; + /** * @Entity com.ms.dal.entity.MicroMoveProductItem */ @@ -21,4 +23,10 @@ public interface MicroMoveProductItemMapper { int updateByPrimaryKey(MicroMoveProductItem record); + MicroMoveProductItem getDetailByShopId(Long shopId); + + List getMoveProductItemList(Long shopId, Integer page, Integer pageSize); + + Integer getMoveProductItemCount(Long shopId); + } diff --git a/ms-dal/src/main/resources/mapper/MicroMoveProductItemMapper.xml b/ms-dal/src/main/resources/mapper/MicroMoveProductItemMapper.xml index f28c4a73..d7870999 100644 --- a/ms-dal/src/main/resources/mapper/MicroMoveProductItemMapper.xml +++ b/ms-dal/src/main/resources/mapper/MicroMoveProductItemMapper.xml @@ -25,6 +25,13 @@ where distribution_order_id = #{distributionOrderId,jdbcType=BIGINT} + + delete from micro_move_product_item where distribution_order_id = #{distributionOrderId,jdbcType=BIGINT} @@ -88,4 +95,18 @@ sku_map = #{skuMap,jdbcType=VARCHAR} where distribution_order_id = #{distributionOrderId,jdbcType=BIGINT} + + +