Commit e0bc23b9 by 王祖波

多业务自动建联

parent ba9e2d86
...@@ -346,12 +346,15 @@ public class ContactLogServiceImpl implements ContactLogService { ...@@ -346,12 +346,15 @@ public class ContactLogServiceImpl implements ContactLogService {
return; return;
} }
logger.info("自动建联:{}", JSON.toJSONString(qdto)); logger.info("自动建联:{}", JSON.toJSONString(qdto));
try { for (ContactBizTypeEnum bizTypeEnum : ContactBizTypeEnum.values()) {
qdto.setFollowType(ContactFollowTypeEnum.AUTO_CONTACT.getCode()); try {
qdto.setFollowRemark("因" + ContactAutoTypeEnum.fromCode(contactAutoType).getDescription() + ",系统自动标记了建联"); qdto.setBizType(bizTypeEnum.getType());
saveContactLog(qdto); qdto.setFollowType(ContactFollowTypeEnum.AUTO_CONTACT.getCode());
} catch (BusinessException e) { qdto.setFollowRemark("因" + ContactAutoTypeEnum.fromCode(contactAutoType).getDescription() + ",系统自动标记了建联");
logger.info("自动建联异常:{}", e.getMessage()); saveContactLog(qdto);
} catch (BusinessException e) {
logger.info("自动建联异常:{}", e.getMessage());
}
return; return;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment