|
@ -1088,7 +1088,7 @@ public class FamilyContractService extends BaseService {
|
|
|
pagesize = 10;
|
|
|
}
|
|
|
// 排序
|
|
|
Sort sort = new Sort(Direction.DESC, "czrq");
|
|
|
Sort sort = new Sort(Direction.DESC, "id");
|
|
|
// sort.and(new Sort(Direction.DESC,"read"));
|
|
|
// sort.and(new Sort(Direction.DESC,"czrq"));
|
|
|
|
|
@ -1102,8 +1102,8 @@ public class FamilyContractService extends BaseService {
|
|
|
}
|
|
|
// 只查询未处理的消息
|
|
|
filters.put("type", new SearchFilter("type", Operator.EQ, 1));
|
|
|
// filters.put("over", new SearchFilter("over", Operator.EQ, 1));
|
|
|
// filters.put("read", new SearchFilter("read", Operator.EQ, 1));
|
|
|
filters.put("over", new SearchFilter("over", Operator.EQ, 1));
|
|
|
filters.put("read", new SearchFilter("read", Operator.EQ, 1));
|
|
|
Specification<Message> spec = DynamicSpecifications.bySearchFilter(filters.values(), Message.class);
|
|
|
return messageDao.findAll(spec, pageRequest);
|
|
|
}
|