ソースを参照

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

anderx 8 年 前
コミット
e31e21950c
共有1 個のファイルを変更した3 個の追加0 個の削除を含む
  1. 3 0
      src/main/java/com/goafanti/portal/controller/PortalSearchController.java

+ 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);
 		}