mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
update 预约启动
This commit is contained in:
@@ -262,6 +262,37 @@ public class SpringBootTestController {
|
||||
@Autowired
|
||||
private NotificationService notificationService;
|
||||
|
||||
@Autowired
|
||||
private PileReservationInfoService pileReservationInfoService;
|
||||
|
||||
@Test
|
||||
public void activateReservedTest() {
|
||||
PileReservationDTO dto = new PileReservationDTO();
|
||||
dto.setReservedId("15");
|
||||
dto.setMemberId("25950857");
|
||||
// 启用
|
||||
pileReservationInfoService.activateReserved(dto);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void payOrderV2Test() {
|
||||
String s = "{\n" +
|
||||
" \"alipayAppId\": \"2021004145642756\",\n" +
|
||||
" \"code\": \"10bb693b0f2346dcb9b70d92322dNC91\",\n" +
|
||||
" \"goodsDesc\": \"充电桩预付款金额\",\n" +
|
||||
" \"goodsTitle\": \"充电费用\",\n" +
|
||||
" \"lockValue\": \"f0f6a356-a720-49d1-ad21-bb685af91703\",\n" +
|
||||
" \"memberId\": \"65622699\",\n" +
|
||||
" \"orderCode\": \"C84239627240\",\n" +
|
||||
" \"payAmount\": 50,\n" +
|
||||
" \"payMode\": \"5\",\n" +
|
||||
" \"requestSource\": \"alipay_lite\",\n" +
|
||||
" \"type\": \"order\"\n" +
|
||||
"}";
|
||||
PayOrderDTO dto = JSON.parseObject(s, PayOrderDTO.class);
|
||||
orderService.payOrderV2(dto);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryPaymentReverseTest2() {
|
||||
String paymentId = "002212024061717243610648707836701741056";
|
||||
|
||||
Reference in New Issue
Block a user