|
@@ -11,6 +11,8 @@ import org.apache.commons.lang.StringUtils;
|
|
|
import org.apache.commons.lang.time.DateUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
+import org.springblade.archive.entity.ArchiveProjectConfig;
|
|
|
+import org.springblade.archive.feign.ArchiveAutoClient;
|
|
|
import org.springblade.business.entity.*;
|
|
|
import org.springblade.business.mapper.TaskMapper;
|
|
|
import org.springblade.business.service.*;
|
|
@@ -114,6 +116,10 @@ public class TaskServiceImpl extends BaseServiceImpl<TaskMapper, Task> implement
|
|
|
|
|
|
private final CommonFileClient commonFileClient;
|
|
|
|
|
|
+ private ArchiveTreeContractClient archiveTreeContractClient;
|
|
|
+
|
|
|
+ private final ArchiveAutoClient archiveAutoClient;
|
|
|
+
|
|
|
|
|
|
@Autowired
|
|
|
StringRedisTemplate RedisTemplate;
|
|
@@ -1036,13 +1042,20 @@ public class TaskServiceImpl extends BaseServiceImpl<TaskMapper, Task> implement
|
|
|
}
|
|
|
|
|
|
//TODO 测试完成后打开
|
|
|
-// InformationQuery query = this.informationQueryService.getById(formDataId);
|
|
|
-// if (query != null) {
|
|
|
-// try {
|
|
|
-// archiveTreeContractClient.writeBusinessData(query.getWbsId(),query.getContractId(),formDataId);
|
|
|
-// } catch (Exception e) {
|
|
|
-// }
|
|
|
-// }
|
|
|
+ InformationQuery query = this.informationQueryService.getById(formDataId);
|
|
|
+ if (query != null) {
|
|
|
+
|
|
|
+ ArchiveProjectConfig archiveProjectConfig = archiveAutoClient.getByProjectIdOrNew(query.getProjectId());
|
|
|
+
|
|
|
+ //测试阶段,必须打开项目配置才能同步wbs节点
|
|
|
+ if (archiveProjectConfig!= null && archiveProjectConfig.getFactorType().contains("6")) {
|
|
|
+ //todo 等测试OK再打开
|
|
|
+ try {
|
|
|
+ archiveTreeContractClient.writeBusinessData(query.getWbsId(),query.getContractId(),formDataId);
|
|
|
+ } catch (Exception e) {
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|