| | |
| | | import com.se.nsl.domain.vo.R; |
| | | import com.se.nsl.helper.StringHelper; |
| | | import com.se.nsl.helper.WebHelper; |
| | | import com.se.nsl.service.SimuService; |
| | | import com.se.nsl.service.SimuPoService; |
| | | import com.se.nsl.service.WaterService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | @RequestMapping("/waterlogging") |
| | | public class WaterController extends BaseController { |
| | | @Resource |
| | | SimuService simuService; |
| | | SimuPoService simuPoService; |
| | | |
| | | @Resource |
| | | WaterService waterService; |
| | |
| | | @GetMapping("/{serviceName}/getWaterHeight") |
| | | public R<Object> getWaterHeight(@PathVariable String serviceName, double x, double y, long timestamp, HttpServletResponse res) { |
| | | try { |
| | | SimuPo simu = simuService.getSimuByServiceName(serviceName); |
| | | SimuPo simu = simuPoService.getSimuByServiceName(serviceName); |
| | | if (null == simu) { |
| | | return null; |
| | | } |