|
@@ -1409,13 +1409,15 @@ public class TaskServiceImpl extends BaseServiceImpl<TaskMapper, Task> implement
|
|
|
//获取每条任务对应的节点信息
|
|
|
List<String> dataIdList = taskList.stream().map(Task::getFormDataId).filter(ObjectUtil::isNotEmpty).collect(Collectors.toList());
|
|
|
Map<String, String> queryMap = jdbcTemplate.query("select * from u_information_query where id in(" + StringUtils.join(dataIdList, ",") + ")", new BeanPropertyRowMapper<>(InformationQuery.class)).stream().collect(Collectors.toMap(l -> l.getId() + "", l -> l.getWbsId() + ""));
|
|
|
+ Map<String, String> typeMap = jdbcTemplate.query("select * from u_information_query where id in(" + StringUtils.join(dataIdList, ",") + ")", new BeanPropertyRowMapper<>(InformationQuery.class)).stream().collect(Collectors.toMap(l -> l.getId() + "", l -> l.getClassify() + ""));
|
|
|
+
|
|
|
try {
|
|
|
for (Task task : taskList) {
|
|
|
R result = new R();
|
|
|
if (type == 1) {
|
|
|
//重新保存
|
|
|
long startTime_1 = System.currentTimeMillis();
|
|
|
- result = this.saveNodePdf(classify, queryMap.get(task.getFormDataId()), contractId, projectId, header);
|
|
|
+ result = this.saveNodePdf(typeMap.get(task.getFormDataId()), queryMap.get(task.getFormDataId()), contractId, projectId, header);
|
|
|
long endTime_1 = System.currentTimeMillis();
|
|
|
long executionTime_1 = endTime_1 - startTime_1;
|
|
|
log.info("saveNodePdf执行时间:" + executionTime_1 + " 毫秒");
|