| | |
| | | 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; |
| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.File; |
| | | |
| | | @Api(tags = "内涝管理") |
| | | //@Api(tags = "08-内涝管理") |
| | | @Slf4j |
| | | @RestController |
| | | //@RestController |
| | | @SuppressWarnings("ALL") |
| | | @RequestMapping("/waterlogging") |
| | | //@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; |
| | | } |