增加行李转盘 实体类,DAO , controller 接口实现
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.OrmsCarouselDao;
|
||||
import com.gzzn.omms.adminapi.domain.secondary.entity.baiscdata.OrmsCarousel;
|
||||
import com.gzzn.omms.adminapi.dto.ResponseDto;
|
||||
|
||||
/**
|
||||
* 行李转盘
|
||||
* @author nyr
|
||||
*/
|
||||
@RestController
|
||||
public class OrmsCarouselController {
|
||||
|
||||
/**
|
||||
* 行李转盘接口
|
||||
*/
|
||||
@Autowired
|
||||
private OrmsCarouselDao ormsCarouselDao;
|
||||
|
||||
/**
|
||||
* 获取所有行李转盘数据
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value="/basicdata/ormsCarousels")
|
||||
public ResponseDto getOrmsCarousel() {
|
||||
List<OrmsCarousel> ormsCarouselList = (List<OrmsCarousel>) ormsCarouselDao.findAll();
|
||||
return ResponseDto.success(ormsCarouselList);
|
||||
}
|
||||
}
|
||||
+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.OrmsCarousel;
|
||||
|
||||
public interface OrmsCarouselDao extends CrudRepository<OrmsCarousel, String> {
|
||||
|
||||
}
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
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-24
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="ORMS_CAROUSEL")
|
||||
@NamedQuery(name="OrmsCarousel.findAll", query="SELECT o FROM OrmsCarousel o")
|
||||
public class OrmsCarousel {
|
||||
|
||||
@Id
|
||||
@SequenceGenerator(name="ORMS_CAROUSEL_CAROUSELCODE_GENERATOR", sequenceName="ORMS_CAROUSEL")
|
||||
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ORMS_CAROUSEL_CAROUSELCODE_GENERATOR")
|
||||
@Column(name="CAROUSEL_CODE")
|
||||
private String carouselCode; //行李提取转盘代码
|
||||
|
||||
@Column(name="ACTION_ORDER")
|
||||
private BigDecimal actionOrder;
|
||||
|
||||
private String bcls; //行李提取转盘等级
|
||||
|
||||
@Column(name="CAROUSEL_NAME")
|
||||
private String carouselName; //行李提取转盘名称
|
||||
|
||||
@Column(name="CAROUSEL_STATUS")
|
||||
private String carouselStatus; //行李提取转盘状态(可用、在用、锁定、禁用、预分...)
|
||||
|
||||
@Column(name="ICON_LENGTH")
|
||||
private BigDecimal iconLength; //资源图标长度(单位:像素)
|
||||
|
||||
@Column(name="ICON_WIDTH")
|
||||
private BigDecimal iconWidth; //资源图标宽度(单位:像素)
|
||||
|
||||
@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 OrmsCarousel() {
|
||||
}
|
||||
|
||||
public String getCarouselCode() {
|
||||
return this.carouselCode;
|
||||
}
|
||||
|
||||
public void setCarouselCode(String carouselCode) {
|
||||
this.carouselCode = carouselCode;
|
||||
}
|
||||
|
||||
public BigDecimal getActionOrder() {
|
||||
return this.actionOrder;
|
||||
}
|
||||
|
||||
public void setActionOrder(BigDecimal actionOrder) {
|
||||
this.actionOrder = actionOrder;
|
||||
}
|
||||
|
||||
public String getBcls() {
|
||||
return this.bcls;
|
||||
}
|
||||
|
||||
public void setBcls(String bcls) {
|
||||
this.bcls = bcls;
|
||||
}
|
||||
|
||||
public String getCarouselName() {
|
||||
return this.carouselName;
|
||||
}
|
||||
|
||||
public void setCarouselName(String carouselName) {
|
||||
this.carouselName = carouselName;
|
||||
}
|
||||
|
||||
public String getCarouselStatus() {
|
||||
return this.carouselStatus;
|
||||
}
|
||||
|
||||
public void setCarouselStatus(String carouselStatus) {
|
||||
this.carouselStatus = carouselStatus;
|
||||
}
|
||||
|
||||
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 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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user