Browse Source

器件实体类提交

hy 7 years ago
parent
commit
7156eebe01

+ 110 - 0
applications/transfers/mall-api/src/main/java/com/usoftchina/inquiry/api/SearchApi.java

@@ -0,0 +1,110 @@
+package com.usoftchina.inquiry.api;
+
+import com.usoftchina.inquiry.po.*;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.data.domain.Page;
+import org.springframework.ui.ModelMap;
+import org.springframework.web.bind.annotation.*;
+
+@FeignClient(url = "${inquiry.base-url}", name = "inquiry-server")
+@RequestMapping("/inquiry")
+public interface InquiryApi {
+
+    /**
+     * 查看待报价列表(全部)
+     * @param pageNumber
+     * @param pageSize
+     * @return
+     */
+    @GetMapping("/public")
+    IPage<PurcInquiryItemInfo> getInquiry(@RequestParam("pageNumber") int pageNumber, @RequestParam("pageSize") int pageSize,
+                                          @RequestParam("keyword") String keyword, @RequestParam("isLogin") int isLogin);
+
+    /**
+     * 查看待报价列表(企业商机)
+     * @param useruu
+     * @param enuu
+     * @param pageNumber
+     * @param pageSize
+     * @param enableOffer   是否能报价的:1为是 0为否,作为搜索条件。  值为0或null时,筛选所有
+     * @return
+     */
+    @GetMapping("/sale/enremind")
+    IPage<InquiryEnRemind> findEnRemind(@RequestParam("useruu") Long useruu, @RequestParam("enuu") Long enuu,
+                                        @RequestParam("pageNumber") int pageNumber, @RequestParam("pageSize") int pageSize,
+                                        @RequestParam("enableOffer") Integer enableOffer);
+
+    /**
+     * 查看(个人商机)
+     * @param useruu
+     * @param enuu
+     * @param pageNumber
+     * @param pageSize
+     * @param enableOffer   是否能报价的:1为是 0为否,作为搜索条件。  值为0或null时,筛选所有
+     * @param keyword       关键词,做筛选用
+     * @return
+     */
+    @GetMapping("/sale/remind")
+    IPage<InquiryRemind> findByUserInfo(@RequestParam("useruu") Long useruu, @RequestParam("enuu") Long enuu,
+                                        @RequestParam("pageNumber") int pageNumber, @RequestParam("pageSize") int pageSize,
+                                        @RequestParam("enableOffer") Integer enableOffer, @RequestParam("keyword") String keyword);
+
+    /**
+     * 保存报价接口
+     * @param publicInquiryItem 报价单内容
+     * @return
+     */
+    @PostMapping("/sale/item/saveQuote")
+    ModelMap saveQuote(@RequestBody PublicInquiryItem publicInquiryItem);
+
+    /**
+     * 保存更新公共询价单
+     * @param inquiry   询价信息
+     * @return
+     */
+    @PostMapping("/buyer/save")
+    PurcInquiry saveInquiry(@RequestBody PurcInquiry inquiry);
+
+    /**
+     * 通过企业UU和分页参数获取已发布的询价明细
+     * @param enUU
+     * @param overdue
+     * @param pageNumber
+     * @param pageSize
+     * @param state
+     * @return
+     */
+    @GetMapping("/buyer/list")
+    IPage<PurcInquiryItemInfo> getInquiryList(@RequestParam("enUU") Long enUU, @RequestParam("overdue") Integer overdue,
+                                             @RequestParam("pageNumber") int pageNumber, @RequestParam("pageSize") int pageSize,
+                                             @RequestParam("state") String state);
+
+    /*@GetMapping("/buyer/quotations")
+    IPage<PurcInquiryItemInfo> findQuotationsByPage(@RequestParam(value = "state", defaultValue = "done") String state,
+                                                   @RequestParam("enUU") Long enUU,
+                                                   @RequestParam("pageNumber") int pageNumber, @RequestParam("pageSize") int pageSize);
+    */
+
+    /**
+     * 采纳
+     * @param id
+     * @param status    是否采纳:1是 0否
+     * @param enuu      企业uu
+     * @param useruu    用户uu
+     */
+    @PostMapping("/buyer/adopt")
+    void adoptQuote(@RequestParam("id") Long id, @RequestParam("status") Short status,
+                    @RequestParam("enuu") Long enuu, @RequestParam("useruu") Long useruu);
+
+    /**
+     *
+     * @param id        报价明细id
+     * @param status    是否采纳:1是 0否
+     * @param enuu      企业uu
+     * @param useruu    用户uu
+     * @param refusereason  拒绝理由
+     */
+    @PostMapping("/buyer/refuse")
+    void refuseQuote(@RequestParam("id") Long id, @RequestParam("status") Short status, @RequestParam("enuu") Long enuu,
+                     @RequestParam("useruu") Long useruu, @RequestParam("refusereason") String refusereason);
+}

