java110
2022-05-11 62b325883b98587ff7950d979ebd548d97a352f9
service-job/src/main/java/com/java110/job/adapt/Repair/MachineDistributeLeaflets.java
@@ -354,12 +354,12 @@
        }
        String content = staffName + " 您有新的维修任务,维修信息如下:\n";
        content += ("> 标题:<front color=\"comment\">" + paramIn.getString("repairName") + "</front>");
        content += ("> 电话:<front color=\"comment\">" + paramIn.getString("tel") + "</front>");
        content += ("> 时间:<front color=\"comment\">" + paramIn.getString("time") + "</front>");
        content += ("> 内容:<front color=\"comment\">" + paramIn.getString("context") + "</front>");
        content += ("> 位置:<front color=\"comment\">" + address + "</front>");
        content += ("> 单号:<front color=\"comment\">" + paramIn.getString("repairId") + "</front>");
        content += ("> 标题:<font color=\"comment\">" + paramIn.getString("repairName") + "</font> \n");
        content += ("> 电话:<font color=\"comment\">" + paramIn.getString("tel") + "</font> \n");
        content += ("> 时间:<font color=\"comment\">" + paramIn.getString("time") + "</font> \n");
        content += ("> 内容:<font color=\"comment\">" + paramIn.getString("context") + "</font> \n");
        content += ("> 位置:<font color=\"comment\">" + address + "</font> \n");
        content += ("> 单号:<font color=\"comment\">" + paramIn.getString("repairId") + "</font> \n");
        rebootMarkdown.put("content", content);
        logger.info("发送消息内容:{}", content);
@@ -372,7 +372,6 @@
        }
        String imgUrl = MappingCache.getValue("IMG_PATH");
        imgUrl += (!StringUtil.isEmpty(imgUrl) && imgUrl.endsWith("/") ? "" : "/");
        FileRelDto fileRelDto = new FileRelDto();
        fileRelDto.setObjId(paramIn.getString("repairId"));
        List<FileRelDto> fileRelDtos = fileRelInnerServiceSMOImpl.queryFileRels(fileRelDto);
@@ -473,6 +472,12 @@
                templateMessage.setData(data);
                //获取业主公众号地址
                String wechatUrl = MappingCache.getValue("OWNER_WECHAT_URL");
                if(!StringUtil.isEmpty(wechatUrl) && wechatUrl.contains("?")){
                    wechatUrl += ("&wAppId=" + weChatDto.getAppId());
                }else{
                    wechatUrl += ("?wAppId=" + weChatDto.getAppId());
                }
                templateMessage.setUrl(wechatUrl);
                logger.info("发送模板消息内容:{}", JSON.toJSONString(templateMessage));
                ResponseEntity<String> responseEntity = outRestTemplate.postForEntity(url, JSON.toJSONString(templateMessage), String.class);