增加机型 实体类,DAO , controller 接口实现
This commit is contained in:
+33
@@ -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.SysAircrafttypeDao;
|
||||||
|
import com.gzzn.omms.adminapi.domain.secondary.entity.baiscdata.SysAircrafttype;
|
||||||
|
import com.gzzn.omms.adminapi.dto.ResponseDto;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机型
|
||||||
|
* @author nyr
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
public class SysAircrafttypeController {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机型接口
|
||||||
|
*/
|
||||||
|
@Autowired
|
||||||
|
private SysAircrafttypeDao sysAircrafttypeDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取所有机型数据
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping(value="/basicdata/sysAircrafttypes")
|
||||||
|
public ResponseDto getSysAircrafttype() {
|
||||||
|
List<SysAircrafttype> sysAircrafttypeList = (List<SysAircrafttype>) sysAircrafttypeDao.findAll();
|
||||||
|
return ResponseDto.success(sysAircrafttypeList);
|
||||||
|
}
|
||||||
|
}
|
||||||
+8
@@ -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.SysAircrafttype;
|
||||||
|
|
||||||
|
public interface SysAircrafttypeDao extends CrudRepository<SysAircrafttype, String> {
|
||||||
|
|
||||||
|
}
|
||||||
+202
@@ -0,0 +1,202 @@
|
|||||||
|
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
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name="SYS_AIRCRAFTTYPE")
|
||||||
|
@NamedQuery(name="SysAircrafttype.findAll", query="SELECT s FROM SysAircrafttype s")
|
||||||
|
public class SysAircrafttype {
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@SequenceGenerator(name="SYS_AIRCRAFTTYPE_AIRCRAFTTYPECODE_GENERATOR", sequenceName="SYS_AIRCRAFTTYPE")
|
||||||
|
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SYS_AIRCRAFTTYPE_AIRCRAFTTYPECODE_GENERATOR")
|
||||||
|
@Column(name="AIRCRAFT_TYPE_CODE")
|
||||||
|
private String aircraftTypeCode; //机型代码
|
||||||
|
|
||||||
|
@Column(name="AIRCRAFT_HEIGHT")
|
||||||
|
private BigDecimal aircraftHeight; //飞机机身高度
|
||||||
|
|
||||||
|
@Column(name="AIRCRAFT_LENGTH")
|
||||||
|
private BigDecimal aircraftLength; //飞机机身长度
|
||||||
|
|
||||||
|
@Column(name="AIRCRAFT_TYPE_CODE_CAA")
|
||||||
|
private String aircraftTypeCodeCaa; //机型代码(CAA格式)
|
||||||
|
|
||||||
|
@Column(name="AIRCRAFT_TYPE_CODE_IATA")
|
||||||
|
private String aircraftTypeCodeIata; //机型代码(IATA格式)
|
||||||
|
|
||||||
|
@Column(name="AIRCRAFT_TYPE_CODE_ICAO")
|
||||||
|
private String aircraftTypeCodeIcao; //机型代码(ICAO格式)
|
||||||
|
|
||||||
|
@Column(name="AIRCRAFT_TYPE_NAME")
|
||||||
|
private String aircraftTypeName; //机型名称(机型说明)
|
||||||
|
|
||||||
|
@Column(name="AIRCRAFT_WIDTH")
|
||||||
|
private BigDecimal aircraftWidth; //飞机宽度(翼展宽度)
|
||||||
|
|
||||||
|
@Column(name="AIRCRAFTTYPEGROUP_ID")
|
||||||
|
private BigDecimal aircrafttypegroupId; //机型组记录ID
|
||||||
|
|
||||||
|
private String chap; //机型分类
|
||||||
|
|
||||||
|
@Column(name="MAX_AIRBRIDGES")
|
||||||
|
private BigDecimal maxAirbridges; //飞机使用廊桥的最大数目
|
||||||
|
|
||||||
|
@Column(name="MAX_FREIGHT_WEIGHT")
|
||||||
|
private BigDecimal maxFreightWeight; //最大货物重量
|
||||||
|
|
||||||
|
@Column(name="MAX_PASSENGERS")
|
||||||
|
private BigDecimal maxPassengers; //最大乘客数
|
||||||
|
|
||||||
|
@Column(name="MAX_TAKEOFF_WEIGHT")
|
||||||
|
private BigDecimal maxTakeoffWeight; //最大起飞重量
|
||||||
|
|
||||||
|
private BigDecimal operate; //操作标识 1-使用 0-删除标识
|
||||||
|
|
||||||
|
private BigDecimal transitstoptime; //过站经停时长(单位:分钟)
|
||||||
|
|
||||||
|
public SysAircrafttype() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAircraftTypeCode() {
|
||||||
|
return this.aircraftTypeCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAircraftTypeCode(String aircraftTypeCode) {
|
||||||
|
this.aircraftTypeCode = aircraftTypeCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getAircraftHeight() {
|
||||||
|
return this.aircraftHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAircraftHeight(BigDecimal aircraftHeight) {
|
||||||
|
this.aircraftHeight = aircraftHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getAircraftLength() {
|
||||||
|
return this.aircraftLength;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAircraftLength(BigDecimal aircraftLength) {
|
||||||
|
this.aircraftLength = aircraftLength;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAircraftTypeCodeCaa() {
|
||||||
|
return this.aircraftTypeCodeCaa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAircraftTypeCodeCaa(String aircraftTypeCodeCaa) {
|
||||||
|
this.aircraftTypeCodeCaa = aircraftTypeCodeCaa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAircraftTypeCodeIata() {
|
||||||
|
return this.aircraftTypeCodeIata;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAircraftTypeCodeIata(String aircraftTypeCodeIata) {
|
||||||
|
this.aircraftTypeCodeIata = aircraftTypeCodeIata;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAircraftTypeCodeIcao() {
|
||||||
|
return this.aircraftTypeCodeIcao;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAircraftTypeCodeIcao(String aircraftTypeCodeIcao) {
|
||||||
|
this.aircraftTypeCodeIcao = aircraftTypeCodeIcao;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAircraftTypeName() {
|
||||||
|
return this.aircraftTypeName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAircraftTypeName(String aircraftTypeName) {
|
||||||
|
this.aircraftTypeName = aircraftTypeName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getAircraftWidth() {
|
||||||
|
return this.aircraftWidth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAircraftWidth(BigDecimal aircraftWidth) {
|
||||||
|
this.aircraftWidth = aircraftWidth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getAircrafttypegroupId() {
|
||||||
|
return this.aircrafttypegroupId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAircrafttypegroupId(BigDecimal aircrafttypegroupId) {
|
||||||
|
this.aircrafttypegroupId = aircrafttypegroupId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getChap() {
|
||||||
|
return this.chap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChap(String chap) {
|
||||||
|
this.chap = chap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getMaxAirbridges() {
|
||||||
|
return this.maxAirbridges;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMaxAirbridges(BigDecimal maxAirbridges) {
|
||||||
|
this.maxAirbridges = maxAirbridges;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getMaxFreightWeight() {
|
||||||
|
return this.maxFreightWeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMaxFreightWeight(BigDecimal maxFreightWeight) {
|
||||||
|
this.maxFreightWeight = maxFreightWeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getMaxPassengers() {
|
||||||
|
return this.maxPassengers;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMaxPassengers(BigDecimal maxPassengers) {
|
||||||
|
this.maxPassengers = maxPassengers;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getMaxTakeoffWeight() {
|
||||||
|
return this.maxTakeoffWeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMaxTakeoffWeight(BigDecimal maxTakeoffWeight) {
|
||||||
|
this.maxTakeoffWeight = maxTakeoffWeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getOperate() {
|
||||||
|
return this.operate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOperate(BigDecimal operate) {
|
||||||
|
this.operate = operate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getTransitstoptime() {
|
||||||
|
return this.transitstoptime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTransitstoptime(BigDecimal transitstoptime) {
|
||||||
|
this.transitstoptime = transitstoptime;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user