Procházet zdrojové kódy

企业微信推送失败

hurugang před 3 roky
rodič
revize
a4e788fc7b

+ 1 - 1
src/main/java/cn/hnthyy/thmz/mapper/his/YpMzFytjMapper.java

@@ -51,7 +51,7 @@ public interface YpMzFytjMapper {
             " where patient_id = #{patientId} and times = #{times} and confirm_flag =3 and bill_item_code in('010','011') ")
     List<YpMzFytj> selectXyTyYpMzFytj(@Param(value = "patientId") String patientId, @Param("times") Integer times);
 
-    
+
 
 
     /**

+ 3 - 2
src/main/java/cn/hnthyy/thmz/service/impl/thmz/MessageServiceImpl.java

@@ -7,11 +7,11 @@ import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.scheduling.annotation.Async;
 import org.springframework.stereotype.Service;
-@Slf4j
-@Service
 /**
  * 企业微信信息服务
  */
+@Slf4j
+@Service
 public class MessageServiceImpl implements MessageService {
     @Value("${serviceUrl}")
     private String serviceUrl;
@@ -27,6 +27,7 @@ public class MessageServiceImpl implements MessageService {
         try {
             String url = serviceUrl+"?touser="+touser+"&content="+content;
             HttpUtil.sendHttpGet(url, "utf-8");
+            log.info("发送企业微信通知,消息内容{}",content);
         } catch (Exception e) {
             e.printStackTrace();
             return 0;