|
@@ -1955,10 +1955,17 @@ public class ExcelTabController extends BladeController {
|
|
|
//如果上传文件前没有保存过,则直接生成一条基础数据
|
|
|
String sql = "select pdf_url,e_visa_pdf_url,pdf_trial_url,pdf_trial_url_position,status from u_information_query where classify='" + classify + "' and wbs_id='" + nodeId + "' and contract_id='" + contractId + "'";
|
|
|
List<Map<String, Object>> maps = jdbcTemplate.queryForList(sql);
|
|
|
- if (maps.size() == 0) {
|
|
|
+ if (maps == null || maps.size() == 0) {
|
|
|
+ WbsTreeContract contract = wbsTreeContractService.getById(pkeyId);
|
|
|
InformationQuery query = new InformationQuery();
|
|
|
query.setId(SnowFlakeUtil.getId());
|
|
|
query.setWbsId(Long.parseLong(nodeId));
|
|
|
+ query.setContractId(Long.parseLong(contractId));
|
|
|
+ query.setProjectId(Long.parseLong(projectId));
|
|
|
+ query.setClassify(Integer.parseInt(classify));
|
|
|
+ query.setCategory(contract.getNodeType());
|
|
|
+ query.setType((contract.getIsExpernode() == null || contract.getIsExpernode() <= 0) ? 1 : 2);
|
|
|
+ informationQueryClient.saveInfo(query);
|
|
|
}
|
|
|
excelTabService.getBussPdfs(nodeId, classify, contractId, projectId);
|
|
|
|