| | |
| | | private FileParamService paramService; |
| | | |
| | | |
| | | @ApiOperation(value = "解析xml文件") |
| | | @ApiOperation(value = "解析xml文件(传参一个文件)") |
| | | @GetMapping("getXmlValue") |
| | | public Response getXmlValue(@RequestParam String filePath){ |
| | | return paramService.getXmlValue(filePath); |
| | | } |
| | | |
| | | @ApiOperation(value = "解析xml文件(传参一个文件夹)") |
| | | @GetMapping("getXmlValueByPath") |
| | | public Response getXmlValueByPath(@RequestParam String filePath){ |
| | | return paramService.getXmlValueByPath(filePath); |
| | | } |
| | | |
| | | @ApiOperation("通过修改属性窗口值来修改文件值(传参对象)") |
| | |
| | | public Response updateXmlByFileParam(@RequestBody FileParam fileParam,@RequestParam String filePath){ |
| | | return paramService.updateXmlByFileParam(fileParam,filePath); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("通过修改属性窗口值来修改文件值(json)") |
| | | @PostMapping("updateXmlByParamMap") |
| | |
| | | } |
| | | return paramService.updateXmlByParamMap(map,filePath); |
| | | } |
| | | |
| | | @ApiOperation("根据fileId通过修改属性窗口值来修改数据库属性") |
| | | @PostMapping("updateFileParamByFileId") |
| | | public Response updateFileParamByFileId(@RequestBody FileParam fileParam,@RequestParam String fileId){ |
| | | return paramService.updateFileParamByFileId(fileParam,fileId); |
| | | } |
| | | |
| | | @ApiOperation("更改台站下公用参数") |
| | | @PostMapping("updateFileParamByStationId") |
| | | public Response updateFileParamByStationId(@RequestBody FileParam fileParam,@RequestParam int stationId){ |
| | | return paramService.updateFileParamByStationId(fileParam,stationId); |
| | | } |
| | | |
| | | @ApiOperation("对比时下拉选择站点下挂在的文件信息") |
| | | @GetMapping("selectFileInStation") |
| | | public Response selectFileInStation(){ |
| | | return service.selectFileInStation(); |
| | | } |
| | | |
| | | } |