增加机场 实体类,DAO , controller 接口实现
This commit is contained in:
+36
@@ -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.OrmsCheckindeskDao;
|
||||
import com.gzzn.omms.adminapi.domain.secondary.entity.baiscdata.OrmsCheckindesk;
|
||||
import com.gzzn.omms.adminapi.dto.ResponseDto;
|
||||
|
||||
/**
|
||||
* 值机柜台
|
||||
* @author nyr
|
||||
*
|
||||
*/
|
||||
@RestController
|
||||
public class OrmsCheckindeskController {
|
||||
|
||||
/**
|
||||
* 值机柜台接口
|
||||
*/
|
||||
@Autowired
|
||||
private OrmsCheckindeskDao ormsCheckindeskDao;
|
||||
|
||||
/**
|
||||
* 获取所有值机柜台数据
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value="/basicdata/ormsCheckindesks")
|
||||
public ResponseDto getOrmsCheckindesk() {
|
||||
List<OrmsCheckindesk> ormsCheckindeskList = (List<OrmsCheckindesk>) ormsCheckindeskDao.findAll();
|
||||
return ResponseDto.success(ormsCheckindeskList);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
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.SysAirportDao;
|
||||
import com.gzzn.omms.adminapi.domain.secondary.entity.baiscdata.SysAirport;
|
||||
import com.gzzn.omms.adminapi.dto.ResponseDto;
|
||||
|
||||
/**
|
||||
* 机场
|
||||
* @author nyr
|
||||
*/
|
||||
@RestController
|
||||
public class SysAirportController {
|
||||
|
||||
/**
|
||||
* 机场接口
|
||||
*/
|
||||
@Autowired
|
||||
private SysAirportDao sysAirportDao;
|
||||
|
||||
/**
|
||||
* 获取所有机场数据
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value="/basicdata/sysAirports")
|
||||
public ResponseDto getSysAirport() {
|
||||
List<SysAirport> sysAirportList = (List<SysAirport>) sysAirportDao.findAll();
|
||||
return ResponseDto.success(sysAirportList);
|
||||
}
|
||||
}
|
||||
+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.OrmsCheckindesk;
|
||||
|
||||
public interface OrmsCheckindeskDao extends CrudRepository<OrmsCheckindesk, String>{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.gzzn.omms.adminapi.domain.secondary.dao.basicdata;
|
||||
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
import com.gzzn.omms.adminapi.domain.secondary.entity.baiscdata.SysAirport;
|
||||
|
||||
public interface SysAirportDao extends CrudRepository<SysAirport, String> {
|
||||
|
||||
}
|
||||
+136
@@ -0,0 +1,136 @@
|
||||
package com.gzzn.omms.adminapi.domain.secondary.entity.baiscdata;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 值机柜台
|
||||
* @author nyr
|
||||
* @date 18-10-25
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="ORMS_CHECKINDESK")
|
||||
@NamedQuery(name="OrmsCheckindesk.findAll", query="SELECT o FROM OrmsCheckindesk o")
|
||||
public class OrmsCheckindesk {
|
||||
|
||||
@Id
|
||||
@SequenceGenerator(name="ORMS_CHECKINDESK_CHECKINDESKCODE_GENERATOR", sequenceName="ORMS_CHECKINDESK")
|
||||
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ORMS_CHECKINDESK_CHECKINDESKCODE_GENERATOR")
|
||||
@Column(name="CHECKINDESK_CODE")
|
||||
private String checkindeskCode; //值机柜台代码
|
||||
|
||||
private String ccat; //值机柜台种类
|
||||
|
||||
@Column(name="CHECKIN_GROUP_CODE")
|
||||
private String checkinGroupCode; //值机岛代码
|
||||
|
||||
@Column(name="CHECKINDESK_NAME")
|
||||
private String checkindeskName; //值机柜台名称
|
||||
|
||||
@Column(name="CHECKINDESK_STATUS")
|
||||
private String checkindeskStatus; //E-可用/D-不可用
|
||||
|
||||
@Column(name="CHUT_CODE")
|
||||
private String chutCode; //传送转盘code
|
||||
|
||||
private String ctra; //是否中转值机柜台
|
||||
|
||||
@Column(name="NEXTCHECKINDESK_CODE")
|
||||
private String nextcheckindeskCode;
|
||||
|
||||
private BigDecimal operate; //操作标识:1-使用、0-删除标识
|
||||
|
||||
@Column(name="TERMINAL_AREA_CODE")
|
||||
private String terminalAreaCode; //航站楼区域代码
|
||||
|
||||
public OrmsCheckindesk() {
|
||||
}
|
||||
|
||||
public String getCheckindeskCode() {
|
||||
return this.checkindeskCode;
|
||||
}
|
||||
|
||||
public void setCheckindeskCode(String checkindeskCode) {
|
||||
this.checkindeskCode = checkindeskCode;
|
||||
}
|
||||
|
||||
public String getCcat() {
|
||||
return this.ccat;
|
||||
}
|
||||
|
||||
public void setCcat(String ccat) {
|
||||
this.ccat = ccat;
|
||||
}
|
||||
|
||||
public String getCheckinGroupCode() {
|
||||
return this.checkinGroupCode;
|
||||
}
|
||||
|
||||
public void setCheckinGroupCode(String checkinGroupCode) {
|
||||
this.checkinGroupCode = checkinGroupCode;
|
||||
}
|
||||
|
||||
public String getCheckindeskName() {
|
||||
return this.checkindeskName;
|
||||
}
|
||||
|
||||
public void setCheckindeskName(String checkindeskName) {
|
||||
this.checkindeskName = checkindeskName;
|
||||
}
|
||||
|
||||
public String getCheckindeskStatus() {
|
||||
return this.checkindeskStatus;
|
||||
}
|
||||
|
||||
public void setCheckindeskStatus(String checkindeskStatus) {
|
||||
this.checkindeskStatus = checkindeskStatus;
|
||||
}
|
||||
|
||||
public String getChutCode() {
|
||||
return this.chutCode;
|
||||
}
|
||||
|
||||
public void setChutCode(String chutCode) {
|
||||
this.chutCode = chutCode;
|
||||
}
|
||||
|
||||
public String getCtra() {
|
||||
return this.ctra;
|
||||
}
|
||||
|
||||
public void setCtra(String ctra) {
|
||||
this.ctra = ctra;
|
||||
}
|
||||
|
||||
public String getNextcheckindeskCode() {
|
||||
return this.nextcheckindeskCode;
|
||||
}
|
||||
|
||||
public void setNextcheckindeskCode(String nextcheckindeskCode) {
|
||||
this.nextcheckindeskCode = nextcheckindeskCode;
|
||||
}
|
||||
|
||||
public BigDecimal getOperate() {
|
||||
return this.operate;
|
||||
}
|
||||
|
||||
public void setOperate(BigDecimal operate) {
|
||||
this.operate = operate;
|
||||
}
|
||||
|
||||
public String getTerminalAreaCode() {
|
||||
return this.terminalAreaCode;
|
||||
}
|
||||
|
||||
public void setTerminalAreaCode(String terminalAreaCode) {
|
||||
this.terminalAreaCode = terminalAreaCode;
|
||||
}
|
||||
|
||||
}
|
||||
+203
@@ -0,0 +1,203 @@
|
||||
package com.gzzn.omms.adminapi.domain.secondary.entity.baiscdata;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 机场
|
||||
* @author nyr
|
||||
* @date 18-10-25
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="SYS_AIRPORT")
|
||||
@NamedQuery(name="SysAirport.findAll", query="SELECT s FROM SysAirport s")
|
||||
public class SysAirport {
|
||||
|
||||
@Id
|
||||
@SequenceGenerator(name="SYS_AIRPORT_AIRPORTID_GENERATOR", sequenceName="SYS_AIRPORT")
|
||||
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SYS_AIRPORT_AIRPORTID_GENERATOR")
|
||||
@Column(name="AIRPORT_ID")
|
||||
private long airportId; //机场表记录ID
|
||||
|
||||
@Column(name="AIRPORT_CODE")
|
||||
private String airportCode; //机场代码
|
||||
|
||||
@Column(name="AIRPORT_CODE_CAA")
|
||||
private String airportCodeCaa; //机场代码(CAA格式)
|
||||
|
||||
@Column(name="AIRPORT_CODE_IATA")
|
||||
private String airportCodeIata; //机场代码(IATA格式)
|
||||
|
||||
@Column(name="AIRPORT_CODE_ICAO")
|
||||
private String airportCodeIcao; //机场代码(ICAO格式)
|
||||
|
||||
@Column(name="AIRPORT_GROUP_ID")
|
||||
private BigDecimal airportGroupId; //机场集团公司表记录ID
|
||||
|
||||
@Column(name="AIRPORT_NAME_CHN")
|
||||
private String airportNameChn; //机场名称(中文)
|
||||
|
||||
@Column(name="AIRPORT_NAME_ENG")
|
||||
private String airportNameEng; //机场名称(英文)
|
||||
|
||||
@Column(name="BRIEF_NAME_CHN")
|
||||
private String briefNameChn; //简称(中文)
|
||||
|
||||
@Column(name="BRIEF_NAME_CHN_COPY")
|
||||
private String briefNameChnCopy; //中文简称(备用)
|
||||
|
||||
@Column(name="BRIEF_NAME_ENG")
|
||||
private String briefNameEng; //简称(英文)
|
||||
|
||||
@Column(name="CITY_ID")
|
||||
private BigDecimal cityId; //城市ID
|
||||
|
||||
private String haul; //机场标识
|
||||
|
||||
@Column(name="HOST_FLAG")
|
||||
private BigDecimal hostFlag; //主场标志:1-主场、 0-非主场
|
||||
|
||||
@Column(name="INTERNATIONAL_FLAG")
|
||||
private BigDecimal internationalFlag; //国际机场/航空公司标志、1-国际机场/航空公司、0-非国际机场/航空公司
|
||||
|
||||
private BigDecimal operate; //操作标识:1-使用、0-删除标识
|
||||
|
||||
public SysAirport() {
|
||||
}
|
||||
|
||||
public long getAirportId() {
|
||||
return this.airportId;
|
||||
}
|
||||
|
||||
public void setAirportId(long airportId) {
|
||||
this.airportId = airportId;
|
||||
}
|
||||
|
||||
public String getAirportCode() {
|
||||
return this.airportCode;
|
||||
}
|
||||
|
||||
public void setAirportCode(String airportCode) {
|
||||
this.airportCode = airportCode;
|
||||
}
|
||||
|
||||
public String getAirportCodeCaa() {
|
||||
return this.airportCodeCaa;
|
||||
}
|
||||
|
||||
public void setAirportCodeCaa(String airportCodeCaa) {
|
||||
this.airportCodeCaa = airportCodeCaa;
|
||||
}
|
||||
|
||||
public String getAirportCodeIata() {
|
||||
return this.airportCodeIata;
|
||||
}
|
||||
|
||||
public void setAirportCodeIata(String airportCodeIata) {
|
||||
this.airportCodeIata = airportCodeIata;
|
||||
}
|
||||
|
||||
public String getAirportCodeIcao() {
|
||||
return this.airportCodeIcao;
|
||||
}
|
||||
|
||||
public void setAirportCodeIcao(String airportCodeIcao) {
|
||||
this.airportCodeIcao = airportCodeIcao;
|
||||
}
|
||||
|
||||
public BigDecimal getAirportGroupId() {
|
||||
return this.airportGroupId;
|
||||
}
|
||||
|
||||
public void setAirportGroupId(BigDecimal airportGroupId) {
|
||||
this.airportGroupId = airportGroupId;
|
||||
}
|
||||
|
||||
public String getAirportNameChn() {
|
||||
return this.airportNameChn;
|
||||
}
|
||||
|
||||
public void setAirportNameChn(String airportNameChn) {
|
||||
this.airportNameChn = airportNameChn;
|
||||
}
|
||||
|
||||
public String getAirportNameEng() {
|
||||
return this.airportNameEng;
|
||||
}
|
||||
|
||||
public void setAirportNameEng(String airportNameEng) {
|
||||
this.airportNameEng = airportNameEng;
|
||||
}
|
||||
|
||||
public String getBriefNameChn() {
|
||||
return this.briefNameChn;
|
||||
}
|
||||
|
||||
public void setBriefNameChn(String briefNameChn) {
|
||||
this.briefNameChn = briefNameChn;
|
||||
}
|
||||
|
||||
public String getBriefNameChnCopy() {
|
||||
return this.briefNameChnCopy;
|
||||
}
|
||||
|
||||
public void setBriefNameChnCopy(String briefNameChnCopy) {
|
||||
this.briefNameChnCopy = briefNameChnCopy;
|
||||
}
|
||||
|
||||
public String getBriefNameEng() {
|
||||
return this.briefNameEng;
|
||||
}
|
||||
|
||||
public void setBriefNameEng(String briefNameEng) {
|
||||
this.briefNameEng = briefNameEng;
|
||||
}
|
||||
|
||||
public BigDecimal getCityId() {
|
||||
return this.cityId;
|
||||
}
|
||||
|
||||
public void setCityId(BigDecimal cityId) {
|
||||
this.cityId = cityId;
|
||||
}
|
||||
|
||||
public String getHaul() {
|
||||
return this.haul;
|
||||
}
|
||||
|
||||
public void setHaul(String haul) {
|
||||
this.haul = haul;
|
||||
}
|
||||
|
||||
public BigDecimal getHostFlag() {
|
||||
return this.hostFlag;
|
||||
}
|
||||
|
||||
public void setHostFlag(BigDecimal hostFlag) {
|
||||
this.hostFlag = hostFlag;
|
||||
}
|
||||
|
||||
public BigDecimal getInternationalFlag() {
|
||||
return this.internationalFlag;
|
||||
}
|
||||
|
||||
public void setInternationalFlag(BigDecimal internationalFlag) {
|
||||
this.internationalFlag = internationalFlag;
|
||||
}
|
||||
|
||||
public BigDecimal getOperate() {
|
||||
return this.operate;
|
||||
}
|
||||
|
||||
public void setOperate(BigDecimal operate) {
|
||||
this.operate = operate;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user