|
|
|
@ -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,
|
|
|
|
|