diff --git a/src/main/java/capstone/lip/landinformationportal/business/service/CrawledNewsService.java b/src/main/java/capstone/lip/landinformationportal/business/service/CrawledNewsService.java index d22231e9..ff090959 100644 --- a/src/main/java/capstone/lip/landinformationportal/business/service/CrawledNewsService.java +++ b/src/main/java/capstone/lip/landinformationportal/business/service/CrawledNewsService.java @@ -277,8 +277,10 @@ public Page findAllByAttribute(Map listAttribute, P for (Map.Entry meta : listAttribute.entrySet()) { String key = (String) meta.getKey(); String value = (String) meta.getValue(); - if (key.equals("crawledNewsStatus")) { - listSpec.add(new CrawledNewsSpecifications(new SearchCriteria(key, ":=", value))); + if (key.equals("crawledNewsTitle")) { + listSpec.add(new CrawledNewsSpecifications(new SearchCriteria(key, ":", value))); + }else { + listSpec.add(new CrawledNewsSpecifications(new SearchCriteria(key, ":=", value)));; } } } @@ -307,8 +309,10 @@ public long countByAttribute(Map listAttribute) { for (Map.Entry meta : listAttribute.entrySet()) { String key = (String) meta.getKey(); String value = (String) meta.getValue(); - if (key.equals("crawledNewsStatus")) { - listSpec.add(new CrawledNewsSpecifications(new SearchCriteria(key, ":=", value))); + if (key.equals("crawledNewsTitle")) { + listSpec.add(new CrawledNewsSpecifications(new SearchCriteria(key, ":", value))); + }else { + listSpec.add(new CrawledNewsSpecifications(new SearchCriteria(key, ":=", value)));; } } } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index ec05a573..6607806d 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -38,7 +38,7 @@ service.predictor.url=http://18.136.196.159/predictor/ service.token=Token b491e6a7c69eb9ea9a8237f19a8fc607606d83db #PostgreSQL online -spring.datasource.url=jdbc:postgresql://database-1.c4dxodf0guqt.ap-southeast-1.rds.amazonaws.com:5432/LIP_System_New +spring.datasource.url=jdbc:postgresql://database-1.c4dxodf0guqt.ap-southeast-1.rds.amazonaws.com:5432/LIP_System_Final spring.datasource.username=postgres spring.datasource.password=homersimpson #server.port=5000 diff --git a/src/main/webapp/admin/managecrawlnews.xhtml b/src/main/webapp/admin/managecrawlnews.xhtml index 56f1f270..1b2301c9 100644 --- a/src/main/webapp/admin/managecrawlnews.xhtml +++ b/src/main/webapp/admin/managecrawlnews.xhtml @@ -66,7 +66,7 @@ @@ -77,7 +77,7 @@ - + Tiêu đề #{element.crawledNewsTitle} @@ -95,8 +95,14 @@ - - Nguồn tin + + + + + + + + diff --git a/src/main/webapp/admin/managecrawlrealestate.xhtml b/src/main/webapp/admin/managecrawlrealestate.xhtml index 2b5f630c..4bbfa18c 100644 --- a/src/main/webapp/admin/managecrawlrealestate.xhtml +++ b/src/main/webapp/admin/managecrawlrealestate.xhtml @@ -64,7 +64,7 @@ + currentPageReportTemplate="{startRecord}-{endRecord} của {totalRecords} bản ghi"> @@ -40,7 +40,7 @@ - User + Tên đăng nhập