sunyj před 8 roky
rodič
revize
2f31961048
2 změnil soubory, kde provedl 0 přidání a 719 odebrání
  1. 0 4
      pom.xml
  2. 0 715
      src/main/java/com/uas/ps/inquiry/model/Product.java

+ 0 - 4
pom.xml

@@ -46,10 +46,6 @@
             <groupId>org.hibernate</groupId>
             <artifactId>hibernate-core</artifactId>
         </dependency>
-        <dependency>
-            <groupId>org.hibernate</groupId>
-            <artifactId>hibernate-ehcache</artifactId>
-        </dependency>
         <dependency>
             <groupId>mysql</groupId>
             <artifactId>mysql-connector-java</artifactId>

+ 0 - 715
src/main/java/com/uas/ps/inquiry/model/Product.java

@@ -1,715 +0,0 @@
-package com.uas.ps.inquiry.model;
-
-import javax.persistence.*;
-import java.io.Serializable;
-import java.util.Date;
-import java.util.Set;
-
-/**
- * 商品信息
- *
- * @author sunyj
- * @since 2018/1/6 16:52
- */
-@Entity
-@Table(name = "products")
-public class Product implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    @Id
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    @Column(name = "pr_id")
-    private Long id;
-
-    /**
-     * 商品信息标题
-     */
-    @Column(name = "pr_title")
-    private String title;
-
-    /**
-     * 产品编号
-     */
-    @Column(name = "pr_code")
-    private String code;
-
-    /**
-     * 产品规格
-     */
-    @Column(name = "pr_spec")
-    private String spec;
-
-    /**
-     * 单位
-     */
-    @Column(name = "pr_unit")
-    private String unit;
-
-    /**
-     * 所属企业UU
-     */
-    @Column(name = "pr_enuu")
-    // TODO @EnterpriseUU
-    private Long enUU;
-
-    /**
-     * 个人UU
-     */
-    @Column(name = "pr_useruu")
-    // TODO @UserUU
-    private Long userUU;
-
-    /**
-     * 最小包装量
-     */
-    @Column(name = "pr_minpack")
-    private Double minPack;
-
-    /**
-     * 最小采购量
-     */
-    @Column(name = "pr_minorder")
-    private Double minOrder;
-
-    /**
-     * 采购提前期
-     */
-    @Column(name = "pr_leadtime")
-    private Double leadtime;
-
-    /**
-     * 备货提前期(天数)
-     */
-    @Column(name = "pr_ltinstock")
-    private Double ltinstock;
-
-    /**
-     * 状态
-     */
-    @Column(name = "pr_status")
-    // TODO @StatusColumn
-    private Integer status;
-
-    /**
-     * 库存数
-     */
-    @Column(name = "pr_stock")
-    private Double stock;
-
-    /**
-     * 价格
-     */
-    @Column(name = "pr_price")
-    private Double price;
-
-    /**
-     * 品牌(ERP)
-     */
-    @Column(name = "pr_brand")
-    private String brand;
-
-    /**
-     * 发货地址
-     */
-    @Column(name = "pr_shipaddr")
-    private String shipAddr;
-
-    /**
-     * 买方ERP物料ID
-     */
-    @Column(name = "pr_sourceid")
-    private Long sourceId;
-
-    /**
-     * 保存erp传入数据的时间
-     *
-     * @return
-     */
-    @Column(name = "pr_erpdate")
-    private Date erpDate;
-
-    /**
-     * 原厂型号(erp)
-     *
-     * @return
-     */
-    @Column(name = "pr_cmpcode")
-    private String cmpCode;
-
-    /**
-     * UUID 标准料号
-     *
-     * @return
-     */
-    @Column(name = "pr_cmpuuid")
-    private String cmpUuId;
-
-    /**
-     * 应用来源<br>
-     * 平台上传的为可以销售的
-     *
-     * @return
-     */
-    @Column(name = "pr_sourceapp")
-    private String sourceApp;
-
-    /**
-     * 是否可卖<br>
-     * 1. 可以卖 <br>
-     * 0. 不可
-     */
-    @Column(name = "pr_issale")
-    private Short isSale;
-
-    /**
-     * 是否可买<br>
-     * 1. 可以买<br>
-     * 0. 不可
-     */
-    @Column(name = "pr_ispurchase")
-    private Short isPurchase;
-
-    /**
-     * 公开展示<br>
-     * <p>
-     * 1. 是<br>
-     * 0. 否
-     */
-    @Column(name = "pr_isshow")
-    private Short isShow;
-
-    /**
-     * 公开销售 <br>
-     * 1. 是<br>
-     * 0. 否
-     */
-    @Column(name = "pr_ispubsale")
-    private Short isPubsale;
-
-    /**
-     * 附件
-     */
-    @OneToOne(cascade = {CascadeType.ALL})
-    @JoinColumn(name = "pr_attachment")
-    private Attach attach;
-
-    /**
-     * 类目(平台)(中文)
-     */
-    @Column(name = "pr_kind")
-    private String kind;
-
-    /**
-     * 品牌(平台)(中文)
-     */
-    @Column(name = "pr_pbrand")
-    private String pbrand;
-
-    /**
-     * 型号(平台)
-     */
-    @Column(name = "pr_pcmpcode")
-    private String pcmpcode;
-
-    /**
-     * 信息提示(导入物料时给出提示)
-     */
-    @Column(name = "pr_message")
-    private String message;
-
-    /**
-     * 是否是标准物料<br>
-     * 1.YES<br>
-     * 0.NO
-     */
-    @Column(name = "pr_standard")
-    private Short standard;
-
-    /**
-     * 类目(平台)(英文)
-     */
-    @Column(name = "pr_kinden")
-    private String kinden;
-
-    /**
-     * 品牌(平台)(英文)
-     */
-    @Column(name = "pr_pbranden")
-    private String pbranden;
-
-    /**
-     * 匹配状态(记录匹配状态,方便下次查看)
-     */
-    @Column(name = "pr_matchstatus")
-    private Integer matchstatus;
-
-    /**
-     * 匹配数量(用作排序)
-     */
-    @Column(name = "pr_matchsize")
-    private Integer matchsize;
-
-    /**
-     * 匹配结果
-     */
-    @OneToMany(mappedBy = "product", cascade = {CascadeType.REFRESH}, fetch = FetchType.EAGER)
-    private Set<ProductMatchResult> matchresults;
-
-    /**
-     * 下载状态,平台更新ERP的数据后,将数据回传回ERP更新
-     */
-    @Column(name = "pr_downloadstatus")
-    private Integer downloadstatus;
-
-    /**
-     * 是否有业务逻辑关系<br>
-     * 1. 是<br>
-     * 0. 否
-     */
-    @Column(name = "pr_isbusiness")
-    private Short isbusiness;
-
-    /**
-     * 图片
-     */
-    @Column(name = "pr_cmpimg")
-    private String img;
-
-    /**
-     * 包装
-     */
-    @Column(name = "pr_encapsulation")
-    private String encapsulation;
-
-    /**
-     * b2c可用状态;<br>
-     * 1 为不存在相同的记录。<br>
-     * 0 为已经存在相同的记录
-     */
-    @Column(name = "pr_b2cenabled")
-    private Short b2cenabled;
-
-    /**
-     * uas与b2b可用状态;<br>
-     * 1 已禁用 <br>
-     * 0 可用状态,未禁用
-     */
-    @Column(name = "pr_b2benabled")
-    private Short b2benabled;
-
-    /**
-     * 匹配成标准的日期
-     */
-    @Column(name = "pr_tostandard")
-    private Date tostandard;
-
-    /**
-     * 编码版本号
-     */
-    @Column(name = "pr_goodsnover")
-    private String goodsnover;
-
-    /**
-     * 税收分类编码
-     */
-    @Column(name = "pr_goodstaxno")
-    private String goodstaxno;
-
-    /**
-     * 是否享受优惠政策
-     */
-    @Column(name = "pr_taxpre")
-    private String taxpre;
-
-    /**
-     * 享受优惠政策内容
-     */
-    @Column(name = "pr_taxprecon")
-    private String taxprecon;
-
-
-    public Product() {
-    }
-
-    public Long getId() {
-        return id;
-    }
-
-    public void setId(Long id) {
-        this.id = id;
-    }
-
-    public String getTitle() {
-        return title;
-    }
-
-    public void setTitle(String title) {
-        this.title = title;
-    }
-
-    public String getCode() {
-        return code;
-    }
-
-    public void setCode(String code) {
-        this.code = code;
-    }
-
-    public String getSpec() {
-        return spec;
-    }
-
-    public void setSpec(String spec) {
-        this.spec = spec;
-    }
-
-    public String getUnit() {
-        return unit;
-    }
-
-    public void setUnit(String unit) {
-        this.unit = unit;
-    }
-
-    public Long getEnUU() {
-        return enUU;
-    }
-
-    public void setEnUU(Long enUU) {
-        this.enUU = enUU;
-    }
-
-    public Long getUserUU() {
-        return userUU;
-    }
-
-    public void setUserUU(Long userUU) {
-        this.userUU = userUU;
-    }
-
-    public Double getMinPack() {
-        return minPack;
-    }
-
-    public void setMinPack(Double minPack) {
-        this.minPack = minPack;
-    }
-
-    public Double getMinOrder() {
-        return minOrder;
-    }
-
-    public void setMinOrder(Double minOrder) {
-        this.minOrder = minOrder;
-    }
-
-    public Double getLeadtime() {
-        return leadtime;
-    }
-
-    public void setLeadtime(Double leadtime) {
-        this.leadtime = leadtime;
-    }
-
-    public Integer getStatus() {
-        return status;
-    }
-
-    public void setStatus(Integer status) {
-        this.status = status;
-    }
-
-    public Double getStock() {
-        return stock;
-    }
-
-    public void setStock(Double stock) {
-        this.stock = stock;
-    }
-
-    public Double getPrice() {
-        return price;
-    }
-
-    public void setPrice(Double price) {
-        this.price = price;
-    }
-
-    public String getBrand() {
-        return brand;
-    }
-
-    public void setBrand(String brand) {
-        this.brand = brand;
-    }
-
-    public String getShipAddr() {
-        return shipAddr;
-    }
-
-    public void setShipAddr(String shipAddr) {
-        this.shipAddr = shipAddr;
-    }
-
-    public Double getLtinstock() {
-        return ltinstock;
-    }
-
-    public void setLtinstock(Double ltinstock) {
-        this.ltinstock = ltinstock;
-    }
-
-    public Long getSourceId() {
-        return sourceId;
-    }
-
-    public void setSourceId(Long sourceId) {
-        this.sourceId = sourceId;
-    }
-
-    public Date getErpDate() {
-        return erpDate;
-    }
-
-    public void setErpDate(Date erpDate) {
-        this.erpDate = erpDate;
-    }
-
-    public String getCmpCode() {
-        return cmpCode;
-    }
-
-    public void setCmpCode(String cmpCode) {
-        this.cmpCode = cmpCode;
-    }
-
-    public String getCmpUuId() {
-        return cmpUuId;
-    }
-
-    public void setCmpUuId(String cmpUuId) {
-        this.cmpUuId = cmpUuId;
-    }
-
-    @Override
-    public String toString() {
-        return "编号:" + getCode() + ",标题:" + getTitle() + ",规格型号:" + getSpec();
-    }
-
-    public String getSourceApp() {
-        return sourceApp;
-    }
-
-    public void setSourceApp(String sourceApp) {
-        this.sourceApp = sourceApp;
-    }
-
-    public Attach getAttach() {
-        return attach;
-    }
-
-    public void setAttach(Attach attach) {
-        this.attach = attach;
-    }
-
-    public Short getIsSale() {
-        return isSale;
-    }
-
-    public void setIsSale(Short isSale) {
-        this.isSale = isSale;
-    }
-
-    public Short getIsPurchase() {
-        return isPurchase;
-    }
-
-    public void setIsPurchase(Short isPurchase) {
-        this.isPurchase = isPurchase;
-    }
-
-    public Short getIsShow() {
-        return isShow;
-    }
-
-    public void setIsShow(Short isShow) {
-        this.isShow = isShow;
-    }
-
-    public Short getIsPubsale() {
-        return isPubsale;
-    }
-
-    public void setIsPubsale(Short isPubsale) {
-        this.isPubsale = isPubsale;
-    }
-
-    public String getKind() {
-        return kind;
-    }
-
-    public void setKind(String kind) {
-        this.kind = kind;
-    }
-
-    public String getPbrand() {
-        return pbrand;
-    }
-
-    public void setPbrand(String pbrand) {
-        this.pbrand = pbrand;
-    }
-
-    public String getPcmpcode() {
-        return pcmpcode;
-    }
-
-    public void setPcmpcode(String pcmpcode) {
-        this.pcmpcode = pcmpcode;
-    }
-
-    public String getMessage() {
-        return message;
-    }
-
-    public void setMessage(String message) {
-        this.message = message;
-    }
-
-    public Short getStandard() {
-        return standard;
-    }
-
-    public void setStandard(Short standard) {
-        this.standard = standard;
-    }
-
-    public String getKinden() {
-        return kinden;
-    }
-
-    public void setKinden(String kinden) {
-        this.kinden = kinden;
-    }
-
-    public String getPbranden() {
-        return pbranden;
-    }
-
-    public void setPbranden(String pbranden) {
-        this.pbranden = pbranden;
-    }
-
-    public Integer getMatchstatus() {
-        return matchstatus;
-    }
-
-    public void setMatchstatus(Integer matchstatus) {
-        this.matchstatus = matchstatus;
-    }
-
-    public Integer getMatchsize() {
-        return matchsize;
-    }
-
-    public void setMatchsize(Integer matchsize) {
-        this.matchsize = matchsize;
-    }
-
-    public Set<ProductMatchResult> getMatchresults() {
-        return matchresults;
-    }
-
-    public void setMatchresults(Set<ProductMatchResult> matchresults) {
-        this.matchresults = matchresults;
-    }
-
-    public Integer getDownloadstatus() {
-        return downloadstatus;
-    }
-
-    public void setDownloadstatus(Integer downloadstatus) {
-        this.downloadstatus = downloadstatus;
-    }
-
-    public Short getIsbusiness() {
-        return isbusiness;
-    }
-
-    public void setIsbusiness(Short isbusiness) {
-        this.isbusiness = isbusiness;
-    }
-
-    public String getImg() {
-        return img;
-    }
-
-    public void setImg(String img) {
-        this.img = img;
-    }
-
-    public String getEncapsulation() {
-        return encapsulation;
-    }
-
-    public void setEncapsulation(String encapsulation) {
-        this.encapsulation = encapsulation;
-    }
-
-    public Short getB2cenabled() {
-        return b2cenabled;
-    }
-
-    public void setB2cenabled(Short b2cenabled) {
-        this.b2cenabled = b2cenabled;
-    }
-
-    public Short getB2benabled() {
-        return b2benabled;
-    }
-
-    public void setB2benabled(Short b2benabled) {
-        this.b2benabled = b2benabled;
-    }
-
-    public Date getTostandard() {
-        return tostandard;
-    }
-
-    public void setTostandard(Date tostandard) {
-        this.tostandard = tostandard;
-    }
-
-    public String getGoodsnover() {
-        return goodsnover;
-    }
-
-    public void setGoodsnover(String goodsnover) {
-        this.goodsnover = goodsnover;
-    }
-
-    public String getGoodstaxno() {
-        return goodstaxno;
-    }
-
-    public void setGoodstaxno(String goodstaxno) {
-        this.goodstaxno = goodstaxno;
-    }
-
-    public String getTaxpre() {
-        return taxpre;
-    }
-
-    public void setTaxpre(String taxpre) {
-        this.taxpre = taxpre;
-    }
-
-    public String getTaxprecon() {
-        return taxprecon;
-    }
-
-    public void setTaxprecon(String taxprecon) {
-        this.taxprecon = taxprecon;
-    }
-}