TrainClz里面加入这几个
@NotNull(message = "分页数据不能为空")
@Min(value = 1,message = "分页不能小于1")
private Integer pageNum;
@NotNull(message = "分页数据不能为空")
private Integer pageSize;
@PostMapping("selectLike")
public ResponseStruct selectLike(@RequestBody @Validated TrainClz trainClz)
{
PageHelper.startPage(trainClz.getPageNum(), trainClz.getPageSize());
List<Map<String,Object>> list = trainClassService.selectLike(trainClz) ;
if(CommonUtils.isNull(pageTrainPlanInfo)){
return ResponseStruct.success();
}
PageInfo<Map<String, Object>> pageTrainPlanInfo = new PageInfo(list);
return ResponseStruct.success(pageTrainPlanInfo) ;
}