From 19a6fc79a2396be5cdd0ee60e9fb017b2124e720 Mon Sep 17 00:00:00 2001 From: plimlips <156839224@qq.com> Date: Sun, 20 Nov 2022 12:05:18 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B0=83=E7=94=A8=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E5=8F=82=E6=95=B0=E9=A1=BA=E5=BA=8F=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: plimlips <156839224@qq.com> --- .../yudao/module/trade/service/order/TradeOrderServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/service/order/TradeOrderServiceImpl.java b/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/service/order/TradeOrderServiceImpl.java index 95df76afe..ac38f3cbf 100644 --- a/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/service/order/TradeOrderServiceImpl.java +++ b/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/service/order/TradeOrderServiceImpl.java @@ -156,7 +156,7 @@ public class TradeOrderServiceImpl implements TradeOrderService { * @return 收件地址 */ private AddressRespDTO validateAddress(Long userId, Long addressId) { - AddressRespDTO address = addressApi.getAddress(userId, addressId); + AddressRespDTO address = addressApi.getAddress(addressId, userId); if (Objects.isNull(address)) { throw exception(ErrorCodeConstants.ORDER_CREATE_ADDRESS_NOT_FOUND); } From 453669c7d924cac3c8d858b32ff41bb2d2eb872f Mon Sep 17 00:00:00 2001 From: plimlips <156839224@qq.com> Date: Sun, 20 Nov 2022 14:18:13 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=97=B6,=E8=AE=A2=E5=8D=95Id=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E4=BD=BF=E7=94=A8=E4=BA=86address=20Id=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: plimlips <156839224@qq.com> --- .../yudao/module/trade/convert/order/TradeOrderConvert.java | 1 + 1 file changed, 1 insertion(+) diff --git a/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/convert/order/TradeOrderConvert.java b/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/convert/order/TradeOrderConvert.java index 54abc9698..d47dc76a1 100644 --- a/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/convert/order/TradeOrderConvert.java +++ b/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/convert/order/TradeOrderConvert.java @@ -30,6 +30,7 @@ public interface TradeOrderConvert { TradeOrderConvert INSTANCE = Mappers.getMapper(TradeOrderConvert.class); @Mappings({ + @Mapping(target = "id", ignore = true), @Mapping(source = "createReqVO.couponId", target = "couponId"), @Mapping(target = "remark", ignore = true), @Mapping(source = "createReqVO.remark", target = "userRemark"),