| | |
| | | package com.yssh.controller; |
| | | |
| | | import com.yssh.entity.MonitorPointPosition; |
| | | import com.yssh.service.ICommonService; |
| | | import com.yssh.utils.StringUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | |
| | | import com.yssh.service.ISuYuanService; |
| | | import com.yssh.utils.Result; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * @author lishijia |
| | | * @ClassName Yssh2dreliController |
| | |
| | | @RequestMapping("/suYuan") |
| | | @SuppressWarnings("rawtypes") |
| | | public class SuYuanController { |
| | | @Resource |
| | | private ICommonService commonService; |
| | | |
| | | @Autowired |
| | | private ISuYuanService suYuanService; |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "更新Vocs名称", notes = "更新Vocs名称") |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperationSupport(order = 8) |
| | | @GetMapping("/updateVocsName") |
| | | public Result updateVocsName(@RequestParam(value = "date", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date, |
| | | @RequestParam(value = "id", required = true) String id, |
| | |
| | | ) { |
| | | return Result.OK(suYuanService.updateVocsName(date, id, vocsName)); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据名称获取坐标值", notes = "根据名称获取坐标值") |
| | | @ApiOperationSupport(order = 9) |
| | | @GetMapping("/getCoordByName/{name}") |
| | | public Result getCoordByName(@PathVariable("name") String name) { |
| | | MonitorPointPosition point = StringUtils.isEmpty(name) ? null : commonService.select3dCheckPointByName(name); |
| | | |
| | | return Result.OK(point); |
| | | } |
| | | } |