|
@@ -14,6 +14,8 @@ import org.springblade.archive.service.IArchiveExpertScoreService;
|
|
|
import org.springblade.core.log.exception.ServiceException;
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
+import org.springblade.manager.entity.ProjectInfo;
|
|
|
+import org.springblade.manager.feign.ProjectClient;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
@@ -25,6 +27,8 @@ public class ArchiveExpertConclusionServiceImpl extends BaseServiceImpl<ArchiveE
|
|
|
|
|
|
private final IArchiveExpertScoreService scoreService;
|
|
|
|
|
|
+ private final ProjectClient projectClient;
|
|
|
+
|
|
|
@Override
|
|
|
@Transactional
|
|
|
public R saveBaseTableInfo(Long projectId, String appUrl) {
|
|
@@ -35,6 +39,11 @@ public class ArchiveExpertConclusionServiceImpl extends BaseServiceImpl<ArchiveE
|
|
|
conclusion.setIsBuildScore(0);
|
|
|
conclusion.setStatus(1);
|
|
|
conclusion.setApproveStatus(0);
|
|
|
+ ProjectInfo info = projectClient.getById(projectId + "");
|
|
|
+ if (info == null){
|
|
|
+ return R.fail("获取项目信息失败");
|
|
|
+ }
|
|
|
+ conclusion.setTableTitle(info.getProjectName()+"项目档案验收报告");
|
|
|
this.save(conclusion);
|
|
|
//保存评分基础信息
|
|
|
scoreService.saveBaseScoreInfo(projectId);
|