| | |
| | | */ |
| | | private Logger logger = LoggerFactory.getLogger(getClass()); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取所有业务类型(树形结构) |
| | | * 获取所有属性(树形结构) |
| | | * @return 查询结果 |
| | | */ |
| | | @GetMapping( "/getTreeAttributes") |
| | |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 属性列表 |
| | |
| | | /** |
| | | * 添加单条属性到属性池 |
| | | * @param osAttributeDTO |
| | | * @return 列表的内容 |
| | | * @return |
| | | */ |
| | | @PostMapping( "/addAttribute") |
| | | @VciBusinessLog(operateName = "添加属性") |
| | |
| | | String excelPath = attributeService.exportAttributes(exportFileName,attrNames,false); |
| | | ControllerUtil.writeFileToResponse(response,excelPath); |
| | | } catch (Exception e) { |
| | | String msg = "导出枚举时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | String msg = "导出属性时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | try { |
| | | //出错时 |
| | | e.printStackTrace(); |