| | |
| | | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.bean.DtoConversionUtils; |
| | | import com.ruoyi.project.common.FundNotifyMessageBuilder; |
| | | import com.ruoyi.project.domain.*; |
| | | import com.ruoyi.project.domain.vo.DingTalkReqVo; |
| | | import com.ruoyi.project.service.*; |
| | |
| | | serviceFundService.updateById(serviceFund1); |
| | | |
| | | SysUser sysUser = sysUserService.selectUserByUserName(serviceFund1.getUserno()); |
| | | sendMeg(split, sysUser.getPhonenumber(), serviceFundShared.getApplytype(), 2, serviceFundShared.getSerfunid()); |
| | | // sendMeg(split, sysUser.getPhonenumber(), serviceFundShared.getApplytype(), 2, serviceFundShared.getSerfunid()); |
| | | //发送信息保存 |
| | | ServiceSystemmessage serviceSystemmessage = new ServiceSystemmessage(); |
| | | serviceSystemmessage.setFundtype(1); |
| | |
| | | |
| | | SysUser sysUser = sysUserService.selectUserByUserName(serviceReimbursement1.getUserno()); |
| | | //发送信息保存 |
| | | sendMeg(split, sysUser.getPhonenumber(), "0" , 1, serviceReimbursementShared.getReimid()); |
| | | // sendMeg(split, sysUser.getPhonenumber(), "0" , 1, serviceReimbursementShared.getReimid()); |
| | | ServiceSystemmessage serviceSystemmessage = new ServiceSystemmessage(); |
| | | serviceSystemmessage.setFundtype(1); |
| | | serviceSystemmessage.setSenduserno(sysUser.getUserName()); |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 财务系统驳回信息钉钉通知(定时任务用)。 |
| | | * |
| | | * @deprecated 2026-10-08 核实:本方法**已无调用方**(原调用点在本类中已注释), |
| | | * 且 {@code sys_job} 中没有任何任务指向它,属于死代码。 |
| | | * 与"钉钉失败补偿/重试"无关,请勿据此认为存在补偿机制。保留仅为避免误删历史逻辑。 |
| | | */ |
| | | @Deprecated |
| | | public void sendMeg(String[] split, String phone, String applyType, Integer fundType, Long fundId) throws ApiException { |
| | | String content = null; |
| | | String time = null; |
| | |
| | | map.put("意见:" , content); |
| | | contentList.add(map); |
| | | DingTalkReqVo dingTalkReqVo = new DingTalkReqVo(); |
| | | dingTalkReqVo.setTitle("财务系统驳回信息"); |
| | | dingTalkReqVo.setTitle(FundNotifyMessageBuilder.TITLE); |
| | | dingTalkReqVo.setNumber(phone); |
| | | dingTalkReqVo.setContents(contentList); |
| | | log.info("钉钉发送消息:{}" , dingTalkReqVo); |