|
|
@@ -10,6 +10,7 @@ import com.xjrsoft.module.hikvision.entity.HikvisionData;
|
|
|
import com.xjrsoft.module.hikvision.mapper.HikvisionDataMapper;
|
|
|
import com.xjrsoft.module.hikvision.util.DataUtil;
|
|
|
import com.xjrsoft.module.room.entity.WfRoomApplicant;
|
|
|
+import com.xjrsoft.module.room.mapper.RoomBedMapper;
|
|
|
import com.xjrsoft.module.room.service.IWfRoomApplicantService;
|
|
|
import com.xjrsoft.module.student.entity.BaseStudentSchoolRoll;
|
|
|
import com.xjrsoft.module.student.service.IBaseStudentSchoolRollService;
|
|
|
@@ -48,7 +49,8 @@ public class WfRoomApplicantNode extends NodeComponent {
|
|
|
private WorkflowRecordMapper workflowRecordMapper;
|
|
|
@Autowired
|
|
|
private IStudentChangeRecordService changeRecordService;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private RoomBedMapper roomBedMapper;
|
|
|
|
|
|
@Override
|
|
|
public void process() throws Exception {
|
|
|
@@ -102,6 +104,8 @@ public class WfRoomApplicantNode extends NodeComponent {
|
|
|
schoolRoll.setStduyStatus(StudyStatusEnum.InResidence.getCode());
|
|
|
} else if (RoomApplicantTypeEnum.ToBeDayPupil.getCode().equals(wfRoomApplicant.getRecedeType())) {
|
|
|
schoolRoll.setStduyStatus(StudyStatusEnum.AttendDaySchool.getCode());
|
|
|
+ //清除床位信息
|
|
|
+ roomBedMapper.clearBedInfoByStudentUserId(wfRoomApplicant.getApplicantUserId(), wfRoomApplicant.getCreateUserId());
|
|
|
}
|
|
|
//修改学生班级
|
|
|
studentSchoolRollService.updateById(schoolRoll);
|
|
|
@@ -117,6 +121,8 @@ public class WfRoomApplicantNode extends NodeComponent {
|
|
|
throw new RuntimeException(e);
|
|
|
}
|
|
|
//wfRoomApplicantService.noticeParents(formId);
|
|
|
+
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
});
|