|
@@ -425,7 +425,7 @@ public class CheckAndRepairController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/checkNodePdfByClsssify")
|
|
|
- @Scheduled(cron = "00 40 16 * * ?")
|
|
|
+ //@Scheduled(cron = "00 10 17 * * ?")
|
|
|
public void checkNodePdfByClsssify() throws FileNotFoundException {
|
|
|
String sql="select id,wbs_id,classify,pdf_url,e_visa_pdf_url FROM u_information_query WHERE project_id in(1750070685257990145,1795277868551389185) AND is_deleted=0 AND node_pdf_url is NOT NULL AND status in(0,1,2)";
|
|
|
List<InformationQuery> informationQueryList = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(InformationQuery.class));
|
|
@@ -433,8 +433,9 @@ public class CheckAndRepairController {
|
|
|
int i=1;
|
|
|
for (InformationQuery informationQuery : informationQueryList) {
|
|
|
List<String> pdfs=new ArrayList<>();
|
|
|
- String sql1="select domain_pdf_url from m_table_file where tab_id="+informationQuery.getWbsId()+" and classify="+informationQuery.getClassify()+" and is_deleted=0 order by sort ASC";
|
|
|
- List<String> tableFileList = jdbcTemplate.query(sql1, new SingleColumnRowMapper<>(String.class));
|
|
|
+ String sql1="select domain_pdf_url from m_table_file where tab_id="+informationQuery.getWbsId()+" and classify="+informationQuery.getClassify()+" and domain_pdf_url is not null and is_deleted=0 order by sort ASC";
|
|
|
+ List<String> tableFileList = jdbcTemplate.query(sql1,new SingleColumnRowMapper<>(String.class));
|
|
|
+ tableFileList=tableFileList.stream().filter(StringUtils::isNotEmpty).collect(Collectors.toList());
|
|
|
if(!tableFileList.isEmpty()){
|
|
|
String informationQueryPdf=StringUtils.isNotEmpty(informationQuery.getEVisaPdfUrl())?informationQuery.getEVisaPdfUrl():informationQuery.getPdfUrl();
|
|
|
pdfs.add(informationQueryPdf);
|