| | |
| | | * @return 属性的显示对象 |
| | | */ |
| | | @GetMapping("/gridAttribute") |
| | | @VciUnCheckRight |
| | | @VciBusinessLog(operateName = "属性列表") |
| | | public BaseResult<OsAttributeVO> gridAttribute(BaseQueryObject baseQueryObject){ |
| | | try { |
| | | return BaseResult.dataGrid(attributeService.gridAttribute(baseQueryObject)); |
| | |
| | | */ |
| | | @PutMapping( "/updateAttribute") |
| | | @VciBusinessLog(operateName = "修改属性") |
| | | @VciUnCheckRight |
| | | public BaseResult updateAttribute(@RequestBody OsAttributeDTO osAttributeDTO) { |
| | | try { |
| | | return attributeService.updateAttribute(osAttributeDTO) ? BaseResult.success("属性修改成功!"):BaseResult.fail("属性修改失败!"); |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/importAttributes") |
| | | @VciUnCheckRight |
| | | @VciBusinessLog(operateName = "导入属性") |
| | | public BaseResult importAttributes(MultipartFile file){ |
| | | String excelFileName = LocalFileUtil.getDefaultTempFolder() + File.separator + LocalFileUtil.getFileNameForIE(file.getOriginalFilename()); |
| | | File file1 = new File(excelFileName); |