Antiloveg 8 years ago
parent
commit
47f88e10cc

+ 3 - 5
src/main/java/com/goafanti/achievement/service/impl/AchievementServiceImpl.java

@@ -320,12 +320,10 @@ public class AchievementServiceImpl extends BaseMybatisDao<AchievementMapper> im
 	public Pagination<AchievementSearchListBo> listAchievementSearchList(Integer category, Integer maturity,
 			BigDecimal transferPriceLower, BigDecimal transferPriceUpper, Integer transferMode, String keyword,
 			Integer fieldA, Integer fieldB, Integer pNo, Integer pSize) {
-		if (StringUtils.isBlank(keyword)) {
-			return null;
-		}
 		Map<String, Object> params = new HashMap<>();
-		params.put("keyword", keyword);
-
+		if (!StringUtils.isBlank(keyword)) {
+			params.put("keyword", keyword);
+		}
 		if (null != category) {
 			params.put("category", category);
 		}

+ 3 - 5
src/main/java/com/goafanti/demand/service/impl/DemandServiceImpl.java

@@ -347,12 +347,10 @@ public class DemandServiceImpl extends BaseMybatisDao<DemandMapper> implements D
 	public Pagination<DemandSearchListBo> listDemandSearchList(String keyword, Integer industryCategoryA,
 			Integer industryCategoryB, Integer demandType, BigDecimal budgetCostLower, BigDecimal budgetCostUpper,
 			Integer pNo, Integer pSize) {
-		if (StringUtils.isBlank(keyword)) {
-			return null;
-		}
-		
 		Map<String, Object> params = new HashMap<>();
-		params.put("keyword", keyword);
+		if (!StringUtils.isBlank(keyword)) {
+			params.put("keyword", keyword);
+		}
 		
 		if (null != industryCategoryA){
 			params.put("industryCategoryA", industryCategoryA);