| | |
| | | cmap.put("意见:", "不通过"); |
| | | if (StringUtils.isNotBlank(checkFundVO.getFlowcontent())) cmap.put("意见:", checkFundVO.getFlowcontent()); |
| | | contentList.add(cmap); |
| | | try{ |
| | | DingTalkReqVo dingTalkReqVo = new DingTalkReqVo(); |
| | | dingTalkReqVo.setTitle("财务系统驳回信息"); |
| | | dingTalkReqVo.setNumber(sysUser.getPhonenumber()); |
| | | dingTalkReqVo.setContents(contentList); |
| | | dingTalkService.sendNotification(dingTalkReqVo); |
| | | }catch (Exception e){ |
| | | log.error("费用---财务系统驳回信息报错了", e); |
| | | } |
| | | } |
| | | |
| | | serviceFund.setRecordstatus(RecordStatus); |
| | |
| | | serviceFundflow.setApplytype(serviceProcessVO.getApplytype()); |
| | | serviceFundflow.setFundid(StringUtils.isNotEmpty(serviceProcessVO.getBackCode()) ? Long.valueOf(serviceProcessVO.getBackCode()) : null); |
| | | fundflowService.save(serviceFundflow); |
| | | |
| | | try { |
| | | ArrayList<ConcurrentHashMap<String, Object>> contentList = new ArrayList<>(); |
| | | ConcurrentHashMap map = new ConcurrentHashMap(); |
| | | map.put("审批人:", serviceProcessVO.getCheckusername()); |
| | |
| | | dingTalkReqVo.setContents(contentList); |
| | | log.info("钉钉发送消息:{}", dingTalkReqVo); |
| | | dingTalkService.sendNotification(dingTalkReqVo); |
| | | } catch (Exception e) { |
| | | log.error("财务系统信息---钉钉消息发送失败,不影响主流程", e); |
| | | } |
| | | } |
| | | } |