|
@@ -15,6 +15,7 @@ import com.management.platform.service.SysFunctionService;
|
|
|
import com.management.platform.service.UserService;
|
|
|
import com.management.platform.service.WxCorpInfoService;
|
|
|
import com.management.platform.util.HttpRespMsg;
|
|
|
+import org.apache.poi.ss.formula.functions.T;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -49,6 +50,8 @@ public class ClueServiceImpl extends ServiceImpl<ClueMapper, Clue> implements Cl
|
|
|
@Autowired
|
|
|
private ClueMapper clueMapper;
|
|
|
@Autowired
|
|
|
+ private TaskMapper taskMapper;
|
|
|
+ @Autowired
|
|
|
private ClueUploadfileMapper clueUploadfileMapper;
|
|
|
@Resource
|
|
|
private WxCorpInfoService wxCorpInfoService;
|
|
@@ -165,6 +168,23 @@ public class ClueServiceImpl extends ServiceImpl<ClueMapper, Clue> implements Cl
|
|
|
Clue clue1 = clueMapper.selectById(clue.getId());
|
|
|
clue1.setClueLogList(actionLogMapper.selectByInfoList(clue1));
|
|
|
clue1.setFiles(uploadFileMapper.selectByInfoList(clue1));
|
|
|
+ List<Task> tasks = taskMapper.selectList(new QueryWrapper<Task>().in("clue_id", clue.getId()));
|
|
|
+ for (Task task : tasks) {
|
|
|
+ String executorId = task.getExecutorId();
|
|
|
+ List<String> ids1 = new ArrayList<>();
|
|
|
+ List<String> userNames = new ArrayList<>();
|
|
|
+ if (!executorId.isEmpty()) {
|
|
|
+ for (String id : executorId.split(",")) {
|
|
|
+ ids1.add(id);
|
|
|
+ }
|
|
|
+ List<User> users = userMapper.selectList(new QueryWrapper<User>().in("id", ids1));
|
|
|
+ for (User user : users) {
|
|
|
+ userNames.add(user.getName());
|
|
|
+ }
|
|
|
+ task.setExecutorNames(userNames);
|
|
|
+ }
|
|
|
+ clue1.setTaskList(tasks);
|
|
|
+ }
|
|
|
return clue1;
|
|
|
}
|
|
|
|