|
@@ -1816,8 +1816,10 @@ public class ExcelTabController extends BladeController {
|
|
|
List<ContractRelationJlyz> ContractRelationJlyzs = jdbcTemplate.query(sqlForSG, new BeanPropertyRowMapper<>(ContractRelationJlyz.class));
|
|
|
if (ObjectUtil.isNotEmpty(ContractRelationJlyzs)) {
|
|
|
List<Long> contractsIds = ContractRelationJlyzs.stream().map(ContractRelationJlyz::getContractIdSg).collect(Collectors.toList());
|
|
|
- String contractsIdsStr = StringUtils.join(contractsIds, ",");
|
|
|
- String sql1 = "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 in('" + contractsIdsStr + "')";
|
|
|
+ String contractsIdsStr = contractsIds.stream()
|
|
|
+ .map(id -> "'" + id + "'")
|
|
|
+ .collect(Collectors.joining(", "));;
|
|
|
+ String sql1 = "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 in(" + contractsIdsStr + ")";
|
|
|
maps = jdbcTemplate.queryForList(sql1);
|
|
|
}
|
|
|
}
|