| | |
| | | package com.ruoyi.order; |
| | | |
| | | import com.ruoyi.order.service.order.OrderService; |
| | | import org.junit.runner.RunWith; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * @ClassName orderTest |
| | | * @Description TODO |
| | | * @Author jqs |
| | | * @Date 2023/8/18 11:12 |
| | | * @Version 1.0 |
| | | */ |
| | | @RunWith(SpringJUnit4ClassRunner.class) |
| | | @SpringBootTest(classes = RuoYiOrderApplication.class) |
| | | public class orderTest { |
| | | |
| | | |
| | | @Resource |
| | | private OrderService orderService; |
| | | |
| | | /*@Test |
| | | public void main() { |
| | | |
| | | AppPlaceOrderVo appPlaceOrderVo = new AppPlaceOrderVo(); |
| | | |
| | | orderService.createWxPayInfo( appPlaceOrderVo, 280L, 50L, |
| | | "测试支付商品", "SC202308160046", |
| | | "0fa36ad3edcc40bebc2795cc505b5272", new BigDecimal("0.1"), |
| | | "oL-gp5GG6-KRVSIAE_qYLMULPFjw", "127.0.0.1", Arrays.asList("测试支付商品")); |
| | | System.out.println(appPlaceOrderVo.toString()); |
| | | }*/ |
| | | |
| | | |
| | | } |
| | | //package com.ruoyi.order; |
| | | // |
| | | //import com.ruoyi.order.domain.dto.MerVerifyOrderDto; |
| | | //import com.ruoyi.order.domain.vo.MerVerifyOrderVo; |
| | | //import com.ruoyi.order.service.order.OrderService; |
| | | //import com.ruoyi.system.api.domain.dto.MgtBaseShopDto; |
| | | //import org.junit.Test; |
| | | //import org.junit.runner.RunWith; |
| | | //import org.springframework.boot.test.context.SpringBootTest; |
| | | //import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
| | | // |
| | | //import javax.annotation.Resource; |
| | | //import java.math.BigDecimal; |
| | | // |
| | | ///** |
| | | // * @ClassName orderTest |
| | | // * @Description TODO |
| | | // * @Author jqs |
| | | // * @Date 2023/8/18 11:12 |
| | | // * @Version 1.0 |
| | | // */ |
| | | //@RunWith(SpringJUnit4ClassRunner.class) |
| | | //@SpringBootTest(classes = RuoYiOrderApplication.class) |
| | | //public class orderTest { |
| | | // |
| | | // |
| | | // @Resource |
| | | // private OrderService orderService; |
| | | // |
| | | // @Test |
| | | // public void main() { |
| | | // MerVerifyOrderDto merVerifyOrderDto = new MerVerifyOrderDto(); |
| | | // merVerifyOrderDto.setOrderId("ca505a758e0743af83a34a17481a093f"); |
| | | // merVerifyOrderDto.setShopId(52L); |
| | | // merVerifyOrderDto.setRelReceiveMoney(new BigDecimal(0.100000000001)); |
| | | // merVerifyOrderDto.setRelPayMoney(new BigDecimal(0)); |
| | | // merVerifyOrderDto.setUserId(164L); |
| | | // MerVerifyOrderVo merVerifyOrderVo = orderService.sureVerifyOrder(merVerifyOrderDto); |
| | | // |
| | | // } |
| | | // |
| | | // |
| | | //} |