|
|
|
@ -128,7 +128,8 @@ public class TrainController extends BladeController {
|
|
|
|
|
@ApiOperation(value = "培训记录分页") |
|
|
|
|
@ApiOperationSupport(order = 10) |
|
|
|
|
public R<IPage<TrainRecordEntity>> trainRecordPage(@ApiIgnore @RequestParam Map<String, Object> param, Query query) { |
|
|
|
|
IPage<TrainRecordEntity> page = trainRecordService.page(Condition.getPage(query), Condition.getQueryWrapper(param, TrainRecordEntity.class)); |
|
|
|
|
IPage<TrainRecordEntity> page = trainRecordService.page(Condition.getPage(query), Condition.getQueryWrapper( |
|
|
|
|
param, TrainRecordEntity.class).lambda().orderByDesc(TrainRecordEntity::getCreateTime)); |
|
|
|
|
return R.data(page); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -176,7 +177,8 @@ public class TrainController extends BladeController {
|
|
|
|
|
@ApiOperation(value = "考试记录分页") |
|
|
|
|
@ApiOperationSupport(order = 16) |
|
|
|
|
public R<IPage<TestEntity>> testPage(@ApiIgnore @RequestParam Map<String, Object> param, Query query) { |
|
|
|
|
IPage<TestEntity> page = testService.page(Condition.getPage(query), Condition.getQueryWrapper(param, TestEntity.class)); |
|
|
|
|
IPage<TestEntity> page = testService.page(Condition.getPage(query), Condition.getQueryWrapper(param, TestEntity.class) |
|
|
|
|
.lambda().orderByDesc(TestEntity::getCreateTime)); |
|
|
|
|
return R.data(page); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|