提交 0eeae113 编写于 作者: F fengjin

完善缴费未缴费列表当它为空时候也要显示

上级 d36edfd7
......@@ -316,7 +316,7 @@ public class HouseController {
//添加分页功能
PageData<House> houseList = houseService.queryBySateClean(number, size);
Map<String, Object> house = new HashMap<>();
if (houseList.getList() == null) {
if (houseList.getList().size() == 0) {
house.put("code", -1);
house.put("msg", "没有未打扫客房信息");
house.put("data", houseList);
......@@ -347,7 +347,7 @@ public class HouseController {
//添加分页功能
PageData<House> houseList = houseService.queryBySateMaintain(number, size);
Map<String, Object> house = new HashMap<>();
if (houseList.getList() == null) {
if (houseList.getList().size() == 0) {
house.put("code", -1);
house.put("msg", "没有待维修客房信息");
house.put("data", houseList);
......
......@@ -75,12 +75,23 @@
, defaultToolbar: ['filter', 'exports', 'print']
, cellMinWidth: 80
, parseData: function (res) {
if (res.code===-1)
{
return {
"code": res.code,
"msg": res.msg,
"count": res.data.totalSize,
"data": res.data.list
}
}else {
return {
"code": res.code,
"msg": res.msg,
"count": res.data.totalSize,
"data": res.data.list
}
}}
}
, title: '待打扫列表'
, cols: [[
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册