| | |
| | | @PostMapping("/submit") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "新增或修改", notes = "传入元数据对象") |
| | | public R submit(@Valid @RequestBody AttributeDTO dto) { |
| | | public R submit(@RequestBody AttributeDTO dto) { |
| | | CacheUtil.clear(OmdCacheConstant.ATTR_CACHE); |
| | | return R.status(attributeService.submit(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | * @param ids 主键集合 |
| | | * @param oid 主键集合 |
| | | * @return 执行结果 |
| | | */ |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "删除", notes = "主键集合") |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String oid) { |
| | | CacheUtil.clear(OmdCacheConstant.ATTR_CACHE); |
| | | return R.status(attributeService.removeAttrs(ids)); |
| | | return attributeService.remove(oid); |
| | | } |
| | | |
| | | /** |