wms工厂仓库类书写
parent
30d2452a8d
commit
1dba722a42
@ -1,52 +0,0 @@
|
|||||||
package cn.estsh.i3plus.pojo.wms.bean;
|
|
||||||
|
|
||||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import io.swagger.annotations.ApiParam;
|
|
||||||
import lombok.Data;
|
|
||||||
import org.hibernate.annotations.DynamicInsert;
|
|
||||||
import org.hibernate.annotations.DynamicUpdate;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description : 工厂仓库
|
|
||||||
* @Reference :
|
|
||||||
* @Author : alwaysfrin
|
|
||||||
* @CreateDate : 2018-09-04 15:58
|
|
||||||
* @Modify:
|
|
||||||
**/
|
|
||||||
@Data
|
|
||||||
@Entity
|
|
||||||
@DynamicInsert
|
|
||||||
@DynamicUpdate
|
|
||||||
@Table(name="T_WMS_CUSTOMER_SENDTO")
|
|
||||||
@Api("客户发往地信息")
|
|
||||||
public class CustomerSendTo extends BaseBean {
|
|
||||||
|
|
||||||
@Column(name="CUSTOMER_ID")
|
|
||||||
@ApiParam("客户端编号")
|
|
||||||
public String customerId;
|
|
||||||
|
|
||||||
@Column(name="PART_ID")
|
|
||||||
@ApiParam("零件编号")
|
|
||||||
public String partId;
|
|
||||||
|
|
||||||
@Column(name="CUSTOMER_PARTNO")
|
|
||||||
@ApiParam("客户零件号")
|
|
||||||
public String customerPartNo;
|
|
||||||
|
|
||||||
@Column(name="ERP_PARTNO")
|
|
||||||
@ApiParam("ERP零件号")
|
|
||||||
public String ERPPartNo;
|
|
||||||
|
|
||||||
@Column(name="CUSTOMER_SENDTO_CODE")
|
|
||||||
@ApiParam("客户发往地代码")
|
|
||||||
public String customerSendToCode;
|
|
||||||
|
|
||||||
@Column(name="CUSTOMER_SENDTO_NAME")
|
|
||||||
@ApiParam("客户发往地名称")
|
|
||||||
public String customerSendToName;
|
|
||||||
}
|
|
@ -1,36 +0,0 @@
|
|||||||
package cn.estsh.i3plus.pojo.wms.bean;
|
|
||||||
|
|
||||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import io.swagger.annotations.ApiParam;
|
|
||||||
import lombok.Data;
|
|
||||||
import org.hibernate.annotations.DynamicInsert;
|
|
||||||
import org.hibernate.annotations.DynamicUpdate;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description : 工厂仓库
|
|
||||||
* @Reference :
|
|
||||||
* @Author : alwaysfrin
|
|
||||||
* @CreateDate : 2018-09-04 15:58
|
|
||||||
* @Modify:
|
|
||||||
**/
|
|
||||||
@Data
|
|
||||||
@Entity
|
|
||||||
@DynamicInsert
|
|
||||||
@DynamicUpdate
|
|
||||||
@Table(name="factory_store")
|
|
||||||
@Api("工厂仓库")
|
|
||||||
public class FactoryStore extends BaseBean {
|
|
||||||
|
|
||||||
@Column(name="store_code")
|
|
||||||
@ApiParam("仓库代码")
|
|
||||||
public String storeCode;
|
|
||||||
|
|
||||||
@Column(name="store_name")
|
|
||||||
@ApiParam("仓库名称")
|
|
||||||
public String storeName;
|
|
||||||
}
|
|
@ -1,41 +0,0 @@
|
|||||||
package cn.estsh.i3plus.pojo.wms.bean;
|
|
||||||
|
|
||||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import io.swagger.annotations.ApiParam;
|
|
||||||
import lombok.Data;
|
|
||||||
import org.hibernate.annotations.DynamicInsert;
|
|
||||||
import org.hibernate.annotations.DynamicUpdate;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description : 接口驱动类信息实体
|
|
||||||
* @Reference :
|
|
||||||
* @Author : amy
|
|
||||||
* @CreateDate : 2018-11-01 11:45
|
|
||||||
* @Modify:
|
|
||||||
**/
|
|
||||||
@Data
|
|
||||||
@Entity
|
|
||||||
@DynamicInsert
|
|
||||||
@DynamicUpdate
|
|
||||||
@Table(name="T_INTERFACE_DEVICE")
|
|
||||||
@Api("接口驱动类信息")
|
|
||||||
public class InterfaceDevice extends BaseBean {
|
|
||||||
|
|
||||||
@Column(name="device_name")
|
|
||||||
@ApiParam("驱动名称")
|
|
||||||
private String deviceName;
|
|
||||||
|
|
||||||
@Column(name="device_classname")
|
|
||||||
@ApiParam("驱动类名称")
|
|
||||||
private String deviceClassName;
|
|
||||||
|
|
||||||
@Column(name="status")
|
|
||||||
@ApiParam("状态 【0-禁用 1-正常】")
|
|
||||||
private Integer status;
|
|
||||||
|
|
||||||
}
|
|
@ -1,100 +0,0 @@
|
|||||||
package cn.estsh.i3plus.pojo.wms.bean;
|
|
||||||
|
|
||||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
||||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import io.swagger.annotations.ApiParam;
|
|
||||||
import lombok.Data;
|
|
||||||
import org.hibernate.annotations.DynamicInsert;
|
|
||||||
import org.hibernate.annotations.DynamicUpdate;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description : 接口类型信息实体
|
|
||||||
* @Reference :
|
|
||||||
* @Author : amy
|
|
||||||
* @CreateDate : 2018-11-01 11:56
|
|
||||||
* @Modify:
|
|
||||||
**/
|
|
||||||
@Data
|
|
||||||
@Entity
|
|
||||||
@DynamicInsert
|
|
||||||
@DynamicUpdate
|
|
||||||
@Table(name="T_INTERFACE_TYPE")
|
|
||||||
@Api("接口类型信息")
|
|
||||||
public class InterfaceType extends BaseBean {
|
|
||||||
|
|
||||||
@Column(name="tp_id")
|
|
||||||
@ApiParam("接口编号")
|
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
|
||||||
private Long tpId;
|
|
||||||
|
|
||||||
@Column(name="tp_typ")
|
|
||||||
@ApiParam("接口类型")
|
|
||||||
private String tpTyp;
|
|
||||||
|
|
||||||
@Column(name="pb_no")
|
|
||||||
@ApiParam("发布方编码")
|
|
||||||
private String pbNo;
|
|
||||||
|
|
||||||
@Column(name="tp_no")
|
|
||||||
@ApiParam("接口编码")
|
|
||||||
private String tpNo;
|
|
||||||
|
|
||||||
@Column(name="tp_desc")
|
|
||||||
@ApiParam("接口主题描述")
|
|
||||||
private String tpDesc;
|
|
||||||
|
|
||||||
@Column(name="mes_tab")
|
|
||||||
@ApiParam("接口业务表")
|
|
||||||
private String mesTab;
|
|
||||||
|
|
||||||
@Column(name="mes_group")
|
|
||||||
@ApiParam("业务表的分组条件")
|
|
||||||
private String mesGroup;
|
|
||||||
|
|
||||||
@Column(name="mes_pk")
|
|
||||||
@ApiParam("业务表主键")
|
|
||||||
private String mesPk;
|
|
||||||
|
|
||||||
@Column(name="act_type")
|
|
||||||
@ApiParam("业务类型")
|
|
||||||
private Integer actType;
|
|
||||||
|
|
||||||
@Column(name="act_desc")
|
|
||||||
@ApiParam("业务描述")
|
|
||||||
private String actDesc;
|
|
||||||
|
|
||||||
@Column(name="device_id")
|
|
||||||
@ApiParam("驱动类编号")
|
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
|
||||||
private Long deviceId;
|
|
||||||
|
|
||||||
@Column(name="request_url")
|
|
||||||
@ApiParam("服务器请求路径")
|
|
||||||
private String requestUrl;
|
|
||||||
|
|
||||||
@Column(name="cfile_path")
|
|
||||||
@ApiParam("客户文件路径")
|
|
||||||
private String cfilePath;
|
|
||||||
|
|
||||||
public Long getTpId() {
|
|
||||||
if(tpId != null) {
|
|
||||||
return tpId.longValue();
|
|
||||||
}else{
|
|
||||||
return tpId;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getDeviceId() {
|
|
||||||
if(deviceId != null) {
|
|
||||||
return deviceId.longValue();
|
|
||||||
}else{
|
|
||||||
return deviceId;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,36 +0,0 @@
|
|||||||
package cn.estsh.i3plus.pojo.wms.bean;
|
|
||||||
|
|
||||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import io.swagger.annotations.ApiParam;
|
|
||||||
import lombok.Data;
|
|
||||||
import org.hibernate.annotations.DynamicInsert;
|
|
||||||
import org.hibernate.annotations.DynamicUpdate;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description : 仓库组织关系表
|
|
||||||
* @Reference :
|
|
||||||
* @Author : silliter.yuan
|
|
||||||
* @CreateDate : 2018-10-31 15:18
|
|
||||||
* @Modify:
|
|
||||||
**/
|
|
||||||
@Data
|
|
||||||
@Entity
|
|
||||||
@DynamicInsert
|
|
||||||
@DynamicUpdate
|
|
||||||
@Table(name="T_WMS_ORG_WAREHOUSE")
|
|
||||||
@Api("工厂仓库组织关系表")
|
|
||||||
public class RefOrgWareHouse extends BaseBean {
|
|
||||||
|
|
||||||
@Column(name="ORG_ID")
|
|
||||||
@ApiParam("组织编号")
|
|
||||||
public String orgId;
|
|
||||||
|
|
||||||
@Column(name="WAREHOUSE_ID")
|
|
||||||
@ApiParam("仓库编号")
|
|
||||||
public String storeId;
|
|
||||||
}
|
|
@ -1,36 +0,0 @@
|
|||||||
package cn.estsh.i3plus.pojo.wms.bean;
|
|
||||||
|
|
||||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import io.swagger.annotations.ApiParam;
|
|
||||||
import lombok.Data;
|
|
||||||
import org.hibernate.annotations.DynamicInsert;
|
|
||||||
import org.hibernate.annotations.DynamicUpdate;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description : 用户仓库关系表
|
|
||||||
* @Reference :
|
|
||||||
* @Author : silliter.yuan
|
|
||||||
* @CreateDate : 2018-10-31 15:18
|
|
||||||
* @Modify:
|
|
||||||
**/
|
|
||||||
@Data
|
|
||||||
@Entity
|
|
||||||
@DynamicInsert
|
|
||||||
@DynamicUpdate
|
|
||||||
@Table(name="T_WMS_USER_WAREHOUSE")
|
|
||||||
@Api("用户仓库关系表")
|
|
||||||
public class RefUserWareHouse extends BaseBean {
|
|
||||||
|
|
||||||
@Column(name="USER_ID")
|
|
||||||
@ApiParam("用户编号")
|
|
||||||
public String userId;
|
|
||||||
|
|
||||||
@Column(name="WAREHOUSE_ID")
|
|
||||||
@ApiParam("仓库编号")
|
|
||||||
public String storeId;
|
|
||||||
}
|
|
@ -1,60 +0,0 @@
|
|||||||
package cn.estsh.i3plus.pojo.wms.bean;
|
|
||||||
|
|
||||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
||||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import io.swagger.annotations.ApiParam;
|
|
||||||
import lombok.Data;
|
|
||||||
import org.hibernate.annotations.DynamicInsert;
|
|
||||||
import org.hibernate.annotations.DynamicUpdate;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description : 工厂仓库
|
|
||||||
* @Reference :
|
|
||||||
* @Author : alwaysfrin
|
|
||||||
* @CreateDate : 2018-09-04 15:58
|
|
||||||
* @Modify:
|
|
||||||
**/
|
|
||||||
@Data
|
|
||||||
@Entity
|
|
||||||
@DynamicInsert
|
|
||||||
@DynamicUpdate
|
|
||||||
@Table(name="WH_STOCK_AREA")
|
|
||||||
@Api("仓库区域")
|
|
||||||
public class StockArea extends BaseBean {
|
|
||||||
|
|
||||||
@Column(name="AREA_CODE")
|
|
||||||
@ApiParam("仓库区域代码")
|
|
||||||
public String areaCode;
|
|
||||||
|
|
||||||
@Column(name="AREA_NAME")
|
|
||||||
@ApiParam("仓库区域名称")
|
|
||||||
public String areaName;
|
|
||||||
|
|
||||||
@Column(name="WH_ID")
|
|
||||||
@ApiParam(value = "仓库编号", example = "-1")
|
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
|
||||||
public Long whId;
|
|
||||||
|
|
||||||
@Column(name="WH_CODE_RDD")
|
|
||||||
@ApiParam("仓库代码")
|
|
||||||
public String whCodeRdd;
|
|
||||||
|
|
||||||
@Column(name="WH_NAME_RDD")
|
|
||||||
@ApiParam("仓库名称")
|
|
||||||
public String whNameRdd;
|
|
||||||
|
|
||||||
public Long getWhId() {
|
|
||||||
if(whId != null) {
|
|
||||||
return whId.longValue();
|
|
||||||
}else{
|
|
||||||
return whId;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,59 +0,0 @@
|
|||||||
package cn.estsh.i3plus.pojo.wms.bean;
|
|
||||||
|
|
||||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
||||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import io.swagger.annotations.ApiParam;
|
|
||||||
import lombok.Data;
|
|
||||||
import org.hibernate.annotations.DynamicInsert;
|
|
||||||
import org.hibernate.annotations.DynamicUpdate;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description : 库位
|
|
||||||
* @Reference :
|
|
||||||
* @Author : alwaysfrin
|
|
||||||
* @CreateDate : 2018-09-04 15:58
|
|
||||||
* @Modify:
|
|
||||||
**/
|
|
||||||
@Data
|
|
||||||
@Entity
|
|
||||||
@DynamicInsert
|
|
||||||
@DynamicUpdate
|
|
||||||
@Table(name="WH_STOCK_LOC")
|
|
||||||
@Api("仓库库位")
|
|
||||||
public class StockLocation extends BaseBean {
|
|
||||||
|
|
||||||
@Column(name="LOC_CODE")
|
|
||||||
@ApiParam("仓库库位代码")
|
|
||||||
public String locCode;
|
|
||||||
|
|
||||||
@Column(name="LOC_NAME")
|
|
||||||
@ApiParam("仓库库位名称")
|
|
||||||
public String locName;
|
|
||||||
|
|
||||||
@Column(name="AREA_ID")
|
|
||||||
@ApiParam(value = "库区编号", example = "-1")
|
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
|
||||||
public Long areaId;
|
|
||||||
|
|
||||||
@Column(name="AREA_CODE_RDD")
|
|
||||||
@ApiParam("库区代码")
|
|
||||||
public String areaCodeRdd;
|
|
||||||
|
|
||||||
@Column(name="AREA_NAME_RDD")
|
|
||||||
@ApiParam("库区名称")
|
|
||||||
public String areaNameRdd;
|
|
||||||
|
|
||||||
public Long getAreaId() {
|
|
||||||
if(areaId != null) {
|
|
||||||
return areaId.longValue();
|
|
||||||
}else{
|
|
||||||
return areaId;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,20 +0,0 @@
|
|||||||
package cn.estsh.i3plus.pojo.wms.repository;
|
|
||||||
|
|
||||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
|
||||||
import cn.estsh.i3plus.pojo.wms.bean.FactoryStore;
|
|
||||||
import cn.estsh.i3plus.pojo.wms.bean.WareHouse;
|
|
||||||
import org.springframework.data.jpa.repository.Query;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description : 对象持久层仓用方法控制
|
|
||||||
* @Reference :
|
|
||||||
* @Author : alwaysfrin
|
|
||||||
* @CreateDate : 2018-09-13 9:47
|
|
||||||
* @Modify:
|
|
||||||
**/
|
|
||||||
@Repository
|
|
||||||
public interface FactoryStoreRepository extends BaseRepository<FactoryStore, Long> {
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
package cn.estsh.i3plus.pojo.wms.repository;
|
|
||||||
|
|
||||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
|
||||||
import cn.estsh.i3plus.pojo.wms.bean.InterfaceDevice;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description : 对象持久层仓用方法控制
|
|
||||||
* @Reference :
|
|
||||||
* @Author : amy
|
|
||||||
* @CreateDate : 2018-11-01 15:13
|
|
||||||
* @Modify:
|
|
||||||
**/
|
|
||||||
@Repository
|
|
||||||
public interface InterfaceDeviceRepository extends BaseRepository<InterfaceDevice, Long> {
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
package cn.estsh.i3plus.pojo.wms.repository;
|
|
||||||
|
|
||||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
|
||||||
import cn.estsh.i3plus.pojo.wms.bean.StockArea;
|
|
||||||
import cn.estsh.i3plus.pojo.wms.bean.WmsTransType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description : 库区表
|
|
||||||
* @Reference :
|
|
||||||
* @Author : jessica.chen
|
|
||||||
* @CreateDate : 2018-11-04 12:02
|
|
||||||
* @Modify:
|
|
||||||
**/
|
|
||||||
public interface StockAreaRepository extends BaseRepository<StockArea, Long> {
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
package cn.estsh.i3plus.pojo.wms.repository;
|
|
||||||
|
|
||||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
|
||||||
import cn.estsh.i3plus.pojo.wms.bean.StockArea;
|
|
||||||
import cn.estsh.i3plus.pojo.wms.bean.StockLocation;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description : 库位表
|
|
||||||
* @Reference :
|
|
||||||
* @Author : jessica.chen
|
|
||||||
* @CreateDate : 2018-11-04 14:33
|
|
||||||
* @Modify:
|
|
||||||
**/
|
|
||||||
public interface StockLocationRepository extends BaseRepository<StockLocation, Long> {
|
|
||||||
}
|
|
Loading…
Reference in New Issue