Browse Source

科技需求设置默认排序方式

anderx 8 years ago
parent
commit
e31e21950c

+ 3 - 0
src/main/java/com/goafanti/portal/controller/PortalSearchController.java

@@ -126,6 +126,9 @@ public class PortalSearchController extends BaseController {
 			res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "查询标记"));
 			return res;
 		}
+		if (null==dateSort) {
+			dateSort=0;
+		}
 		if (StringUtils.isNumeric(pageSize)) {
 			pSize = Integer.parseInt(pageSize);
 		}