日志分页增加最后一页last跟总记录数count显示,同配置分页
This commit is contained in:
@@ -9,6 +9,7 @@ import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.http.client.ClientProtocolException;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
@@ -81,7 +82,8 @@ public class DkBehaviorLogController extends BaseController{
|
||||
|
||||
if (fromJson.getStatus().intValue() == 200) {
|
||||
Page<DkBehaviorLog> data = fromJson.getData();
|
||||
page.setList(data.getList());
|
||||
BeanUtils.copyProperties(fromJson.getData(), page, new String[] {"pageSize","pageNo"});
|
||||
page.setList(fromJson.getData().getList());
|
||||
List<DkBehaviorLog> list = page.getList();
|
||||
for (DkBehaviorLog l : list) {
|
||||
l.setFunctionId(entry.getFunctionId());
|
||||
|
||||
Reference in New Issue
Block a user