+ 220 - 0
applications/transfers/mall-api/src/main/java/com/usoftchina/inquiry/po/search/FuturesEntity.java

@@ -0,0 +1,220 @@
+package com.usoftchina.inquiry.po;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.Objects;
+
+/**
+ * 商品信息
+ *
+ * @author hey
+ * @since 2019/1/7 13:56
+ */
+public class GoodsEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    private Integer id; // 商品id
+
+    private Integer brandid; // 商城标准品牌id,如果商品时非标产品,则无值
+
+    private String branduuid; // 商城标准品牌uuid,如果商品时非标产品,则无值
+
+    private String brandNameCn; // 中文品牌名称
+
+    private String brandNameEn; // 英文品牌名称,建议展示使用规则:如果中文存在用中文,不存在则用英文
+
+    private Integer kindUuid; // 商城标准类目id,如果商品时非标产品,则无值
+
+    private String kindNameCn; // 产品名称
+
+    private String code; // 产品型号
+
+    private String uuid; // 商城标准产品uuid,如果商品时非标产品,则无值
+
+    private String spec; // 产品规格
+
+    private String packaging; // 包装方式
+
+    private String storeName; // 店铺名称
+
+    private String storeid; // 店铺uuid
+
+    private Double reserve; // 商品库存
+
+    private Double minBuyQty; // 最小起订量
+
+    private Boolean breakUp; // 是否可拆卖
+
+    private Integer b2cMinDelivery; // 最小交期
+
+    private Integer b2cMaxDelivery; // 最大交期
+
+    private String attach; // 商品规格书,如果有
+
+    private QtyPrice prices; // 分段价格
+
+    public static long getSerialVersionUID() {
+        return serialVersionUID;
+    }
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public Integer getBrandid() {
+        return brandid;
+    }
+
+    public void setBrandid(Integer brandid) {
+        this.brandid = brandid;
+    }
+
+    public String getBranduuid() {
+        return branduuid;
+    }
+
+    public void setBranduuid(String branduuid) {
+        this.branduuid = branduuid;
+    }
+
+    public String getBrandNameCn() {
+        return brandNameCn;
+    }
+
+    public void setBrandNameCn(String brandNameCn) {
+        this.brandNameCn = brandNameCn;
+    }
+
+    public String getBrandNameEn() {
+        return brandNameEn;
+    }
+
+    public void setBrandNameEn(String brandNameEn) {
+        this.brandNameEn = brandNameEn;
+    }
+
+    public Integer getKindUuid() {
+        return kindUuid;
+    }
+
+    public void setKindUuid(Integer kindUuid) {
+        this.kindUuid = kindUuid;
+    }
+
+    public String getKindNameCn() {
+        return kindNameCn;
+    }
+
+    public void setKindNameCn(String kindNameCn) {
+        this.kindNameCn = kindNameCn;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public void setCode(String code) {
+        this.code = code;
+    }
+
+    public String getUuid() {
+        return uuid;
+    }
+
+    public void setUuid(String uuid) {
+        this.uuid = uuid;
+    }
+
+    public String getSpec() {
+        return spec;
+    }
+
+    public void setSpec(String spec) {
+        this.spec = spec;
+    }
+
+    public String getPackaging() {
+        return packaging;
+    }
+
+    public void setPackaging(String packaging) {
+        this.packaging = packaging;
+    }
+
+    public String getStoreName() {
+        return storeName;
+    }
+
+    public void setStoreName(String storeName) {
+        this.storeName = storeName;
+    }
+
+    public String getStoreid() {
+        return storeid;
+    }
+
+    public void setStoreid(String storeid) {
+        this.storeid = storeid;
+    }
+
+    public Double getReserve() {
+        return reserve;
+    }
+
+    public void setReserve(Double reserve) {
+        this.reserve = reserve;
+    }
+
+    public Double getMinBuyQty() {
+        return minBuyQty;
+    }
+
+    public void setMinBuyQty(Double minBuyQty) {
+        this.minBuyQty = minBuyQty;
+    }
+
+    public Boolean getBreakUp() {
+        return breakUp;
+    }
+
+    public void setBreakUp(Boolean breakUp) {
+        this.breakUp = breakUp;
+    }
+
+    public Integer getB2cMinDelivery() {
+        return b2cMinDelivery;
+    }
+
+    public void setB2cMinDelivery(Integer b2cMinDelivery) {
+        this.b2cMinDelivery = b2cMinDelivery;
+    }
+
+    public Integer getB2cMaxDelivery() {
+        return b2cMaxDelivery;
+    }
+
+    public void setB2cMaxDelivery(Integer b2cMaxDelivery) {
+        this.b2cMaxDelivery = b2cMaxDelivery;
+    }
+
+    public String getAttach() {
+        return attach;
+    }
+
+    public void setAttach(String attach) {
+        this.attach = attach;
+    }
+
+    public QtyPrice getPrices() {
+        return prices;
+    }
+
+    public void setPrices(QtyPrice prices) {
+        this.prices = prices;
+    }
+}

