|
@@ -1518,7 +1518,7 @@ public class ExcelTabController extends BladeController {
|
|
|
@ApiImplicitParam(name = "contractId", value = "合同段Id", required = true)
|
|
|
})
|
|
|
public R getpdfs(String nodeId, String classify, String contractId, String projectId) {
|
|
|
- String sql = "select pdf_url, e_visa_pdf_url from u_information_query where classify='" + classify + "' and wbs_id='" + nodeId + "' and contract_id ='" + contractId + "' ";
|
|
|
+ String sql = "select pdf_url, e_visa_pdf_url,pdf_trial_url 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 != null && maps.size() >= 1) {
|
|
@@ -1528,12 +1528,17 @@ public class ExcelTabController extends BladeController {
|
|
|
//优先使用电签的PDF
|
|
|
pdfUrl = stringObjectMap.get("e_visa_pdf_url");
|
|
|
}
|
|
|
+
|
|
|
+ if (stringObjectMap.get("pdf_trial_url") != null){
|
|
|
+ //优先使用试验合并的PDF
|
|
|
+ pdfUrl = stringObjectMap.get("pdf_trial_url");
|
|
|
+ }
|
|
|
+
|
|
|
if(StringUtils.isEmpty(pdfUrl+"")){
|
|
|
return R.fail(300,"无数据");
|
|
|
}else{
|
|
|
return R.data(pdfUrl);
|
|
|
}
|
|
|
-
|
|
|
} else {
|
|
|
return R.fail("无历史数据预览,请保存数据");
|
|
|
}
|