| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.ruoyi.common.config.WechatConfig; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.domain.*; |
| | |
| | | @Autowired |
| | | private IQyWechatService qyWechatService; |
| | | |
| | | |
| | | @Autowired |
| | | private WechatConfig wechatConfig; |
| | | |
| | | @Autowired |
| | | private ISysEmergencyTaskService sysEmergencyTaskService; |
| | |
| | | if(emergency==null){ |
| | | return false; |
| | | } |
| | | Long dispatchOrderId = emergency.getLegacyDispatchOrdId(); |
| | | String oldsiteUrl= sysConfigService.selectConfigByKey("oldsite.url"); |
| | | if(oldsiteUrl==null){ |
| | | oldsiteUrl="https://sys.966120.com.cn/m_DispatchOrder.gds?DispatchOrdID="; |
| | | } |
| | | String url=oldsiteUrl+dispatchOrderId; |
| | | // Long dispatchOrderId = emergency.getLegacyDispatchOrdId(); |
| | | // String oldsiteUrl= sysConfigService.selectConfigByKey("oldsite.url"); |
| | | // if(oldsiteUrl==null){ |
| | | // oldsiteUrl="https://sys.966120.com.cn/m_DispatchOrder.gds?DispatchOrdID="; |
| | | // } |
| | | String appId=wechatConfig.getAppId(); |
| | | String pathPage="/pagesTask/detail?id="+taskId; |
| | | // 发送企业微信消息 |
| | | boolean success = qyWechatService.sendNotifyMessage( |
| | | notifyTask.getUserId(), |
| | | notifyTask.getTitle(), |
| | | notifyTask.getContent(),url |
| | | notifyTask.getContent(),appId,pathPage |
| | | ); |
| | | |
| | | if (success) { |