|
|
@@ -53,14 +53,16 @@ public class BaseStudentScholarshipCategoryController {
|
|
|
@SaCheckPermission("basestudentscholarshipcategory:detail")
|
|
|
public RT<PageOutput<BaseStudentScholarshipCategoryPageVo>> page(@Valid BaseStudentScholarshipCategoryPageDto dto){
|
|
|
IPage<BaseStudentScholarshipCategoryPageVo> page = baseStudentScholarshipCategoryService.selectJoinListPage(ConventPage.getPage(dto), BaseStudentScholarshipCategoryPageVo.class,
|
|
|
- MPJWrappers.<BaseStudentScholarshipCategory>lambdaJoin()
|
|
|
+ MPJWrappers.<BaseStudentScholarshipCategory>lambdaJoin().disableSubLogicDel()
|
|
|
.like(StrUtil.isNotEmpty(dto.getScholarshipName()), BaseStudentScholarshipCategory::getName, dto.getScholarshipName())
|
|
|
.like(StrUtil.isNotEmpty(dto.getScholarshipSource()), DictionaryDetail::getName, dto.getScholarshipSource())
|
|
|
.eq(ObjectUtil.isNotNull(dto.getScholarshipLevel()), BaseStudentScholarshipCategory::getScholarshipLevel, dto.getScholarshipLevel())
|
|
|
.select(BaseStudentScholarshipCategory::getId)
|
|
|
.selectAs(DictionaryDetail::getName, BaseStudentScholarshipCategoryPageVo::getScholarshipSourceCn)
|
|
|
+ .select("t2.name", BaseStudentScholarshipCategoryPageVo::getCategoryCn)
|
|
|
.select(BaseStudentScholarshipCategory.class, x -> VoToColumnUtil.fieldsToColumns(BaseStudentScholarshipCategoryPageVo.class).contains(x.getProperty()))
|
|
|
.leftJoin(DictionaryDetail.class, DictionaryDetail::getCode, BaseStudentScholarshipCategory::getScholarshipSource)
|
|
|
+ .leftJoin(DictionaryDetail.class, DictionaryDetail::getCode, BaseStudentScholarshipCategory::getCategory)
|
|
|
);
|
|
|
|
|
|
PageOutput<BaseStudentScholarshipCategoryPageVo> pageOutput = ConventPage.getPageOutput(page, BaseStudentScholarshipCategoryPageVo.class);
|