|
|
@@ -18,12 +18,16 @@ import com.xjrsoft.module.student.dto.BaseStudentPunishmentInfoPageDto;
|
|
|
import com.xjrsoft.module.student.dto.UpdateBaseStudentPunishmentInfoDto;
|
|
|
import com.xjrsoft.module.student.entity.BasePunishmentStudentRelation;
|
|
|
import com.xjrsoft.module.student.entity.BasePunishmentType;
|
|
|
+import com.xjrsoft.module.student.entity.BaseStudentCadre;
|
|
|
import com.xjrsoft.module.student.entity.BaseStudentPunishmentInfo;
|
|
|
import com.xjrsoft.module.student.entity.BaseStudentSchoolRoll;
|
|
|
import com.xjrsoft.module.student.mapper.BasePunishmentStudentRelationMapper;
|
|
|
import com.xjrsoft.module.student.service.IBaseStudentPunishmentInfoService;
|
|
|
+import com.xjrsoft.module.student.vo.BaseStudentAssessmentProjectPageVo;
|
|
|
+import com.xjrsoft.module.student.vo.BaseStudentPunishmentInfoMobliePageVo;
|
|
|
import com.xjrsoft.module.student.vo.BaseStudentPunishmentInfoPageVo;
|
|
|
import com.xjrsoft.module.student.vo.BaseStudentPunishmentInfoVo;
|
|
|
+import com.xjrsoft.module.teacher.entity.XjrUser;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
@@ -82,11 +86,59 @@ public class BaseStudentPunishmentInfoController {
|
|
|
.innerJoin(BaseSemester.class, BaseSemester::getId, BaseStudentPunishmentInfo::getBaseSemesterId)
|
|
|
);
|
|
|
|
|
|
-
|
|
|
PageOutput<BaseStudentPunishmentInfoPageVo> pageOutput = ConventPage.getPageOutput(page, BaseStudentPunishmentInfoPageVo.class);
|
|
|
return RT.ok(pageOutput);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping(value = "/mobilePage")
|
|
|
+ @ApiOperation(value="学生处分信息管理列表(移动端分页)")
|
|
|
+ @SaCheckPermission("basestudentpunishmentinfo:detail")
|
|
|
+ public RT<PageOutput<BaseStudentPunishmentInfoMobliePageVo>> mobilePage(@Valid BaseStudentPunishmentInfoPageDto dto){
|
|
|
+
|
|
|
+ IPage<BaseStudentPunishmentInfoMobliePageVo> page = baseStudentPunishmentInfoService.selectJoinListPage(ConventPage.getPage(dto), BaseStudentPunishmentInfoMobliePageVo.class,
|
|
|
+ MPJWrappers.<BaseStudentPunishmentInfo>lambdaJoin()
|
|
|
+ .like(StrUtil.isNotBlank(dto.getUserName()), BasePunishmentStudentRelation::getName, dto.getUserName())
|
|
|
+ .like(StrUtil.isNotBlank(dto.getStudentId()), BasePunishmentStudentRelation::getStudentId, dto.getStudentId())
|
|
|
+ .like(StrUtil.isNotBlank(dto.getCredentialNumber()), XjrUser::getCredentialNumber, dto.getCredentialNumber())
|
|
|
+ .eq(StrUtil.isNotBlank(dto.getArchivesStatus()), BaseStudentSchoolRoll::getArchivesStatus, dto.getArchivesStatus())
|
|
|
+ .eq(StrUtil.isNotBlank(dto.getSemesterId()), BaseStudentPunishmentInfo::getBaseSemesterId, dto.getSemesterId())
|
|
|
+ .eq(ObjectUtil.isNotNull(dto.getClassId()), BaseStudentPunishmentInfo::getClassId, dto.getClassId())
|
|
|
+ .eq(ObjectUtil.isNotNull(dto.getGradeId()), BaseStudentSchoolRoll::getGradeId, dto.getGradeId())
|
|
|
+ .eq(ObjectUtil.isNotNull(dto.getAdjustType()), BasePunishmentStudentRelation::getAdjustType, dto.getAdjustType())
|
|
|
+ .eq(ObjectUtil.isNotNull(dto.getIsPublicity()), BaseStudentPunishmentInfo::getIsPublicity, dto.getIsPublicity())
|
|
|
+ .in(ObjectUtil.isNotNull(dto.getOrgIds()), BaseClass::getOrgId, dto.getOrgIds())
|
|
|
+ .between(ObjectUtil.isNotNull(dto.getStartTimeStart()) && ObjectUtil.isNotNull(dto.getStartTimeEnd()), BaseStudentPunishmentInfo::getStartTime,dto.getStartTimeStart(),dto.getStartTimeEnd())
|
|
|
+ .between(ObjectUtil.isNotNull(dto.getEndTimeStart()) && ObjectUtil.isNotNull(dto.getEndTimeEnd()), BaseStudentPunishmentInfo::getEndTime,dto.getEndTimeStart(),dto.getEndTimeEnd())
|
|
|
+ .between(ObjectUtil.isNotNull(dto.getAdjustDateStart()) && ObjectUtil.isNotNull(dto.getAdjustDateEnd()), BasePunishmentStudentRelation::getAdjustDate,dto.getAdjustDateStart(),dto.getAdjustDateEnd())
|
|
|
+ .between(ObjectUtil.isNotNull(dto.getModifyDateStart()) && ObjectUtil.isNotNull(dto.getModifyDateEnd()), BasePunishmentStudentRelation::getModifyDate,dto.getModifyDateStart(),dto.getModifyDateEnd())
|
|
|
+ .select(BasePunishmentStudentRelation::getId)
|
|
|
+ .select(BasePunishmentStudentRelation::getStudentId)
|
|
|
+ .select(BasePunishmentStudentRelation::getName)
|
|
|
+ .select(BasePunishmentStudentRelation::getGender)
|
|
|
+ .select(BasePunishmentStudentRelation::getClassName)
|
|
|
+ .select(BasePunishmentStudentRelation::getMajor)
|
|
|
+ .selectAs(BaseSemester::getName, BaseStudentPunishmentInfoPageVo::getSemesterName)
|
|
|
+ .select(BasePunishmentType::getPunishmentType)
|
|
|
+ .select(BaseStudentPunishmentInfo::getStartTime)
|
|
|
+ .select(BaseStudentPunishmentInfo::getEndTime)
|
|
|
+ .select(BaseStudentPunishmentInfo::getIsPublicity)
|
|
|
+ .select(BaseStudentPunishmentInfo::getReason)
|
|
|
+ .select(BasePunishmentStudentRelation::getAdjustType)
|
|
|
+ .select(BasePunishmentStudentRelation::getAdjustDate)
|
|
|
+ .select(BasePunishmentStudentRelation::getModifyDate)
|
|
|
+ .orderByDesc(BaseStudentCadre::getId)
|
|
|
+ .innerJoin(BasePunishmentStudentRelation.class, BasePunishmentStudentRelation::getPunishmentInfoId, BaseStudentPunishmentInfo::getId)
|
|
|
+ .innerJoin(BasePunishmentType.class, BasePunishmentType::getId, BaseStudentPunishmentInfo::getPunishmentTypeId)
|
|
|
+ .innerJoin(XjrUser.class, XjrUser::getId, BasePunishmentStudentRelation::getUserId)
|
|
|
+ .innerJoin(BaseSemester.class, BaseSemester::getId, BaseStudentPunishmentInfo::getBaseSemesterId)
|
|
|
+ .leftJoin(BaseStudentSchoolRoll.class, BaseStudentSchoolRoll::getUserId, BasePunishmentStudentRelation::getUserId)
|
|
|
+ .leftJoin(BaseClass.class, BaseClass::getId, BaseStudentPunishmentInfo::getClassId)
|
|
|
+ );
|
|
|
+
|
|
|
+ PageOutput<BaseStudentPunishmentInfoMobliePageVo> pageOutput = ConventPage.getPageOutput(page, BaseStudentPunishmentInfoMobliePageVo.class);
|
|
|
+ return RT.ok(pageOutput);
|
|
|
+ }
|
|
|
+
|
|
|
@GetMapping(value = "/info")
|
|
|
@ApiOperation(value="根据id查询学生处分信息管理信息")
|
|
|
@SaCheckPermission("basestudentpunishmentinfo:detail")
|