+ 80 - 0
applications/transfers/mall-api/src/main/java/com/usoftchina/inquiry/po/search/GoodsEntity.java

@@ -0,0 +1,80 @@
+package com.usoftchina.inquiry.po;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.Objects;
+
+/**
+ * 附件
+ *
+ * @author chenwei
+ * @since 2018/1/13 13:56
+ */
+public class QtyPrice implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    private Double start; // 分段起始数量
+
+    private Double end; // 分段截止数量
+
+    private Double rMBPrice; // 人民币含税价格,人民币和美金二者只会有其一
+
+    private Double rMBNTPrice; // 人民币不含税价格,,人民币和美金二者只会有其一
+
+    private Double uSDPrice; // 美金含税价格,人民币和美金二者只会有其一
+
+    private Double uSDNTPrice; // 美金不含税价格,人民币和美金二者只会有其一
+
+    public static long getSerialVersionUID() {
+        return serialVersionUID;
+    }
+
+    public Double getStart() {
+        return start;
+    }
+
+    public void setStart(Double start) {
+        this.start = start;
+    }
+
+    public Double getEnd() {
+        return end;
+    }
+
+    public void setEnd(Double end) {
+        this.end = end;
+    }
+
+    public Double getrMBPrice() {
+        return rMBPrice;
+    }
+
+    public void setrMBPrice(Double rMBPrice) {
+        this.rMBPrice = rMBPrice;
+    }
+
+    public Double getrMBNTPrice() {
+        return rMBNTPrice;
+    }
+
+    public void setrMBNTPrice(Double rMBNTPrice) {
+        this.rMBNTPrice = rMBNTPrice;
+    }
+
+    public Double getuSDPrice() {
+        return uSDPrice;
+    }
+
+    public void setuSDPrice(Double uSDPrice) {
+        this.uSDPrice = uSDPrice;
+    }
+
+    public Double getuSDNTPrice() {
+        return uSDNTPrice;
+    }
+
+    public void setuSDNTPrice(Double uSDNTPrice) {
+        this.uSDNTPrice = uSDNTPrice;
+    }
+}

+ 220 - 0
applications/transfers/mall-api/src/main/java/com/usoftchina/inquiry/po/search/ProductEntity.java

