|
@@ -374,10 +374,12 @@ public class TaskController {
|
|
.setTime(new Date()).setChecked(0).setPath("/tasks");
|
|
.setTime(new Date()).setChecked(0).setPath("/tasks");
|
|
informationArrayList.add(information);
|
|
informationArrayList.add(information);
|
|
User user = userMapper.selectById(userId);
|
|
User user = userMapper.selectById(userId);
|
|
- WxCorpInfo corpinfo = wxCorpInfoMapper.selectOne(new QueryWrapper<WxCorpInfo>().eq("company_id", user.getCompanyId()));
|
|
|
|
- if (corpinfo!=null&&corpinfo.getSaasSyncContact()==1) {
|
|
|
|
- wxCorpInfoService.sendWXCorpMsg(corpinfo, user.getCorpwxUserid(), msg, null, WxCorpInfoServiceImpl.TEXT_CARD_MSG_TASK);
|
|
|
|
- log.info("给{}发送信息:{}",user.getCorpwxUserid(),msg);
|
|
|
|
|
|
+ if (user!=null) {
|
|
|
|
+ WxCorpInfo corpinfo = wxCorpInfoMapper.selectOne(new QueryWrapper<WxCorpInfo>().eq("company_id", user.getCompanyId()));
|
|
|
|
+ if (corpinfo != null && corpinfo.getSaasSyncContact() == 1) {
|
|
|
|
+ wxCorpInfoService.sendWXCorpMsg(corpinfo, user.getCorpwxUserid(), msg, null, WxCorpInfoServiceImpl.TEXT_CARD_MSG_TASK);
|
|
|
|
+ log.info("给{}发送信息:{}", user.getCorpwxUserid(), msg);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
informationService.saveBatch(informationArrayList);
|
|
informationService.saveBatch(informationArrayList);
|