|
@@ -18,6 +18,8 @@ import cn.com.qmth.examcloud.core.basic.dao.entity.OrgEntity;
|
|
import cn.com.qmth.examcloud.core.basic.dao.entity.StudentEntity;
|
|
import cn.com.qmth.examcloud.core.basic.dao.entity.StudentEntity;
|
|
import cn.com.qmth.examcloud.core.basic.service.StudentService;
|
|
import cn.com.qmth.examcloud.core.basic.service.StudentService;
|
|
import cn.com.qmth.examcloud.core.basic.service.bean.StudentInfo;
|
|
import cn.com.qmth.examcloud.core.basic.service.bean.StudentInfo;
|
|
|
|
+import cn.com.qmth.examcloud.task.api.DataSyncCloudService;
|
|
|
|
+import cn.com.qmth.examcloud.task.api.request.SyncStudentReq;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 学生服务类 Created by songyue on 17/1/14.
|
|
* 学生服务类 Created by songyue on 17/1/14.
|
|
@@ -40,6 +42,9 @@ public class StudentServiceImpl implements StudentService {
|
|
@Autowired
|
|
@Autowired
|
|
OrgServiceImpl orgService;
|
|
OrgServiceImpl orgService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ DataSyncCloudService dataSyncCloudService;
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* 实现
|
|
* 实现
|
|
*
|
|
*
|
|
@@ -150,6 +155,14 @@ public class StudentServiceImpl implements StudentService {
|
|
}
|
|
}
|
|
StudentEntity saved = studentRepo.saveAndFlush(student);
|
|
StudentEntity saved = studentRepo.saveAndFlush(student);
|
|
|
|
|
|
|
|
+ SyncStudentReq req = new SyncStudentReq();
|
|
|
|
+ req.setEnable(saved.getEnable());
|
|
|
|
+ req.setId(saved.getId());
|
|
|
|
+ req.setIdentityNumber(saved.getIdentityNumber());
|
|
|
|
+ req.setName(saved.getName());
|
|
|
|
+
|
|
|
|
+ dataSyncCloudService.syncStudent(req);
|
|
|
|
+
|
|
return saved;
|
|
return saved;
|
|
}
|
|
}
|
|
|
|
|