master
wangning 7 years ago
parent bc20a8a3dc
commit 00cfd7cb96

@ -9,6 +9,7 @@ import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.Paginator;
import org.apache.commons.lang3.StringUtils;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
@ -43,6 +44,7 @@ public class OperationLogServiceImpl implements OperationLogService {
if (params.getIntValue("client_id") != 0) {
query.addCriteria(Criteria.where("clientId").is(params.getIntValue("client_id")));
}
query.with(new PageRequest(pageBounds.getPage()-1, pageBounds.getLimit()));
query.addCriteria(Criteria.where("createTime").gt((params.getDate("begin"))).lt(params.getDate("end")));
List<ClientConfigLog> clientConfigLogList = mongoTemplate.find(query, ClientConfigLog.class);
return buildPageListResult(clientConfigLogList,

@ -38,8 +38,9 @@
</button>
</div>
</div>
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped">
<div class="panel panel-default">
<div class="panel-body table-responsive">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>business</th>
@ -64,6 +65,7 @@
</tbody>
</table>
</div>
</div>
<div class="panel-footer" ng-if="pagination.totalPages>1">
<uib-pagination class="pagination"
total-items="pagination.totalCount"

Loading…
Cancel
Save