|
|
@@ -74,28 +74,28 @@ public class TulinInfoSyncLogServiceImpl implements ITulinInfoSyncLogService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-// if(activeProfile.equals("dev")) {
|
|
|
-// log.info("线下开始执行数据同步");
|
|
|
-// for (QwExUserInfo qwExUserInfo : qwExUserInfos) {
|
|
|
-// StudentInfo studentInfo = new StudentInfo();
|
|
|
-// BeanUtils.copyProperties(qwExUserInfo, studentInfo);
|
|
|
-// studentInfo.setAppid("wx6688e6b9b6fb8700");
|
|
|
-// studentInfo.setColumn_name(ColumnNameEnum.GYBNX.getName());
|
|
|
-// studentInfo.setPharmacy_id(PharmacyEnum.YJKYSY.getPharmacyId());
|
|
|
-// studentInfo.setService_phone("15141712344");
|
|
|
-// List<PeriodInfo> periodInfos = tulinInfoSyncLogMapper.selectPeriodInfo(qwExUserInfo.getFs_user_id());
|
|
|
-// if(CollectionUtils.isNotEmpty(periodInfos)){
|
|
|
-// studentInfo.setPeriod_name(periodInfos.get(0).getCourseName());
|
|
|
-// }
|
|
|
-// try {
|
|
|
-// TulinInfoSyncLog tulinInfoSyncLog = SyncStudentInfoService.send(PROD_URL,PROD_CORPID, studentInfo);
|
|
|
-// tulinInfoSyncLog.setFsUserId(qwExUserInfo.getFs_user_id());
|
|
|
-// insert(tulinInfoSyncLog);
|
|
|
-// } catch (JsonProcessingException e) {
|
|
|
-// throw new RuntimeException(e);
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
+ if(activeProfile.equals("dev")) {
|
|
|
+ log.info("线下开始执行数据同步");
|
|
|
+ for (QwExUserInfo qwExUserInfo : qwExUserInfos) {
|
|
|
+ StudentInfo studentInfo = new StudentInfo();
|
|
|
+ BeanUtils.copyProperties(qwExUserInfo, studentInfo);
|
|
|
+ studentInfo.setAppid("wx6688e6b9b6fb8700");
|
|
|
+ studentInfo.setColumn_name(ColumnNameEnum.GYBNX.getName());
|
|
|
+ studentInfo.setPharmacy_id(PharmacyEnum.YJKYSY.getPharmacyId());
|
|
|
+ studentInfo.setService_phone("15141712344");
|
|
|
+ List<PeriodInfo> periodInfos = tulinInfoSyncLogMapper.selectPeriodInfo(qwExUserInfo.getFs_user_id());
|
|
|
+ if(CollectionUtils.isNotEmpty(periodInfos)){
|
|
|
+ studentInfo.setPeriod_name(periodInfos.get(0).getCourseName());
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ TulinInfoSyncLog tulinInfoSyncLog = SyncStudentInfoService.send(PROD_URL,PROD_CORPID, studentInfo);
|
|
|
+ tulinInfoSyncLog.setFsUserId(qwExUserInfo.getFs_user_id());
|
|
|
+ insert(tulinInfoSyncLog);
|
|
|
+ } catch (JsonProcessingException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|