|
|
@@ -8,11 +8,13 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.github.yulichang.toolkit.MPJWrappers;
|
|
|
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
|
|
|
import com.xjrsoft.common.model.result.RT;
|
|
|
import com.xjrsoft.common.page.ConventPage;
|
|
|
import com.xjrsoft.common.page.PageOutput;
|
|
|
import com.xjrsoft.common.utils.VoToColumnUtil;
|
|
|
import com.xjrsoft.module.base.entity.BaseSemester;
|
|
|
+import com.xjrsoft.module.organization.entity.User;
|
|
|
import com.xjrsoft.module.student.dto.AddBaseStudentScholarshipApplicantDto;
|
|
|
import com.xjrsoft.module.student.dto.BaseStudentScholarshipApplicantCategoryPageDto;
|
|
|
import com.xjrsoft.module.student.dto.BaseStudentScholarshipApplicantPageDto;
|
|
|
@@ -133,9 +135,11 @@ public class BaseStudentScholarshipApplicantController {
|
|
|
@SaCheckPermission("basestudentscholarshipapplicant:detail")
|
|
|
public RT<List<ScholarshipApplicantOptionVo>> optionSelect(@Valid BaseStudentScholarshipApplicantPageDto dto){
|
|
|
List<BaseStudentScholarshipApplicant> applicantList = applicantService.list(
|
|
|
- new QueryWrapper<BaseStudentScholarshipApplicant>().lambda()
|
|
|
+ new MPJLambdaWrapper<BaseStudentScholarshipApplicant>()
|
|
|
.select(BaseStudentScholarshipApplicant::getId)
|
|
|
+ .selectAs(User::getName, BaseStudentScholarshipApplicant::getName)
|
|
|
.select(BaseStudentScholarshipApplicant.class,x -> VoToColumnUtil.fieldsToColumns(BaseStudentScholarshipApplicantPageVo.class).contains(x.getProperty()))
|
|
|
+ .leftJoin(User.class, User::getId, BaseStudentScholarshipApplicant::getApplicantUserId)
|
|
|
.eq(ObjectUtil.isNotNull(dto.getBaseStudentScholarshipCategoryId()),BaseStudentScholarshipApplicant::getBaseStudentScholarshipCategoryId, dto.getBaseStudentScholarshipCategoryId())
|
|
|
.eq(ObjectUtil.isNotNull(dto.getSemesterId()), BaseStudentScholarshipApplicant::getBaseSemesterId, dto.getSemesterId())
|
|
|
.eq(BaseStudentScholarshipApplicant::getStatus, 1)
|