@@ -0,0 +1,220 @@
+package com.usoftchina.inquiry.po;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.Objects;
+
+/**
+ * 商品信息
+ *
+ * @author hey
+ * @since 2019/1/7 13:56
+ */
+public class GoodsEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    private Integer id = 1; // 商品id
+
+    private Integer brandid = 2; // 商城标准品牌id,如果商品时非标产品,则无值
+
+    private String branduuid = 3; // 商城标准品牌uuid,如果商品时非标产品,则无值
+
+    private String brandNameCn = 4; // 中文品牌名称
+
+    private String brandNameEn = 5; // 英文品牌名称,建议展示使用规则:如果中文存在用中文,不存在则用英文
+
+    private Integer kindUuid = 6; // 商城标准类目id,如果商品时非标产品,则无值
+
+    private String kindNameCn = 7; // 产品名称
+
+    private String code = 8; // 产品型号
+
+    private String uuid = 9; // 商城标准产品uuid,如果商品时非标产品,则无值
+
+    private String spec = 10; // 产品规格
+
+    private String packaging = 11; // 包装方式
+
+    private String storeName = 12; // 店铺名称
+
+    private String storeid = 13; // 店铺uuid
+
+    private Double reserve = 14; // 商品库存
+
+    private Double minBuyQty = 15; // 最小起订量
+
+    private Boolean breakUp = 16; // 是否可拆卖
+
+    private Integer b2cMinDelivery; // 最小交期
+
+    private Integer b2cMaxDelivery; // 最大交期
+
+    private String attach; // 商品规格书,如果有
+
+    private QtyPrice prices; // 分段价格
+
+    public static long getSerialVersionUID() {
+        return serialVersionUID;
+    }
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public Integer getBrandid() {
+        return brandid;
+    }
+
+    public void setBrandid(Integer brandid) {
+        this.brandid = brandid;
+    }
+
+    public String getBranduuid() {
+        return branduuid;
+    }
+
+    public void setBranduuid(String branduuid) {
+        this.branduuid = branduuid;
+    }
+
+    public String getBrandNameCn() {
+        return brandNameCn;
+    }
+
+    public void setBrandNameCn(String brandNameCn) {
+        this.brandNameCn = brandNameCn;
+    }
+
+    public String getBrandNameEn() {
+        return brandNameEn;
+    }
+
+    public void setBrandNameEn(String brandNameEn) {
+        this.brandNameEn = brandNameEn;
+    }
+
+    public Integer getKindUuid() {
+        return kindUuid;
+    }
+
+    public void setKindUuid(Integer kindUuid) {
+        this.kindUuid = kindUuid;
+    }
+
+    public String getKindNameCn() {
+        return kindNameCn;
+    }
+
+    public void setKindNameCn(String kindNameCn) {
+        this.kindNameCn = kindNameCn;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public void setCode(String code) {
+        this.code = code;
+    }
+
+    public String getUuid() {
+        return uuid;
+    }
+
+    public void setUuid(String uuid) {
+        this.uuid = uuid;
+    }
+
+    public String getSpec() {
+        return spec;
+    }
+
+    public void setSpec(String spec) {
+        this.spec = spec;
+    }
+
+    public String getPackaging() {
+        return packaging;
+    }
+
+    public void setPackaging(String packaging) {
+        this.packaging = packaging;
+    }
+
+    public String getStoreName() {
+        return storeName;
+    }
+
+    public void setStoreName(String storeName) {
+        this.storeName = storeName;
+    }
+
+    public String getStoreid() {
+        return storeid;
+    }
+
+    public void setStoreid(String storeid) {
+        this.storeid = storeid;
+    }
+
+    public Double getReserve() {
+        return reserve;
+    }
+
+    public void setReserve(Double reserve) {
+        this.reserve = reserve;
+    }
+
+    public Double getMinBuyQty() {
+        return minBuyQty;
+    }
+
+    public void setMinBuyQty(Double minBuyQty) {
+        this.minBuyQty = minBuyQty;
+    }
+
+    public Boolean getBreakUp() {
+        return breakUp;
+    }
+
+    public void setBreakUp(Boolean breakUp) {
+        this.breakUp = breakUp;
+    }
+
+    public Integer getB2cMinDelivery() {
+        return b2cMinDelivery;
+    }
+
+    public void setB2cMinDelivery(Integer b2cMinDelivery) {
+        this.b2cMinDelivery = b2cMinDelivery;
+    }
+
+    public Integer getB2cMaxDelivery() {
+        return b2cMaxDelivery;
+    }
+
+    public void setB2cMaxDelivery(Integer b2cMaxDelivery) {
+        this.b2cMaxDelivery = b2cMaxDelivery;
+    }
+
+    public String getAttach() {
+        return attach;
+    }
+
+    public void setAttach(String attach) {
+        this.attach = attach;
+    }
+
+    public QtyPrice getPrices() {
+        return prices;
+    }
+
+    public void setPrices(QtyPrice prices) {
+        this.prices = prices;
+    }
+}

+ 152 - 0
applications/transfers/mall-api/src/main/java/com/usoftchina/inquiry/po/search/QtyPrice.java

