|
|
@@ -8,7 +8,7 @@ import com.usoftchina.smartschool.school.wxschool.mapper.*;
|
|
|
import com.usoftchina.smartschool.school.wxschool.support.RemindTaskVote;
|
|
|
import com.usoftchina.smartschool.school.wxschool.utils.DateFormatUtil;
|
|
|
import com.usoftchina.smartschool.school.wxschool.utils.ObjectUtils;
|
|
|
-import com.usoftchina.smartschool.wechat.service.WxPushService;
|
|
|
+import com.usoftchina.smartschool.wechat.api.WxPushApi;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
@@ -35,7 +35,7 @@ public class WxVoteServiceImpl implements WxVoteService {
|
|
|
private WxTeacherMapper teacherMapper;
|
|
|
|
|
|
@Autowired
|
|
|
- private WxPushService wxPushService;
|
|
|
+ private WxPushApi wxPushApi;
|
|
|
|
|
|
@Autowired
|
|
|
private WxSchoolMapper wxSchoolMapper;
|
|
|
@@ -99,7 +99,7 @@ public class WxVoteServiceImpl implements WxVoteService {
|
|
|
TeacherDO teacherDO = teacherMapper.get(ll);
|
|
|
SchoolDO schoolDO = wxSchoolMapper.get(teacherDO.getSchoolId());
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
- this.wxPushService.wxPush(schoolDO.getSchoolAppid(),schoolDO.getSchoolSecret(),teacherDO.getOpenid(),"h0BkcnTo24b2jsficMeVO0B17GvE-VzlPvF0fVXea4w","有一个投票单需要您的支持",schoolDO.getSchoolName(),teacherMapper.get(creator).getTeacherName(),format.format(new Date()),vote.getVoteName(),"点击查看详情","");
|
|
|
+ this.wxPushApi.wxPush(schoolDO.getSchoolAppid(),schoolDO.getSchoolSecret(),teacherDO.getOpenid(),"h0BkcnTo24b2jsficMeVO0B17GvE-VzlPvF0fVXea4w","有一个投票单需要您的支持",schoolDO.getSchoolName(),teacherMapper.get(creator).getTeacherName(),format.format(new Date()),vote.getVoteName(),"点击查看详情","");
|
|
|
}
|
|
|
}
|
|
|
List<Long> stuId = JSON.parseArray(stuIds, Long.class);
|
|
|
@@ -112,7 +112,7 @@ public class WxVoteServiceImpl implements WxVoteService {
|
|
|
ParentsDO parentsDO = wxParentsMapper.get(ps.getParentId());
|
|
|
SchoolDO schoolDO = wxSchoolMapper.get(parentsDO.getSchoolId());
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
- this.wxPushService.wxPush(schoolDO.getSchoolAppid(), schoolDO.getSchoolSecret(), parentsDO.getOpenid(), "h0BkcnTo24b2jsficMeVO0B17GvE-VzlPvF0fVXea4w", "有一个投票单需要您的支持", schoolDO.getSchoolName(), teacherMapper.get(creator).getTeacherName(), format.format(new Date()), vote.getVoteName(), "点击查看详情", "");
|
|
|
+ this.wxPushApi.wxPush(schoolDO.getSchoolAppid(), schoolDO.getSchoolSecret(), parentsDO.getOpenid(), "h0BkcnTo24b2jsficMeVO0B17GvE-VzlPvF0fVXea4w", "有一个投票单需要您的支持", schoolDO.getSchoolName(), teacherMapper.get(creator).getTeacherName(), format.format(new Date()), vote.getVoteName(), "点击查看详情", "");
|
|
|
}
|
|
|
}
|
|
|
}
|