|
@@ -10,6 +10,7 @@ import com.izouma.dingdong.repo.backstage.MerchantNatureRepo;
|
|
|
import com.izouma.dingdong.repo.merchant.MerchantRepo;
|
|
import com.izouma.dingdong.repo.merchant.MerchantRepo;
|
|
|
import com.izouma.dingdong.service.OrderInfoService;
|
|
import com.izouma.dingdong.service.OrderInfoService;
|
|
|
import com.izouma.dingdong.web.AuthenticationController;
|
|
import com.izouma.dingdong.web.AuthenticationController;
|
|
|
|
|
+import com.izouma.dingdong.web.OrderInfoController;
|
|
|
import com.izouma.dingdong.web.backstage.CategoryController;
|
|
import com.izouma.dingdong.web.backstage.CategoryController;
|
|
|
import com.izouma.dingdong.web.merchant.GoodsController;
|
|
import com.izouma.dingdong.web.merchant.GoodsController;
|
|
|
import com.izouma.dingdong.web.merchant.MerchantClassificationController;
|
|
import com.izouma.dingdong.web.merchant.MerchantClassificationController;
|
|
@@ -33,9 +34,9 @@ public class OrderInfoControllerTest {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private GoodsController goodsController;
|
|
private GoodsController goodsController;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
- private MerchantRepo merchantRepo;
|
|
|
|
|
|
|
+ private MerchantRepo merchantRepo;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
- private OrderInfoService orderInfoService;
|
|
|
|
|
|
|
+ private OrderInfoController orderInfoController;
|
|
|
|
|
|
|
|
//商家注册
|
|
//商家注册
|
|
|
@Test
|
|
@Test
|
|
@@ -101,26 +102,8 @@ public class OrderInfoControllerTest {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Test
|
|
@Test
|
|
|
- public void testMy(){
|
|
|
|
|
- System.out.println(orderInfoService.my(83L));
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @Test
|
|
|
|
|
- public void testBuy(){
|
|
|
|
|
- UserOrderDTO dto = UserOrderDTO.builder()
|
|
|
|
|
- .addressId(1889L)
|
|
|
|
|
- .payMethod(PayMethod.ALI_PAY)
|
|
|
|
|
- .shoppingCartId(1985L)
|
|
|
|
|
- //.remark("多加点!")
|
|
|
|
|
- //.userCouponId(217L)
|
|
|
|
|
- .build();
|
|
|
|
|
-
|
|
|
|
|
- System.out.println(orderInfoService.userOrder(dto).getId());
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @Test
|
|
|
|
|
- public void testMer(){
|
|
|
|
|
- orderInfoService.merReceiveOrder(1352L,true);
|
|
|
|
|
|
|
+ public void test(){
|
|
|
|
|
+ System.out.println(orderInfoController.get(2177L).getMUserId());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|