Browse Source

增加日志打印

lilt085163@126.com 3 years ago
parent
commit
ac510ca38c

+ 8 - 0
src/main/java/com/care/common/service/impl/CareEventOrderServiceImpl.java

@@ -186,6 +186,8 @@ public class CareEventOrderServiceImpl extends ServiceImpl<CareEventOrderMapper,
                             his2.setCreateTime(DateUtil.date());
                             his2.setCreateTime(DateUtil.date());
                             his2.setRelationTypeDesc(item.getRelationTypeDesc());
                             his2.setRelationTypeDesc(item.getRelationTypeDesc());
                             this.careEventOrderHandleHisService.save(his2);
                             this.careEventOrderHandleHisService.save(his2);
+                        }else{
+                            log.error(" 事件短信通知失败 : 工单ID:{}, 联系人:{}",order.getId(),item);
                         }
                         }
                     });
                     });
                 }
                 }
@@ -211,6 +213,8 @@ public class CareEventOrderServiceImpl extends ServiceImpl<CareEventOrderMapper,
                             his2.setCreateTime(DateUtil.date());
                             his2.setCreateTime(DateUtil.date());
                             his2.setRelationTypeDesc("管家");
                             his2.setRelationTypeDesc("管家");
                             this.careEventOrderHandleHisService.save(his2);
                             this.careEventOrderHandleHisService.save(his2);
+                        }else{
+                            log.error(" 事件短信通知失败 : 工单ID:{}, 联系人:{}",order.getId(),item);
                         }
                         }
                     });
                     });
                 }
                 }
@@ -257,6 +261,8 @@ public class CareEventOrderServiceImpl extends ServiceImpl<CareEventOrderMapper,
                             his2.setCreateTime(DateUtil.date());
                             his2.setCreateTime(DateUtil.date());
                             his2.setRelationTypeDesc(item.getRelationTypeDesc());
                             his2.setRelationTypeDesc(item.getRelationTypeDesc());
                             this.careEventOrderHandleHisService.save(his2);
                             this.careEventOrderHandleHisService.save(his2);
+                        }else{
+                            log.error(" 事件语音通知失败 : 工单ID:{}, 联系人:{}",order.getId(),item);
                         }
                         }
                     });
                     });
                 }
                 }
@@ -285,6 +291,8 @@ public class CareEventOrderServiceImpl extends ServiceImpl<CareEventOrderMapper,
                             his2.setCreateTime(DateUtil.date());
                             his2.setCreateTime(DateUtil.date());
                             his2.setRelationTypeDesc("管家");
                             his2.setRelationTypeDesc("管家");
                             this.careEventOrderHandleHisService.save(his2);
                             this.careEventOrderHandleHisService.save(his2);
+                        }else{
+                            log.error(" 事件语音短信通知失败 : 工单ID:{}, 联系人:{}",order.getId(),item);
                         }
                         }
                     });
                     });
                 }
                 }