|
@@ -84,6 +84,8 @@ public class ContactsServiceImpl extends ServiceImpl<ContactsMapper, Contacts> i
|
|
|
|
|
|
@Resource
|
|
|
private StageMapper stageMapper;
|
|
|
+ @Resource
|
|
|
+ private ActionLogMapper logMapper;
|
|
|
|
|
|
@Value(value = "${upload.path}")
|
|
|
private String path;
|
|
@@ -127,7 +129,15 @@ public class ContactsServiceImpl extends ServiceImpl<ContactsMapper, Contacts> i
|
|
|
.setCreateTime(LocalDateTime.now())
|
|
|
.setCreatorId(user.getId());
|
|
|
contactsMapper.insert(contacts);
|
|
|
-
|
|
|
+ if (contacts.getCustomId() != null){
|
|
|
+ ActionLog actionLog = new ActionLog();
|
|
|
+ actionLog.setCreatTime(new Date())
|
|
|
+ .setUserId(user.getId())
|
|
|
+ .setCode("custom")
|
|
|
+ .setName("新建了相关联系人")
|
|
|
+ .setItemId(contacts.getCustomId());
|
|
|
+ logMapper.insert(actionLog);
|
|
|
+ }
|
|
|
ContactsLog contactsLog = new ContactsLog();
|
|
|
contactsLog.setContactsId(contacts.getId())
|
|
|
.setOperateId(user.getId())
|