Commit eca19548 authored by lu's avatar lu

培训学员分页查询

parent 57c2bc6c
...@@ -565,11 +565,12 @@ public class BLessonController extends PaginationController<BLesson> { ...@@ -565,11 +565,12 @@ public class BLessonController extends PaginationController<BLesson> {
@ApiOperation(value = "630 培训学员", notes = "培训学员", response = BLessonPerson.class) @ApiOperation(value = "630 培训学员", notes = "培训学员", response = BLessonPerson.class)
@GetMapping(value = "/trainPersons") @GetMapping(value = "/trainPersons")
public Result trainPersons(CurUser curUser, @Valid FindTrainPersonDTO param, BindingResult bindingResult) { public Result trainPersons(CurUser curUser, @Valid FindTrainPersonDTO param, BindingResult bindingResult) {
bLessonService.trainPersonsByPagination(getPaginationUtility(),param);
GridModel gridModel = getGridModelResponse();
return Result.builder(new PersistModel(1), return Result.builder(new PersistModel(1),
MessageConstant.MESSAGE_ALERT_SUCCESS, MessageConstant.MESSAGE_ALERT_SUCCESS,
MessageConstant.MESSAGE_ALERT_ERROR, MessageConstant.MESSAGE_ALERT_ERROR,
bLessonService.trainPersons(param)); gridModel);
} }
/** /**
......
...@@ -187,7 +187,7 @@ public interface BLessonService{ ...@@ -187,7 +187,7 @@ public interface BLessonService{
* @param param * @param param
* @return * @return
*/ */
List<BLessonPerson> trainPersons(FindTrainPersonDTO param); List<BLessonPerson> trainPersonsByPagination(PageUtil pageUtil,FindTrainPersonDTO param);
/** /**
* 分页查询列表页全部 * 分页查询列表页全部
......
...@@ -959,7 +959,7 @@ public class BLessonServiceImpl implements BLessonService { ...@@ -959,7 +959,7 @@ public class BLessonServiceImpl implements BLessonService {
@Override @Override
@Transactional(propagation = Propagation.REQUIRED, readOnly = false) @Transactional(propagation = Propagation.REQUIRED, readOnly = false)
public List<BLessonPerson> trainPersons(FindTrainPersonDTO param) { public List<BLessonPerson> trainPersonsByPagination(PageUtil pageUtil,FindTrainPersonDTO param) {
List<BLessonPerson> bLessonPersonList = bLessonPersonRepository.trainPersons(param); List<BLessonPerson> bLessonPersonList = bLessonPersonRepository.trainPersons(param);
if (bLessonPersonList != null && bLessonPersonList.size() > 0) { if (bLessonPersonList != null && bLessonPersonList.size() > 0) {
List<String> departs = new ArrayList<>(); List<String> departs = new ArrayList<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment