|
@@ -3,6 +3,7 @@ package com.xjrsoft.module.liteflow.node;
|
|
|
import cn.hutool.core.convert.Convert;
|
|
import cn.hutool.core.convert.Convert;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.xjrsoft.common.enums.WorkflowApproveType;
|
|
import com.xjrsoft.common.enums.WorkflowApproveType;
|
|
|
|
|
+import com.xjrsoft.module.banding.service.IBandingTaskClassStudentService;
|
|
|
import com.xjrsoft.module.base.entity.BaseClass;
|
|
import com.xjrsoft.module.base.entity.BaseClass;
|
|
|
import com.xjrsoft.module.base.service.IBaseClassService;
|
|
import com.xjrsoft.module.base.service.IBaseClassService;
|
|
|
import com.xjrsoft.module.student.entity.StudentChangeClass;
|
|
import com.xjrsoft.module.student.entity.StudentChangeClass;
|
|
@@ -46,6 +47,9 @@ public class StudentChangeClassNode extends NodeComponent {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IStudentChangeRecordService changeRecordService;
|
|
private IStudentChangeRecordService changeRecordService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IBandingTaskClassStudentService taskClassStudentService;
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public void process() throws Exception {
|
|
public void process() throws Exception {
|
|
|
// 获取表单中数据编号
|
|
// 获取表单中数据编号
|
|
@@ -93,6 +97,8 @@ public class StudentChangeClassNode extends NodeComponent {
|
|
|
studentSchoolRollService.updateStudentClass(changeClass.getAfterClassId(), baseClass.getMajorSetId(), changeClass.getStudentUserId());
|
|
studentSchoolRollService.updateStudentClass(changeClass.getAfterClassId(), baseClass.getMajorSetId(), changeClass.getStudentUserId());
|
|
|
|
|
|
|
|
changeRecordService.insertDataByChangeClass(formId);
|
|
changeRecordService.insertDataByChangeClass(formId);
|
|
|
|
|
+
|
|
|
|
|
+ taskClassStudentService.changeClassByWorkFlow(changeClass.getStudentUserId(), changeClass.getAfterClassId());
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|