|
@@ -102,6 +102,9 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
|
|
|
@Resource
|
|
|
private ClueMapper clueMapper;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private ActionLogMapper logMapper;
|
|
|
+
|
|
|
@Resource
|
|
|
private ContactsMapper contactsMapper;
|
|
|
|
|
@@ -172,9 +175,14 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
|
|
|
taskLog.setUserName(user.getName());
|
|
|
taskLog.setCompanyId(user.getCompanyId());
|
|
|
taskLogMapper.insert(taskLog);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ if (taskDto.getBusinessOpportunityId() != null){
|
|
|
+ ActionLog actionLog = new ActionLog();
|
|
|
+ actionLog.setCreatTime(new Date());
|
|
|
+ actionLog.setUserId(userId);
|
|
|
+ actionLog.setName("新建了相关任务");
|
|
|
+ actionLog.setItemId(taskDto.getBusinessOpportunityId());
|
|
|
+ logMapper.insert(actionLog);
|
|
|
+ }
|
|
|
return httpRespMsg;
|
|
|
}
|
|
|
|