|
@@ -1,6 +1,8 @@
|
|
|
package com.xjrsoft.module.liteflow.node;
|
|
|
|
|
|
import cn.hutool.core.convert.Convert;
|
|
|
+import com.xjrsoft.module.base.entity.BaseClass;
|
|
|
+import com.xjrsoft.module.base.service.IBaseClassService;
|
|
|
import com.xjrsoft.module.student.entity.StudentChangeClass;
|
|
|
import com.xjrsoft.module.student.mapper.StudentChangeClassMapper;
|
|
|
import com.xjrsoft.module.student.service.IBaseStudentSchoolRollService;
|
|
@@ -19,6 +21,8 @@ public class StudentChangeClassNode extends NodeComponent {
|
|
|
private StudentChangeClassMapper studentChangeClassMapper;
|
|
|
@Autowired
|
|
|
private IBaseStudentSchoolRollService studentSchoolRollService;
|
|
|
+ @Autowired
|
|
|
+ private IBaseClassService baseClassService;
|
|
|
@Override
|
|
|
public void process() throws Exception {
|
|
|
// 获取表单中数据编号
|
|
@@ -28,8 +32,10 @@ public class StudentChangeClassNode extends NodeComponent {
|
|
|
if (formId != null) {
|
|
|
//查询出数据
|
|
|
StudentChangeClass changeClass = studentChangeClassMapper.selectById(formId);
|
|
|
+
|
|
|
+ BaseClass baseClass =baseClassService.getById(changeClass.getAfterClassId());
|
|
|
//修改学生班级
|
|
|
- studentSchoolRollService.updateStudentClass(changeClass.getAfterClassId(), changeClass.getStudentUserId());
|
|
|
+ studentSchoolRollService.updateStudentClass(changeClass.getAfterClassId(),baseClass.getMajorSetId(), changeClass.getStudentUserId());
|
|
|
}
|
|
|
}
|
|
|
}
|