| | |
| | | @ApiOperation(value = "查询列表", notes = "传入查询") |
| | | public R<IPage<AttributeVO>> pageList(@ApiIgnore @RequestParam Map<String, Object> condition, Query query) { |
| | | IPage<AttributeVO> pageVO = new Page<>(); |
| | | IPage<Attribute> page = attributeService.page(Condition.getPage(query), Condition.getQueryWrapper(condition, Attribute.class).lambda().orderByAsc(Attribute::getId)); |
| | | IPage<Attribute> page = attributeService.page(Condition.getPage(query), Condition.getQueryWrapper(condition, Attribute.class).lambda().orderByDesc(Attribute::getCreateTime)); |
| | | BeanUtil.copy(page,pageVO); |
| | | pageVO.setRecords( AttributeWrapper.build().listEntityVO(page.getRecords())); |
| | | return R.data(pageVO); |
| | |
| | | return R.data(pageVO); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 新增或修改 |
| | | * @param dto 元数据页面传输对象 |
| | | * @return 执行结果 |
| | | */ |
| | | /** |
| | | * 新增或修改 |
| | | * @param dto 元数据页面传输对象 |
| | | * @return 执行结果 |
| | | */ |
| | | @PostMapping("/submit") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "新增或修改", notes = "传入元数据对象") |
| | |
| | | public R applyRange(String oid){ |
| | | return R.data(attributeService.applyRange(oid)); |
| | | } |
| | | |
| | | } |