|
|
@@ -28,10 +28,12 @@ import com.xjrsoft.module.teacher.vo.TeacherAwardDetailExcelVo;
|
|
|
import com.xjrsoft.module.teacher.vo.TeacherAwardDetailPageVo;
|
|
|
import com.xjrsoft.module.teacher.vo.TeacherAwardStatisticsExcelVo;
|
|
|
import com.xjrsoft.module.teacher.vo.TeacherAwardStatisticsPageVo;
|
|
|
+import com.xjrsoft.module.workflow.entity.WorkflowFormRelation;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import me.zhyd.oauth.log.Log;
|
|
|
+import org.camunda.bpm.engine.history.HistoricProcessInstance;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
@@ -92,11 +94,12 @@ public class TeacherAwardController {
|
|
|
.select(TeacherAward.class,x -> VoToColumnUtil.fieldsToColumns(TeacherAwardDetailPageVo.class).contains(x.getProperty()))
|
|
|
.leftJoin(TeacherAwardItem.class, TeacherAwardItem::getId, TeacherAward::getTeacherAwardItemId)
|
|
|
.leftJoin(XjrUser.class, XjrUser::getId, TeacherAward::getApplicantUserId)
|
|
|
+ .leftJoin(WorkflowFormRelation.class, WorkflowFormRelation::getFormKeyValue, TeacherAward::getId)
|
|
|
.eq(dto.getApplicantUserId() != null && dto.getApplicantUserId() > 0,TeacherAward::getApplicantUserId, dto.getApplicantUserId())
|
|
|
.eq(dto.getIsThesis() != null,TeacherAwardItem::getIsThesis, dto.getIsThesis())
|
|
|
.like(dto.getApplicantUserIdCn() != null && !dto.getApplicantUserIdCn().equals(""), XjrUser::getName, dto.getApplicantUserIdCn())
|
|
|
.like(dto.getWholeCompetitionName() != null && !dto.getWholeCompetitionName().equals(""),TeacherAward::getWholeCompetitionName, dto.getWholeCompetitionName())
|
|
|
- .eq(TeacherAward::getStatus, 1)
|
|
|
+ .eq(WorkflowFormRelation::getCurrentState, HistoricProcessInstance.STATE_COMPLETED)
|
|
|
.orderByDesc(TeacherAward::getCreateDate)
|
|
|
;
|
|
|
IPage<TeacherAwardDetailPageVo> page = teacherAwardService.selectJoinListPage(ConventPage.getPage(dto), TeacherAwardDetailPageVo.class, teacherAwardMPJLambdaWrapper);
|