|
@@ -130,7 +130,7 @@ public class DataServiceImpl implements DataService {
|
|
|
Map<String, String> variableParams = new HashMap<>();
|
|
|
variableParams.put("schoolName", basicSchool.getName());
|
|
|
for (String phoneNumber : syncData.getPhoneNumber().split(",")) {
|
|
|
-// basicMessageService.saveMessageSendLog(schoolId, null, null, phoneNumber, JSON.toJSONString(variableParams), MessageEnum.NOTICE_SYNC_DATA);
|
|
|
+ basicMessageService.saveMessageSendLog(schoolId, null, null, phoneNumber, JSON.toJSONString(variableParams), MessageEnum.NOTICE_SYNC_DATA);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -138,7 +138,7 @@ public class DataServiceImpl implements DataService {
|
|
|
private SyncDataResult syncOrg(JdbcTemplate jdbcTemplate, Long schoolId, Long examId, String datasourceType) {
|
|
|
long startTime = System.currentTimeMillis();
|
|
|
List<OrgDataVo> dataVoList = dataUtil.listOrg(jdbcTemplate, DataType.A, datasourceType);
|
|
|
- StringJoiner errorMsg = new StringJoiner("<br>");
|
|
|
+ StringJoiner errorMsg = new StringJoiner("\n");
|
|
|
AtomicInteger i = new AtomicInteger(0);
|
|
|
for (OrgDataVo orgDataVo : dataVoList) {
|
|
|
try {
|
|
@@ -156,7 +156,7 @@ public class DataServiceImpl implements DataService {
|
|
|
private SyncDataResult syncUser(JdbcTemplate jdbcTemplate, Long schoolId, Long examId, String datasourceType) {
|
|
|
long startTime = System.currentTimeMillis();
|
|
|
List<UserDataVo> dataVoList = dataUtil.listUser(jdbcTemplate, DataType.B, datasourceType);
|
|
|
- StringJoiner errorMsg = new StringJoiner("<br>");
|
|
|
+ StringJoiner errorMsg = new StringJoiner("\n");
|
|
|
AtomicInteger i = new AtomicInteger(0);
|
|
|
for (UserDataVo userDataVo : dataVoList) {
|
|
|
try {
|
|
@@ -174,7 +174,7 @@ public class DataServiceImpl implements DataService {
|
|
|
private SyncDataResult syncCourse(JdbcTemplate jdbcTemplate, Long schoolId, Long examId, String datasourceType) {
|
|
|
long startTime = System.currentTimeMillis();
|
|
|
List<CourseDataVo> dataVoList = dataUtil.listCourse(jdbcTemplate, DataType.C, datasourceType);
|
|
|
- StringJoiner errorMsg = new StringJoiner("<br>");
|
|
|
+ StringJoiner errorMsg = new StringJoiner("\n");
|
|
|
AtomicInteger i = new AtomicInteger(0);
|
|
|
for (CourseDataVo courseDataVo : dataVoList) {
|
|
|
try {
|
|
@@ -228,7 +228,7 @@ public class DataServiceImpl implements DataService {
|
|
|
private SyncDataResult syncExamTask(JdbcTemplate jdbcTemplate, Long schoolId, Long examId, String datasourceType) {
|
|
|
long startTime = System.currentTimeMillis();
|
|
|
List<ExamTaskDataVo> dataVoList = dataUtil.listExamTask(jdbcTemplate, DataType.E, datasourceType);
|
|
|
- StringJoiner errorMsg = new StringJoiner("<br>");
|
|
|
+ StringJoiner errorMsg = new StringJoiner("\n");
|
|
|
AtomicInteger i = new AtomicInteger(0);
|
|
|
for (ExamTaskDataVo examTaskDataVo : dataVoList) {
|
|
|
try {
|