| | |
| | | import com.se.simu.service.SimuService; |
| | | import com.se.simu.service.UwService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "testCallExe *") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query", example = "20241010095328") |
| | | }) |
| | | @GetMapping("/testCallExe") |
| | | public R<Object> testCallExe() { |
| | | public R<Object> testCallExe(String path) { |
| | | try { |
| | | DataPo data = new DataPo(); |
| | | data.setInPath("20241010095328"); |
| | | data.setInPath(path); |
| | | |
| | | String str = uwService.callExe(data); |
| | | |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "testResuslt *") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query", example = "20241010095328") |
| | | }) |
| | | @GetMapping("/testResuslt") |
| | | public R<Object> testResuslt() { |
| | | public R<Object> testResuslt(String path) { |
| | | try { |
| | | DataPo data = new DataPo(); |
| | | data.setEpsg(4548); |
| | | data.setInPath("20241010095328"); |
| | | data.setInPath(path); |
| | | data.setStartTime(StringHelper.YMDHMS_FORMAT.parse("2024-09-30 00:00:00")); |
| | | |
| | | resultService.process(data); |