Browse Source

git-svn-id: https://192.168.57.71/svn/hbghj@118 201dd7a2-ec1b-f84b-8b06-88221118ff88

ld_liufl 8 years ago
parent
commit
5b837301c8

+ 4 - 1
gkaq/yjpt-java/trunk/java_src/com/jtgh/yjpt/controller/gg/GgController.java

@@ -19,6 +19,7 @@ import com.jtgh.yjpt.common.Constants;
 import com.jtgh.yjpt.common.MsgLevel;
 import com.jtgh.yjpt.common.PredicateModel;
 import com.jtgh.yjpt.common.PredicateModel.Operator;
+import com.jtgh.yjpt.common.SinglePageRequest;
 import com.jtgh.yjpt.common.SpecificationCreater;
 import com.jtgh.yjpt.common.Utils;
 import com.jtgh.yjpt.controller.BaseController;
@@ -82,7 +83,9 @@ public class GgController extends BaseController {
 				BaseEntity.RECORD_STATE_DELETE, Operator.NEQ);
 		Specification<GgEntity> spec = SpecificationCreater
 				.searchByPredicateModels(filterList);
-		Page<GgEntity> pageList = ggService.findAll(spec, pageable);
+		SinglePageRequest page = new SinglePageRequest(
+				pageable.getPageNumber(), pageable.getPageSize(), "desc", "id");
+		Page<GgEntity> pageList = ggService.findAll(spec, page);
 		for (GgEntity gg : pageList) {
 			gg = loadAccessory(gg);
 			if (!CollectionUtils.isEmpty(gg.getViewList())) {