开发登机门、值机岛、航站楼基础数据
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
package com.gzzn.omms.adminapi.controller.basicdata;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.gzzn.omms.adminapi.domain.secondary.dao.basicdata.OrmsGateDao;
|
||||||
|
import com.gzzn.omms.adminapi.domain.secondary.entity.baiscdata.OrmsGate;
|
||||||
|
import com.gzzn.omms.adminapi.dto.ResponseDto;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 登机门
|
||||||
|
* @author nyr
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
public class OrmsGateController {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 登机门接口
|
||||||
|
*/
|
||||||
|
@Autowired
|
||||||
|
private OrmsGateDao ormsGateDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取所有登机门数据
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping(value="/basicdata/ormsGates")
|
||||||
|
public ResponseDto getOrmsGate() {
|
||||||
|
List<OrmsGate> ormsGatelist = (List<OrmsGate>) ormsGateDao.findAll();
|
||||||
|
return ResponseDto.success(ormsGatelist);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
package com.gzzn.omms.adminapi.controller.basicdata;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.gzzn.omms.adminapi.domain.secondary.dao.basicdata.OrmsTerminalDao;
|
||||||
|
import com.gzzn.omms.adminapi.domain.secondary.entity.baiscdata.OrmsTerminal;
|
||||||
|
import com.gzzn.omms.adminapi.dto.ResponseDto;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 航站楼
|
||||||
|
* @author nyr
|
||||||
|
* @date 18-10-23
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
public class OrmsTerminalController {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 航站楼接口
|
||||||
|
*/
|
||||||
|
@Autowired
|
||||||
|
private OrmsTerminalDao ormsTerminalDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取所有航站楼数据
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping(value="/basicdata/ormsTerminals")
|
||||||
|
public ResponseDto getOrmsTerminal() {
|
||||||
|
List<OrmsTerminal> ormsTerminalslist = (List<OrmsTerminal>) ormsTerminalDao.findAll();
|
||||||
|
return ResponseDto.success(ormsTerminalslist);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package com.gzzn.omms.adminapi.domain.secondary.dao.basicdata;
|
||||||
|
|
||||||
|
import org.springframework.data.repository.CrudRepository;
|
||||||
|
|
||||||
|
import com.gzzn.omms.adminapi.domain.secondary.entity.baiscdata.OrmsGate;
|
||||||
|
|
||||||
|
public interface OrmsGateDao extends CrudRepository<OrmsGate,String> {
|
||||||
|
|
||||||
|
}
|
||||||
+9
@@ -0,0 +1,9 @@
|
|||||||
|
package com.gzzn.omms.adminapi.domain.secondary.dao.basicdata;
|
||||||
|
|
||||||
|
import org.springframework.data.repository.CrudRepository;
|
||||||
|
|
||||||
|
import com.gzzn.omms.adminapi.domain.secondary.entity.baiscdata.OrmsTerminal;
|
||||||
|
|
||||||
|
public interface OrmsTerminalDao extends CrudRepository<OrmsTerminal,String> {
|
||||||
|
|
||||||
|
}
|
||||||
+2
-2
@@ -18,12 +18,12 @@ public class CheckinGroup {
|
|||||||
|
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "CHECKIN_GROUP_CODE")
|
@Column(name = "CHECKIN_GROUP_CODE")
|
||||||
private String checkinGroupCode;
|
private String checkinGroupCode; //航站楼代码
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Column(name = "CHECKIN_GROUP_NAME")
|
@Column(name = "CHECKIN_GROUP_NAME")
|
||||||
private String checkinGroupName;
|
private String checkinGroupName; //航站楼名称
|
||||||
|
|
||||||
public String getCheckinGroupCode() {
|
public String getCheckinGroupCode() {
|
||||||
return checkinGroupCode;
|
return checkinGroupCode;
|
||||||
|
|||||||
@@ -0,0 +1,186 @@
|
|||||||
|
package com.gzzn.omms.adminapi.domain.secondary.entity.baiscdata;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 登机门
|
||||||
|
* @author nyr
|
||||||
|
* @date 2018-10-23
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name="ORMS_GATE")
|
||||||
|
@NamedQuery(name="OrmsGate.findAll", query="SELECT o FROM OrmsGate o")
|
||||||
|
public class OrmsGate {
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@SequenceGenerator(name="ORMS_GATE_GATECODE_GENERATOR", sequenceName="ORMS_GATE")
|
||||||
|
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ORMS_GATE_GATECODE_GENERATOR")
|
||||||
|
@Column(name="GATE_CODE")
|
||||||
|
private String gateCode; //登机门代码
|
||||||
|
|
||||||
|
@Column(name="ACTION_ORDER")
|
||||||
|
private BigDecimal actionOrder;//资源使用序号
|
||||||
|
|
||||||
|
@Column(name="GATE_CATEGORY")
|
||||||
|
private String gateCategory;//I = International/国际;D = Domestic/国内
|
||||||
|
|
||||||
|
@Column(name="GATE_NAME")
|
||||||
|
private String gateName; //登机门名称
|
||||||
|
|
||||||
|
@Column(name="GATE_STATUS")
|
||||||
|
private BigDecimal gateStatus; //登机门状态(可用、在用、锁定、禁用、预分...)
|
||||||
|
|
||||||
|
@Column(name="GATE_TYPE")
|
||||||
|
private String gateType;//'0'-到港门,'1'-离港门,'2'-混合
|
||||||
|
|
||||||
|
private String gtml;//航站楼代码
|
||||||
|
|
||||||
|
@Column(name="ICON_LENGTH")
|
||||||
|
private BigDecimal iconLength;//资源图标长度(单位:像素)
|
||||||
|
|
||||||
|
@Column(name="ICON_WIDTH")
|
||||||
|
private BigDecimal iconWidth;//资源图标宽度(单位:像素)
|
||||||
|
|
||||||
|
private BigDecimal operate;
|
||||||
|
|
||||||
|
@Column(name="PIER_CODE")
|
||||||
|
private String pierCode;//指廊代码
|
||||||
|
|
||||||
|
@Column(name="POS_X")
|
||||||
|
private BigDecimal posX;//坐标位置的X值
|
||||||
|
|
||||||
|
@Column(name="POS_Y")
|
||||||
|
private BigDecimal posY;//坐标位置的Y值
|
||||||
|
|
||||||
|
@Column(name="STAND_LAYOUTED")
|
||||||
|
private BigDecimal standLayouted;//资源已布局标志 1-已布局 0-未布局
|
||||||
|
|
||||||
|
@Column(name="TERMINAL_AREA_CODE")
|
||||||
|
private String terminalAreaCode;//航站楼区域代码
|
||||||
|
|
||||||
|
public OrmsGate() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGateCode() {
|
||||||
|
return this.gateCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGateCode(String gateCode) {
|
||||||
|
this.gateCode = gateCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getActionOrder() {
|
||||||
|
return this.actionOrder;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setActionOrder(BigDecimal actionOrder) {
|
||||||
|
this.actionOrder = actionOrder;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGateCategory() {
|
||||||
|
return this.gateCategory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGateCategory(String gateCategory) {
|
||||||
|
this.gateCategory = gateCategory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGateName() {
|
||||||
|
return this.gateName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGateName(String gateName) {
|
||||||
|
this.gateName = gateName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getGateStatus() {
|
||||||
|
return this.gateStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGateStatus(BigDecimal gateStatus) {
|
||||||
|
this.gateStatus = gateStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGateType() {
|
||||||
|
return this.gateType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGateType(String gateType) {
|
||||||
|
this.gateType = gateType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGtml() {
|
||||||
|
return this.gtml;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGtml(String gtml) {
|
||||||
|
this.gtml = gtml;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getIconLength() {
|
||||||
|
return this.iconLength;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIconLength(BigDecimal iconLength) {
|
||||||
|
this.iconLength = iconLength;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getIconWidth() {
|
||||||
|
return this.iconWidth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIconWidth(BigDecimal iconWidth) {
|
||||||
|
this.iconWidth = iconWidth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getOperate() {
|
||||||
|
return this.operate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOperate(BigDecimal operate) {
|
||||||
|
this.operate = operate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPierCode() {
|
||||||
|
return this.pierCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPierCode(String pierCode) {
|
||||||
|
this.pierCode = pierCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getPosX() {
|
||||||
|
return this.posX;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPosX(BigDecimal posX) {
|
||||||
|
this.posX = posX;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getPosY() {
|
||||||
|
return this.posY;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPosY(BigDecimal posY) {
|
||||||
|
this.posY = posY;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getStandLayouted() {
|
||||||
|
return this.standLayouted;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStandLayouted(BigDecimal standLayouted) {
|
||||||
|
this.standLayouted = standLayouted;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTerminalAreaCode() {
|
||||||
|
return this.terminalAreaCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTerminalAreaCode(String terminalAreaCode) {
|
||||||
|
this.terminalAreaCode = terminalAreaCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+54
@@ -0,0 +1,54 @@
|
|||||||
|
package com.gzzn.omms.adminapi.domain.secondary.entity.baiscdata;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 航站楼
|
||||||
|
* @author nyr
|
||||||
|
* @date 2018-10-23
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name="ORMS_TERMINAL")
|
||||||
|
@NamedQuery(name="OrmsTerminal.findAll", query="SELECT o FROM OrmsTerminal o")
|
||||||
|
public class OrmsTerminal {
|
||||||
|
@Id
|
||||||
|
@SequenceGenerator(name="ORMS_TERMINAL_TERMINALCODE_GENERATOR", sequenceName="ORMS_TERMINAL")
|
||||||
|
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ORMS_TERMINAL_TERMINALCODE_GENERATOR")
|
||||||
|
@Column(name="TERMINAL_CODE")
|
||||||
|
private String terminalCode;//航站楼代码
|
||||||
|
|
||||||
|
private BigDecimal operate;//操作标识 1-使用 0-删除标识
|
||||||
|
|
||||||
|
@Column(name="TERMINAL_NAME")
|
||||||
|
private String terminalName;//航站楼名称
|
||||||
|
|
||||||
|
public OrmsTerminal() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTerminalCode() {
|
||||||
|
return this.terminalCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTerminalCode(String terminalCode) {
|
||||||
|
this.terminalCode = terminalCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getOperate() {
|
||||||
|
return this.operate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOperate(BigDecimal operate) {
|
||||||
|
this.operate = operate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTerminalName() {
|
||||||
|
return this.terminalName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTerminalName(String terminalName) {
|
||||||
|
this.terminalName = terminalName;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user