|
@@ -143,6 +143,8 @@ public class ExcelTabController extends BladeController {
|
|
|
|
|
|
private final IContractInfoService contractInfoService;
|
|
|
|
|
|
+ private final IWbsParamService wbsParamService;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 详情
|
|
@@ -1957,6 +1959,8 @@ public class ExcelTabController extends BladeController {
|
|
|
List<Map<String, Object>> maps = jdbcTemplate.queryForList(sql);
|
|
|
if (maps == null || maps.size() == 0) {
|
|
|
WbsTreeContract contract = wbsTreeContractService.getOne(new LambdaQueryWrapper<WbsTreeContract>().eq(WbsTreeContract::getPKeyId,nodeId));
|
|
|
+ String fileName = this.wbsParamService.createFileTitle(Func.isNotEmpty(contract.getOldId()) ? Long.valueOf(contract.getOldId()) : contract.getId(), Long.parseLong(contract.getContractId()), contract);
|
|
|
+ fileName = StringUtils.isNotEmpty(fileName) ? fileName : "缺少文件提名配置";
|
|
|
InformationQuery query = new InformationQuery();
|
|
|
query.setId(SnowFlakeUtil.getId());
|
|
|
query.setWbsId(Long.parseLong(nodeId));
|
|
@@ -1965,6 +1969,9 @@ public class ExcelTabController extends BladeController {
|
|
|
query.setClassify(Integer.parseInt(classify));
|
|
|
query.setCategory(contract.getNodeType());
|
|
|
query.setType((contract.getIsExpernode() == null || contract.getIsExpernode() <= 0) ? 1 : 2);
|
|
|
+ query.setName(fileName);
|
|
|
+ query.setCreateTime(new Date());
|
|
|
+ query.setFileUserIdAndName(AuthUtil.getUserId()+"-"+AuthUtil.getUserName());
|
|
|
informationQueryClient.saveInfo(query);
|
|
|
}
|
|
|
excelTabService.getBussPdfs(nodeId, classify, contractId, projectId);
|