1
0
mirror of synced 2025-12-20 23:58:05 +08:00

🎨 修复客户端在使用Request对象时由lombok注解引发的错误

This commit is contained in:
liming1019
2021-08-23 22:18:25 +08:00
committed by GitHub
parent 226c2af5a1
commit b65783bd72
9 changed files with 51 additions and 14 deletions

View File

@@ -29,19 +29,19 @@ public class WxMaShopAfterSaleServiceImplTest {
@Test
public void testAdd() throws WxErrorException {
WxMaShopAfterSaleAddRequest.ProductInfosBean productInfosBean = WxMaShopAfterSaleAddRequest.ProductInfosBean.builder()
.outProductId("234245")
.outSkuId("23424")
.productCnt(5)
.outProductId("19030")
.outSkuId("123266")
.productCnt(1)
.build();
WxMaShopAfterSaleAddRequest request = WxMaShopAfterSaleAddRequest.builder()
.outOrderId("xxxxx")
.outAftersaleId("xxxxxx")
.openid("oTVP50O53a7jgmawAmxKukNlq3XI")
.outOrderId("318070290792415232X")
.outAftersaleId("318092069606883328X")
.openid("odIi15CuQ0IQviqsnUMy6CKNetrMX")
.type(1)
.createTime("2020-12-01 00:00:00")
.createTime("2021-08-20 00:00:00")
.status(1)
.finishAllAftersale(0)
.path("/pages/aftersale.html?out_aftersale_id=xxxxx")
.path("/pages/aftersale.html?out_aftersale_id=318092069606883328X")
.refund(100L)
.productInfos(new ArrayList<>(Arrays.asList(productInfosBean)))
.build();

View File

@@ -34,14 +34,13 @@ public class WxMaShopDeliveryServiceImplTest {
@Test
public void testSend() throws WxErrorException {
WxMaShopDeliverySendRequest.DeliveryListBean deliveryListBean = WxMaShopDeliverySendRequest.DeliveryListBean.builder()
.deliveryId("SF")
.waybillId("23424324253")
.deliveryId("ZTO")
.waybillId("73164691843558")
.build();
WxMaShopDeliverySendRequest request = WxMaShopDeliverySendRequest.builder()
.orderId(123456L)
.outOrderId("xxxxx")
.openid("oTVP50O53a7jgmawAmxKukNlq3XI")
.finishAllDelivery(0)
.outOrderId("318070290792415232")
.openid("odIi15CuQ0IQviqsnUMy6CKNetrM")
.finishAllDelivery(1)
.deliveryList(new ArrayList<>(Arrays.asList(deliveryListBean)))
.build();
WxMaShopBaseResponse response = wxService.getShopDeliveryService().send(request);