|
|
@@ -1,6 +1,7 @@
|
|
|
package com.xjrsoft.module.liteflow.node;
|
|
|
|
|
|
import cn.hutool.core.convert.Convert;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.xjrsoft.common.enums.RoomApplicantTypeEnum;
|
|
|
import com.xjrsoft.common.enums.StudyStatusEnum;
|
|
|
import com.xjrsoft.module.room.entity.WfRoomApplicant;
|
|
|
@@ -33,7 +34,10 @@ public class WfRoomApplicantNode extends NodeComponent {
|
|
|
if (formId != null) {
|
|
|
//查询出数据
|
|
|
WfRoomApplicant wfRoomApplicant = wfRoomApplicantMapper.selectById(formId);
|
|
|
- BaseStudentSchoolRoll schoolRoll = studentSchoolRollService.getById(wfRoomApplicant.getApplicantUserId());
|
|
|
+ BaseStudentSchoolRoll schoolRoll = studentSchoolRollService.getOne(
|
|
|
+ new QueryWrapper<BaseStudentSchoolRoll>().lambda()
|
|
|
+ .eq(BaseStudentSchoolRoll::getUserId, wfRoomApplicant.getApplicantUserId())
|
|
|
+ );
|
|
|
if(RoomApplicantTypeEnum.ToBeBoarder.getCode().equals(wfRoomApplicant.getRecedeType())){
|
|
|
schoolRoll.setStduyStatus(StudyStatusEnum.InResidence.getCode());
|
|
|
}else if(RoomApplicantTypeEnum.ToBeDayPupil.getCode().equals(wfRoomApplicant.getRecedeType())){
|