博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
关于easyUI实现自定义网格视图
阅读量:5301 次
发布时间:2019-06-14

本文共 6453 字,大约阅读时间需要 21 分钟。

一:前台代码如下

1   2   3   4 
5 Insert title here 6
7
8
9
10
11 12 13 14 15 16 17 18 19 20 21 70 71 72 73
74 75
76
77
78
79
80
标题/内容: 81
82
用户名: 83
84
频道: 85
94
品牌: 95
104
分类: 105 106
111
帖子状态: 112
118 119
120
121
发布时间:122
-123
124
查询125
126
127
全选128
反选129
置顶130
管理员删除131
取消置顶132
133
138
139 140
141
142
143 144
145
146
147 148 149
150
151
152 后台处理中。。。153
154
155 156 468 469

 

二:后台返回的数据格式

   后台返回的数据格式和经典的easyui的数据格式是一样的

  数据格式:

  {"total":67,"errmsg":"查询成功","errcode":1,"rows":[{"postId":77,"dealType":0,"title":"理解","partNo":null,"content":"理解[图片]","location":null,"tradeType":0,"brandId":0,"quantity":0,"contacts":"SakuraAoi","contactNumber":null,"color":null,"channelId":1,"createDate":"2018-10-16 10:12:19","updateDate":null,"status":0,"isDelete":0,"isAdmindel":0,"isTop":0,"replyNumber":0,"readNumber":0,"thumbNumber":0,"authorId":0,"isOem":0,"type":0,"amount":0.0,"channelPostAttach":[{"attachId":99,"postId":77,"uploadDate":1539655939000,"attachName":"record-attach/sell/371-20181016101221.png","type":10121001,"typeName":null,"attachNameUrl":""}],"nickName":"SakuraAoi","avatar":"","channelName":"新车交易","brandName":"长安铃木","startDate":null,"endDate":null,"brandIds":null,"channelIds":null,"strBrandIds":null,"strChannelIds":null,"begin":0,"end":0,"dealTypes":null,"isDeletes":null,"item":null,"value":0,"userId":0,"actId":0,"dealTypeName":null,"tradeTypeName":null,"isTopName":null,"createDate2":null}]}

三:视图效果

四:后台数据的获取

    后台数据的获取为一对多,因为一个帖子会包含多个图片附件。

  帖子实体类:

public class BsChannelPost {    private int postId;    private int dealType;    private String title;    private String partNo;    private String content;    private String location;    private int tradeType;    private int brandId;    private int quantity;    private String contacts;    private String contactNumber;    private String color;    private int channelId;    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")     private Date createDate;    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")     private Date updateDate;    private int status;    private int isDelete;    private int isAdmindel;    private int isTop;    private int replyNumber;    private int readNumber;    private int thumbNumber;    private int authorId;    private int isOem;    private int type;    private double amount;    private List
channelPostAttach;//附件 private String nickName; private String avatar; private String channelName; private String brandName; private String startDate; private String endDate; private List
brandIds; private List
channelIds; private String strBrandIds; private String strChannelIds; private int begin; private int end; private String dealTypes; private String isDeletes; private String item; private int value; private int userId; private int actId; private String dealTypeName; private String tradeTypeName; private String isTopName; private String createDate2;}

   附件实体类:

import lombok.Data;@Data//lombok 免写get setpublic class BsChannelPostAttach {    private int attachId;    private int postId;    private Date uploadDate;    private String attachName;    private int type;    private String typeName;    private String attachNameUrl;}

 

    dao: 

1 
2
3
4
5 6 9 10

转载于:https://www.cnblogs.com/GH0522/p/9796791.html

你可能感兴趣的文章
(转)Java中的String为什么是不可变的? -- String源码分析
查看>>
HNU 10362 A+B for Input-Output Practice (II)
查看>>
十. 图形界面(GUI)设计9.列表和组合框
查看>>
10.17动手动脑
查看>>
js index of()用法
查看>>
WPF中Image显示本地图片
查看>>
Windows Phone 7你不知道的8件事
查看>>
脚本删除文件下的文件
查看>>
实用拜占庭容错算法PBFT
查看>>
java b组 小计算器,简单计算器..
查看>>
java的二叉树树一层层输出,Java构造二叉树、树形结构先序遍历、中序遍历、后序遍历...
查看>>
php libevent 定时器,PHP 使用pcntl和libevent实现Timer功能
查看>>
php仿阿里巴巴,php实现的仿阿里巴巴实现同类产品翻页
查看>>
Node 中异常收集与监控
查看>>
七丶Python字典
查看>>
Excel-基本操作
查看>>
面对问题,如何去分析?(分析套路)
查看>>
Excel-逻辑函数
查看>>
面对问题,如何去分析?(日报问题)
查看>>
数据分析-业务知识
查看>>