根据fileId通过修改属性窗口值来修改数据库属性fileInfo/updateFileParamByFileId
| | |
| | | return paramService.updateXmlByFileParam(fileParam,filePath); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("通过修改属性窗口值来修改文件值(json)") |
| | | @PostMapping("updateXmlByParamMap") |
| | | public Response updateXmlByParamMap(@RequestBody JSONObject paramJson, @RequestParam String filePath){ |
| | |
| | | return paramService.updateXmlByParamMap(map,filePath); |
| | | } |
| | | |
| | | @ApiOperation("根据fileId通过修改属性窗口值来修改数据库属性") |
| | | @PostMapping("updateFileParamByFileId") |
| | | public Response updateFileParamByFileId(@RequestBody FileParam fileParam,@RequestParam String fileId){ |
| | | return paramService.updateFileParamByFileId(fileParam,fileId); |
| | | } |
| | | |
| | | @ApiOperation("对比时下拉选择站点下挂在的文件信息") |
| | | @GetMapping("selectFileInStation") |
| | | public Response selectFileInStation(){ |
| | |
| | | //修改文件对应的数据库数据 |
| | | void updateParamByFileUrl(@Param("fileParam") FileParam fileParam, @Param("filePath") String filePath); |
| | | //修改参数信息 |
| | | void updateParam(@Param("fileParam") FileParam fileParam, @Param("fileId") String fileId); |
| | | int updateParam(@Param("fileParam") FileParam fileParam, @Param("fileId") String fileId); |
| | | } |
| | |
| | | if(map.size()>0){ |
| | | bl=XmlFileOpreate.writeXml(map,filePath); |
| | | } |
| | | |
| | | return new Response().setII(1,bl,map,"修改文件"); |
| | | } |
| | | //修改文件对应的数据库数据 |
| | |
| | | FileParam fileParam=mapper.selectOne(wrapper); |
| | | return new Response().setII(1,fileParam!=null,fileParam,"返回数据"); |
| | | } |
| | | |
| | | //根据fileId通过修改属性窗口值来修改数据库属性 |
| | | public Response updateFileParamByFileId(FileParam fileParam, String fileId) { |
| | | int flag=paramMapper.updateParam(fileParam,fileId); |
| | | return new Response().set(1,flag>0,"修改数据"); |
| | | } |
| | | } |