|
@@ -294,7 +294,7 @@ public class TrialDetectionController extends BladeController {
|
|
@ApiOperationSupport(order = 18)
|
|
@ApiOperationSupport(order = 18)
|
|
@ApiOperation(value = "自检多表PDF预览", notes = "传入nodeId=试验记录id、classify、contractId、projectId")
|
|
@ApiOperation(value = "自检多表PDF预览", notes = "传入nodeId=试验记录id、classify、contractId、projectId")
|
|
public R<Object> getPDFs(String nodeId, String classify, String contractId, String projectId) throws FileNotFoundException {
|
|
public R<Object> getPDFs(String nodeId, String classify, String contractId, String projectId) throws FileNotFoundException {
|
|
- String sql = "select pdf_url,e_visa_pdf_url from u_information_query where status in(1,2) and project_id ='" + projectId + "' and classify='" + classify + "' and wbs_id='" + nodeId + "' and contract_id ='" + contractId + "'";
|
|
|
|
|
|
+ String sql = "select pdf_url,e_visa_pdf_url from u_information_query where status in(0,1,2) and project_id ='" + projectId + "' and classify='" + classify + "' and wbs_id='" + nodeId + "' and contract_id ='" + contractId + "'";
|
|
List<Map<String, Object>> maps = jdbcTemplate.queryForList(sql);
|
|
List<Map<String, Object>> maps = jdbcTemplate.queryForList(sql);
|
|
if (maps.size() >= 1) {
|
|
if (maps.size() >= 1) {
|
|
Map<String, Object> stringObjectMap = maps.get(0);
|
|
Map<String, Object> stringObjectMap = maps.get(0);
|