Browse Source

ERP公共询价单上传增加需求数量字段

hejq 8 years ago
parent
commit
4db3e8bb1c

+ 13 - 0
src/main/java/com/uas/erp/schedular/publicinquiry/domain/BatchInProduct.java

@@ -58,6 +58,11 @@ public class BatchInProduct {
      */
      */
     private String em_name;
     private String em_name;
 
 
+    /**
+     * 需求数量/月采购数量
+     */
+    private Double ycgqty;
+
     public Long getBip_id() {
     public Long getBip_id() {
         return bip_id;
         return bip_id;
     }
     }
@@ -137,4 +142,12 @@ public class BatchInProduct {
     public void setEm_name(String em_name) {
     public void setEm_name(String em_name) {
         this.em_name = em_name;
         this.em_name = em_name;
     }
     }
+
+    public Double getYcgqty() {
+        return ycgqty;
+    }
+
+    public void setYcgqty(Double ycgqty) {
+        this.ycgqty = ycgqty;
+    }
 }
 }

+ 1 - 1
src/main/java/com/uas/erp/schedular/publicinquiry/task/PubInquiryTask.java

@@ -233,7 +233,7 @@ public class PubInquiryTask extends AbstractTask {
                 BatchInquiry.class);
                 BatchInquiry.class);
         for (BatchInquiry inquiry : inquiries) {
         for (BatchInquiry inquiry : inquiries) {
             // 获取询价单明细
             // 获取询价单明细
-            List<BatchInProduct> details = jdbcTemplate.queryForBeanList("select batchinprod.*,em_name from batchinprod left join employee on batchinprod.bip_buyercode = employee.em_code where bip_biid = ?",
+            List<BatchInProduct> details = jdbcTemplate.queryForBeanList("select batchinprod.*,employee.em_name,auto_inquiryprod.ycgqty from batchinprod left join employee on batchinprod.bip_buyercode = employee.em_code left join auto_inquiryprod on batchinprod.bip_prodcode = auto_inquiryprod.pr_code where batchinprod.bip_biid = ?",
                     BatchInProduct.class, inquiry.getBi_id());
                     BatchInProduct.class, inquiry.getBi_id());
             inquiry.setInProducts(details);
             inquiry.setInProducts(details);
             // 附件
             // 附件