Commit d306237c authored by 赵啸非's avatar 赵啸非

添加大厅与窗口关联

parent 0bcbacc7
......@@ -12421,6 +12421,78 @@ dict|object|字典对象
}
```
### 根据大厅查询所属业务列表
**请求URL:** window/hall/getBusinessByHall
**请求方式:** POST
**内容类型:** application/json;charset=utf-8
**简要描述:** 根据大厅查询所属业务列表
**请求参数:**
参数名称|类型|必填|描述
:---|:--|:---|:------
id|Long|是|大厅Id
**请求样例:**
```
{
"id":1
}
```
**响应参数:**
参数名称 |参数类型|备注|其它
---|---|---|---
code|Integer|结果码(-1.失败,1.成功)|-
msg|String|消息|-
data|object|数据对象|-
 per_page|Integer|每页条数|-
 total|Integer|总条数|-
 last_page|Integer|总页数|-
 current_page|Integer|当前页|-
 data|array|结果集列表|数组
  id|Long|序号,主键,自增长|-
  siteId|Long|站点ID|-
  siteName|String|站点名称|-
  ancestors|String|祖级列表,逗号分隔|-
  businessId|Long|业务ID|-
  isBusiness|Integer|业务类型(0.一级业务,1.二级业务)|-
  parentId|Long|业务父级ID|-
  businessName|String|业务名称|-
  status|Integer|业务状态 (0.停用,1.正常)|-
  createTime|Date|创建时间|-
  createUserId|Long|创建用户|-
  updateTime|Date|修改时间|-
dict|object|字典对象|-
 isBusiness|object|字典属性对象,详见附录|-
 status|object|字典属性对象,详见附录|-
**响应消息样例:**
```
{
"code":1,
"data":{
"per_page":10,
"total":0,
"data":[],
"last_page":0,
"current_page":1
},
"query":{
"modelCode":"phxt1",
"modelName":"排号系统"
}
}
```
### 查看站点大厅信息
**请求URL:** site/hall/info
......@@ -12647,65 +12719,6 @@ dict|object|字典对象
```
### 根据大厅查询所属业务列表
**请求URL:** window/hall/getBusinessByHall
**请求方式:** POST
**内容类型:** application/json;charset=utf-8
**简要描述:** 根据大厅查询所属业务列表
**请求参数:**
参数名称|类型|必填|描述
:---|:--|:---|:------
id|Long|是|大厅Id
size|Integer|否|每页条数,值为-1,查询所有记录
**请求样例:**
```
{
"page":1,
"size":10
}
```
**响应参数:**
参数名称|参数类型|描述
:---|:---|:------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
 per_page|Integer|每页条数
 total|Integer|总条数
 last_page|Integer|总页数
 current_page|Integer|当前页
 data|array|结果集列表|数组
  id|Long|序号,主键,自增长
  windowId|Long|窗口ID
  windowName|String|窗口名称
  hallId|Long|大厅ID
  hallName|String|大厅名称
  sort|Integer|排序
  remark|String|备注
  createTime|Date|创建时间
  createUserId|Long|创建用户
  updateTime|Date|修改时间
dict|object|字典对象
**响应消息样例:**
```
{
"code":1,
"data":{
}
}
```
### 查看大厅窗口
**请求URL:** window/hall/info
......
package com.mortals.xhx.module.window.model.vo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.window.model.WindowBusinessEntity;
import lombok.Data;
......@@ -31,10 +33,12 @@ public class WindowBusinessVo extends BaseEntityLong {
/**
* 大厅ID
*/
@JsonInclude(JsonInclude.Include.ALWAYS)
private Long hallId;
/**
* 大厅名称
*/
@JsonInclude(JsonInclude.Include.ALWAYS)
private String hallName;
......
......@@ -62,9 +62,10 @@ public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBus
if (!ObjectUtils.isEmpty(item.getWindowId()) && !ObjectUtils.isEmpty(collect.get(item.getWindowId()))) {
item.setFromnum(collect.get(item.getWindowId()).getFromnum());
WindowHallEntity windowHallEntity = windowHallEntityMap.get(item.getWindowId());
item.setHallId(windowHallEntity.getHallId() == null ? null : windowHallEntity.getWindowId());
item.setHallName(windowHallEntity.getHallName() == null ? "" : windowHallEntity.getHallName());
if(!ObjectUtils.isEmpty(windowHallEntity)){
item.setHallId( windowHallEntity.getWindowId());
item.setHallName( windowHallEntity.getHallName());
}
} else {
iterator.remove();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment