增加行李传送带 实体类,DAO , controller 接口实现
This commit is contained in:
@@ -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.OrmsChutDao;
|
||||||
|
import com.gzzn.omms.adminapi.domain.secondary.entity.baiscdata.OrmsChut;
|
||||||
|
import com.gzzn.omms.adminapi.dto.ResponseDto;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 行李传送带
|
||||||
|
* @author nyr
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
public class OrmsChutController {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 行李传送带接口
|
||||||
|
*/
|
||||||
|
@Autowired
|
||||||
|
private OrmsChutDao ormsChutDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取所有行李传送带数据
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping(value="/basicdata/ormsChuts")
|
||||||
|
public ResponseDto getOrmsChut() {
|
||||||
|
List<OrmsChut> ormsChutList = (List<OrmsChut>) ormsChutDao.findAll();
|
||||||
|
return ResponseDto.success(ormsChutList);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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.OrmsChut;
|
||||||
|
|
||||||
|
public interface OrmsChutDao extends CrudRepository<OrmsChut,String> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,104 @@
|
|||||||
|
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
|
||||||
|
* 18-10-24
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name="ORMS_CHUT")
|
||||||
|
@NamedQuery(name="OrmsChut.findAll", query="SELECT o FROM OrmsChut o")
|
||||||
|
public class OrmsChut {
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@SequenceGenerator(name="ORMS_CHUT_CHUTCODE_GENERATOR", sequenceName="ORMS_CHUT")
|
||||||
|
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ORMS_CHUT_CHUTCODE_GENERATOR")
|
||||||
|
@Column(name="CHUT_CODE")
|
||||||
|
private String chutCode; //传送转盘code
|
||||||
|
|
||||||
|
private String bcat; //传送转盘种类
|
||||||
|
|
||||||
|
private String btml; //航站楼代码
|
||||||
|
|
||||||
|
@Column(name="CHUT_LENGTH")
|
||||||
|
private BigDecimal chutLength; //传送转盘高度
|
||||||
|
|
||||||
|
@Column(name="CHUT_NAME")
|
||||||
|
private String chutName; //传送转盘name
|
||||||
|
|
||||||
|
@Column(name="CHUT_STATUS")
|
||||||
|
private String chutStatus; //E-可用/D-不可用
|
||||||
|
|
||||||
|
private BigDecimal operate; //操作标识 1-使用 0-删除标识
|
||||||
|
|
||||||
|
public OrmsChut() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getChutCode() {
|
||||||
|
return this.chutCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChutCode(String chutCode) {
|
||||||
|
this.chutCode = chutCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBcat() {
|
||||||
|
return this.bcat;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBcat(String bcat) {
|
||||||
|
this.bcat = bcat;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBtml() {
|
||||||
|
return this.btml;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBtml(String btml) {
|
||||||
|
this.btml = btml;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getChutLength() {
|
||||||
|
return this.chutLength;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChutLength(BigDecimal chutLength) {
|
||||||
|
this.chutLength = chutLength;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getChutName() {
|
||||||
|
return this.chutName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChutName(String chutName) {
|
||||||
|
this.chutName = chutName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getChutStatus() {
|
||||||
|
return this.chutStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChutStatus(String chutStatus) {
|
||||||
|
this.chutStatus = chutStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getOperate() {
|
||||||
|
return this.operate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOperate(BigDecimal operate) {
|
||||||
|
this.operate = operate;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user