sunyj 8 лет назад
Родитель
Сommit
e530141dfe

+ 1 - 6
search-console/src/main/java/com/uas/search/console/dao/GoodsSimpleInfoDao.java

@@ -1,17 +1,12 @@
 package com.uas.search.console.dao;
 
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
 import org.springframework.stereotype.Repository;
 
-import com.uas.search.console.model.GoodsSimpleInfo;
-
 /**
  * @author sunyj
  * @since 2017年7月8日 下午7:45:01
  */
 @Repository
-public interface GoodsSimpleInfoDao
-		extends JpaSpecificationExecutor<GoodsSimpleInfo>, JpaRepository<GoodsSimpleInfo, Long> {
+public class GoodsSimpleInfoDao {
 
 }

+ 1 - 56
search-console/src/main/java/com/uas/search/console/model/GoodsSimpleInfo.java

@@ -2,20 +2,12 @@ package com.uas.search.console.model;
 
 import java.io.Serializable;
 
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Table;
-import javax.persistence.Transient;
-
 /**
  * 器件批次
  * 
  * @author sunyj
  * @since 2017年7月8日 下午5:14:08
  */
-@Entity
-@Table(name = "V$PRODUCT$CMPGOODS")
 public class GoodsSimpleInfo implements Serializable {
 
 	private static final long serialVersionUID = 1L;
@@ -23,86 +15,56 @@ public class GoodsSimpleInfo implements Serializable {
 	/**
 	 * id
 	 */
-	@Id
-	@Column(name = "ID")
 	private String id;
 
 	/**
 	 * 批次id
 	 */
-	@Column(name = "GO_ID")
 	private Long goId;
 
 	/**
 	 * 批次的库存
 	 */
-	@Column(name = "GO_RESERVE")
 	private Double goReserve;
 
 	/**
 	 * 批次的人民币价格
 	 */
-	@Column(name = "GO_MINPRICERMB")
 	private Double goMinPriceRMB;
 
 	/**
 	 * 批次的美元价格
 	 */
-	@Column(name = "GO_MINPRICEUSD")
 	private Double goMinPriceUSD;
 
 	/**
 	 * 货币
 	 */
-	@Column(name = "CR_NAME")
 	private String crName;
 
-	/**
-	 * 货源id
-	 */
-	@Column(name = "GO_STOREID")
-	private Long storeId;
-
 	/**
 	 * 货源
 	 */
-	@Transient
 	private StoreSimpleInfo store;
 
 	/**
 	 * 器件的id
 	 */
-	@Column(name = "CMP_ID")
 	private Long cmpId;
 
 	/**
 	 * 原厂型号
 	 */
-	@Column(name = "CMP_CODE")
 	private String cmpCode;
 
-	/**
-	 * 类目id
-	 */
-	@Column(name = "CMP_KIID")
-	private Long kindId;
-
 	/**
 	 * 类目
 	 */
-	@Transient
 	private KindSimpleInfo kind;
 
-	/**
-	 * 品牌id
-	 */
-	@Column(name = "CMP_BRID")
-	private Long brandId;
-
 	/**
 	 * 品牌
 	 */
-	@Transient
 	private BrandSimpleInfo brand;
 
 	public String getId() {
@@ -177,14 +139,6 @@ public class GoodsSimpleInfo implements Serializable {
 		this.cmpCode = cmpCode;
 	}
 
-	public Long getKindId() {
-		return kindId;
-	}
-
-	public void setKindId(Long kindId) {
-		this.kindId = kindId;
-	}
-
 	public KindSimpleInfo getKind() {
 		return kind;
 	}
@@ -193,14 +147,6 @@ public class GoodsSimpleInfo implements Serializable {
 		this.kind = kind;
 	}
 
-	public Long getBrandId() {
-		return brandId;
-	}
-
-	public void setBrandId(Long brandId) {
-		this.brandId = brandId;
-	}
-
 	public BrandSimpleInfo getBrand() {
 		return brand;
 	}
@@ -213,8 +159,7 @@ public class GoodsSimpleInfo implements Serializable {
 	public String toString() {
 		return "GoodsSimpleInfo [id=" + id + ", goId=" + goId + ", goReserve=" + goReserve + ", goMinPriceRMB="
 				+ goMinPriceRMB + ", goMinPriceUSD=" + goMinPriceUSD + ", crName=" + crName + ", store=" + store
-				+ ", cmpId=" + cmpId + ", cmpCode=" + cmpCode + ", kindId=" + kindId + ", kind=" + kind + ", brandId="
-				+ brandId + ", brand=" + brand + "]";
+				+ ", cmpId=" + cmpId + ", cmpCode=" + cmpCode + ", kind=" + kind + ", brand=" + brand + "]";
 	}
 
 }

+ 0 - 10
search-console/src/main/java/com/uas/search/console/model/StoreSimpleInfo.java

@@ -2,19 +2,12 @@ package com.uas.search.console.model;
 
 import java.io.Serializable;
 
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Table;
-
 /**
  * 店铺
  * 
  * @author sunyj
  * @since 2017年7月8日 下午6:14:26
  */
-@Entity
-@Table(name = "STORE$INFO")
 public class StoreSimpleInfo implements Serializable {
 
 	private static final long serialVersionUID = 1L;
@@ -22,14 +15,11 @@ public class StoreSimpleInfo implements Serializable {
 	/**
 	 * id
 	 */
-	@Id
-	@Column(name = "ST_UUID")
 	private String uuid;
 
 	/**
 	 * 类型
 	 */
-	@Column(name = "ST_TYPE")
 	private String type;
 
 	public String getUuid() {