|
|
|
@ -85,7 +85,9 @@ public class BasicMaterialController extends BladeController {
|
|
|
|
|
@ApiOperationSupport(order = 2) |
|
|
|
|
@ApiOperation(value = "分页", notes = "传入basicMaterial") |
|
|
|
|
public R<IPage<BasicMaterialEntity>> list(@ApiIgnore @RequestParam Map<String, Object> basicMaterial, Query query) { |
|
|
|
|
IPage<BasicMaterialEntity> pages = basicMaterialService.page(Condition.getPage(query), Condition.getQueryWrapper(basicMaterial, BasicMaterialEntity.class)); |
|
|
|
|
QueryWrapper<BasicMaterialEntity> queryWrapper = Condition.getQueryWrapper(basicMaterial, BasicMaterialEntity.class); |
|
|
|
|
queryWrapper.orderByDesc("create_time"); |
|
|
|
|
IPage<BasicMaterialEntity> pages = basicMaterialService.page(Condition.getPage(query), queryWrapper); |
|
|
|
|
return R.data(pages); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|