This commit is contained in:
2023-03-29 08:21:12 +08:00
parent 358ece2923
commit d2e54dbb92
3 changed files with 11 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.text.ParseException;
/**
* 远程控制controller
@@ -59,7 +59,12 @@ public class PileRemoteController {
// pileRemoteService.remoteStartCharging(queryPileDTO.getPileSn(), queryPileDTO.getConnectorCode());
// 生成订单并远程启动充电
dto.setStartMode(Constants.ZERO);
String orderCode = orderService.generateOrder(dto);
String orderCode = null;
try {
orderCode = orderService.generateOrder(dto);
} catch (Exception e) {
e.printStackTrace();
}
return AjaxResult.success(ImmutableMap.of("orderCode", orderCode));
}