@@ -0,0 +1,152 @@
+package com.usoftchina.inquiry.po;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.Objects;
+
+/**
+ * 附件
+ *
+ * @author chenwei
+ * @since 2018/1/13 13:56
+ */
+public class Attach implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    private Long id;
+
+    /**
+     * 路径
+     */
+    private String path;
+
+    /**
+     * 描述语
+     */
+    private String description;
+
+    /**
+     * 文件名称
+     */
+    private String name;
+
+    /**
+     * 文件大小
+     */
+    private Long size;
+
+    /**
+     * 关联的表
+     */
+    private String relatedTable;
+
+    /**
+     * 关联的数据主键值
+     */
+    private Long relatedKey;
+
+    /**
+     * 保存时间
+     */
+    private Date date;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public String getPath() {
+        return path;
+    }
+
+    public void setPath(String path) {
+        this.path = path;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public Long getSize() {
+        return size;
+    }
+
+    public void setSize(Long size) {
+        this.size = size;
+    }
+
+    public String getRelatedTable() {
+        return relatedTable;
+    }
+
+    public void setRelatedTable(String relatedTable) {
+        this.relatedTable = relatedTable;
+    }
+
+    public Long getRelatedKey() {
+        return relatedKey;
+    }
+
+    public void setRelatedKey(Long relatedKey) {
+        this.relatedKey = relatedKey;
+    }
+
+    public Date getDate() {
+        return date;
+    }
+
+    public void setDate(Date date) {
+        this.date = date;
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (o == null || getClass() != o.getClass()) return false;
+        Attach attach = (Attach) o;
+        return Objects.equals(id, attach.id) &&
+                Objects.equals(path, attach.path) &&
+                Objects.equals(description, attach.description) &&
+                Objects.equals(name, attach.name) &&
+                Objects.equals(size, attach.size) &&
+                Objects.equals(relatedTable, attach.relatedTable) &&
+                Objects.equals(relatedKey, attach.relatedKey) &&
+                Objects.equals(date, attach.date);
+    }
+
+    @Override
+    public int hashCode() {
+
+        return Objects.hash(id, path, description, name, size, relatedTable, relatedKey, date);
+    }
+
+    @Override
+    public String toString() {
+        return "Attach{" +
+                "id=" + id +
+                ", path='" + path + '\'' +
+                ", description='" + description + '\'' +
+                ", name='" + name + '\'' +
+                ", size=" + size +
+                ", relatedTable='" + relatedTable + '\'' +
+                ", relatedKey=" + relatedKey +
+                ", date=" + date +
+                '}';
+    }
+}

+ 60 - 0
applications/transfers/mall-api/src/main/java/com/usoftchina/inquiry/po/search/SearchComponentResp.java

@@ -0,0 +1,60 @@
+package com.usoftchina.inquiry.po;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.Objects;
+
+/**
+ * 特征信息
+ *
+ * @author hey
+ * @since 2019/1/7 13:56
+ */
+public class FuturesEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    private Long total; // 搜索结果总数
+
+    private Long page; // 页码
+
+    private Long size; // 分页大小
+
+    private ProductEntity content; // 期货物料列表
+
+    public static long getSerialVersionUID() {
+        return serialVersionUID;
+    }
+
+    public Long getTotal() {
+        return total;
+    }
+
+    public void setTotal(Long total) {
+        this.total = total;
+    }
+
+    public Long getPage() {
+        return page;
+    }
+
+    public void setPage(Long page) {
+        this.page = page;
+    }
+
+    public Long getSize() {
+        return size;
+    }
+
+    public void setSize(Long size) {
+        this.size = size;
+    }
+
+    public ProductEntity getContent() {
+        return content;
+    }
+
+    public void setContent(ProductEntity content) {
+        this.content = content;
+    }
+}

+ 60 - 0
applications/transfers/mall-api/src/main/java/com/usoftchina/inquiry/po/search/StockEntity.java

@@ -0,0 +1,60 @@
+package com.usoftchina.inquiry.po;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.Objects;
+
+/**
+ * 特征信息
+ *
+ * @author hey
+ * @since 2019/1/7 13:56
+ */
+public class FuturesEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    private Integer total; // 搜索结果总数
+
+    private Integer page; // 页码
+
+    private Integer size; // 分页大小
+
+    private ProductEntity content; // 期货物料列表
+
+    public static long getSerialVersionUID() {
+        return serialVersionUID;
+    }
+
+    public Integer getTotal() {
+        return total;
+    }
+
+    public void setTotal(Integer total) {
+        this.total = total;
+    }
+
+    public Integer getPage() {
+        return page;
+    }
+
+    public void setPage(Integer page) {
+        this.page = page;
+    }
+
+    public Integer getSize() {
+        return size;
+    }
+
+    public void setSize(Integer size) {
+        this.size = size;
+    }
+
+    public ProductEntity getContent() {
+        return content;
+    }
+
+    public void setContent(ProductEntity content) {
+        this.content = content;
+    }
+}