|
|
@@ -13,7 +13,7 @@ import com.usoftchina.smartschool.school.wxschool.basic.service.WxMeetingService
|
|
|
import com.usoftchina.smartschool.school.wxschool.support.RemindTask;
|
|
|
import com.usoftchina.smartschool.school.wxschool.utils.DateFormatUtil;
|
|
|
import com.usoftchina.smartschool.school.wxschool.utils.ObjectUtils;
|
|
|
-import com.usoftchina.smartschool.wechat.api.WxPushApi;
|
|
|
+import com.usoftchina.smartschool.wechat.service.WxPushService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -32,7 +32,7 @@ public class WxMeetingServiceImpl implements WxMeetingService {
|
|
|
private WxTeacherMapper teacherMapper;
|
|
|
|
|
|
@Autowired
|
|
|
- private WxPushApi wxPushApi;
|
|
|
+ private WxPushService wxPushService;
|
|
|
|
|
|
@Autowired
|
|
|
private WxSchoolMapper wxSchoolMapper;
|
|
|
@@ -80,9 +80,9 @@ public class WxMeetingServiceImpl implements WxMeetingService {
|
|
|
meetingRecordsMapper.save(meetingRecordsDO);
|
|
|
}
|
|
|
Timer timer = new Timer();
|
|
|
- timer.schedule(new RemindTask(teacherMapper,wxSchoolMapper,wxPushApi,meetingMapper,1,meetingDO), startDate);
|
|
|
- timer.schedule(new RemindTask(teacherMapper,wxSchoolMapper,wxPushApi,meetingMapper,2,meetingDO), endDate);
|
|
|
- timer.schedule(new RemindTask(teacherMapper,wxSchoolMapper,wxPushApi,meetingMapper,3,meetingDO), reminderDate);
|
|
|
+ timer.schedule(new RemindTask(teacherMapper,wxSchoolMapper,wxPushService,meetingMapper,1,meetingDO), startDate);
|
|
|
+ timer.schedule(new RemindTask(teacherMapper,wxSchoolMapper,wxPushService,meetingMapper,2,meetingDO), endDate);
|
|
|
+ timer.schedule(new RemindTask(teacherMapper,wxSchoolMapper,wxPushService,meetingMapper,3,meetingDO), reminderDate);
|
|
|
return "创建成功";
|
|
|
}else {
|
|
|
throw new Exception("创建失败,请核查");
|