Browse Source

Merge remote-tracking branch 'origin/master_liushuang'

13660505945 1 week ago
parent
commit
fa496c56ec

+ 12 - 0
docs/new_sql.sql

@@ -0,0 +1,12 @@
+
+-- 供应商信息表  新增供应商分级、结算方式、账单周期天数、采购对接人、到货天数、发票类型、合同附件
+ALTER TABLE jsh_supplier
+ADD COLUMN supplier_level VARCHAR(255) DEFAULT '' COMMENT '供应商分级',
+ADD COLUMN settlement_method VARCHAR(1) DEFAULT '' COMMENT '结算方式(0-周结, 1-现结/按单, 2-预付款, 3-月结)',
+ADD COLUMN billing_cycle_days INT DEFAULT NULL COMMENT '账单周期天数(单位:天)',
+ADD COLUMN procurement_contact VARCHAR(100) DEFAULT '' COMMENT '采购对接人姓名',
+ADD COLUMN delivery_days INT DEFAULT NULL COMMENT '到货天数(单位:天)',
+ADD COLUMN invoice_type VARCHAR(1)  DEFAULT '' COMMENT '发票类型:0-普通发票, 1-增值税专用发票',
+ADD COLUMN contract_upload VARCHAR(1000) DEFAULT '' COMMENT '合同附件存储路径';
+
+

BIN
jshERP-web/public/doc/vendor_template.xls


+ 108 - 0
src/main/java/com/jsh/erp/datasource/entities/Supplier.java

@@ -2,57 +2,109 @@ package com.jsh.erp.datasource.entities;
 
 import java.math.BigDecimal;
 
+/**
+ * 供应商/客户信息表实体类
+ *
+ */
 public class Supplier {
+
+    /** 主键 */
     private Long id;
 
+    /** 供应商名称 */
     private String supplier;
 
+    /** 供应商联系人 */
     private String contacts;
 
+    /** 联系电话 */
     private String phoneNum;
 
+    /** 电子邮箱 */
     private String email;
 
+    /** 备注 */
     private String description;
 
+    /** 是否系统自带 0==系统 1==非系统 */
     private Byte isystem;
 
+    /** 类型 */
     private String type;
 
+    /** 启用 */
     private Boolean enabled;
 
+    /** 预收款 */
     private BigDecimal advanceIn;
 
+    /** 期初应收 */
     private BigDecimal beginNeedGet;
 
+    /** 期初应付 */
     private BigDecimal beginNeedPay;
 
+    /** 累计应收 */
     private BigDecimal allNeedGet;
 
+    /** 累计应付 */
     private BigDecimal allNeedPay;
 
+    /** 传真 */
     private String fax;
 
+    /** 手机 */
     private String telephone;
 
+    /** 地址 */
     private String address;
 
+    /** 纳税人识别号 */
     private String taxNum;
 
+    /** 开户行 */
     private String bankName;
 
+    /** 账号 */
     private String accountNumber;
 
+    /** 税率 */
     private BigDecimal taxRate;
 
+    /** 排序 */
     private String sort;
 
+    /** 操作员 */
     private Long creator;
 
+    /** 租户id */
     private Long tenantId;
 
+    /** 删除标记,0未删除,1删除 */
     private String deleteFlag;
 
+    /** 供应商分级 */
+    private String supplierLevel;
+
+    /** 结算方式(0-周结, 1-现结/按单, 2-预付款, 3-月结) */
+    private String settlementMethod;
+
+    /** 账单周期天数(单位:天) */
+    private Integer billingCycleDays;
+
+    /** 采购对接人姓名 */
+    private String procurementContact;
+
+    /** 到货天数(单位:天) */
+    private Integer deliverydays;
+
+    /** 发票类型:0-普通发票, 1-增值税专用发票 */
+    private String invoiceType;
+
+    /** 合同附件存储路径 */
+    private String contractUpload;
+
+
     public Long getId() {
         return id;
     }
@@ -252,4 +304,60 @@ public class Supplier {
     public void setDeleteFlag(String deleteFlag) {
         this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
     }
+
+    public String getSupplierLevel() {
+        return supplierLevel;
+    }
+
+    public void setSupplierLevel(String supplierLevel) {
+        this.supplierLevel = supplierLevel == null ? null : supplierLevel.trim();
+    }
+
+    public String getSettlementMethod() {
+        return settlementMethod;
+    }
+
+    public void setSettlementMethod(String settlementMethod) {
+        this.settlementMethod = settlementMethod == null ? null : settlementMethod.trim();;
+    }
+
+    public Integer getBillingCycleDays() {
+        return billingCycleDays;
+    }
+
+    public void setBillingCycleDays(Integer billingCycleDays) {
+        this.billingCycleDays = billingCycleDays;
+    }
+
+    public String getProcurementContact() {
+        return procurementContact;
+    }
+
+    public void setProcurementContact(String procurementContact) {
+        this.procurementContact = procurementContact == null ? null : procurementContact.trim();;
+    }
+
+    public Integer getDeliverydays() {
+        return deliverydays;
+    }
+
+    public void setDeliverydays(Integer deliverydays) {
+        this.deliverydays = deliverydays;
+    }
+
+    public String getInvoiceType() {
+        return invoiceType;
+    }
+
+    public void setInvoiceType(String invoiceType) {
+        this.invoiceType = invoiceType == null ? null : invoiceType.trim();;
+    }
+
+    public String getContractUpload() {
+        return contractUpload;
+    }
+
+    public void setContractUpload(String contractUpload) {
+        this.contractUpload = contractUpload;
+    }
 }

+ 69 - 26
src/main/java/com/jsh/erp/service/SupplierService.java

@@ -414,11 +414,11 @@ public class SupplierService {
         User userInfo = userService.getCurrentUser();
         Workbook workbook = Workbook.getWorkbook(file.getInputStream());
         Sheet src = workbook.getSheet(0);
-        //'名称', '联系人', '手机号码', '联系电话', '电子邮箱', '传真', '期初应付', '纳税人识别号', '税率(%)', '开户行', '账号', '地址', '备注', '排序', '状态'
+        //'名称', '联系人', '手机号码', '联系电话', '电子邮箱', '纳税人识别号', '开具发票情况','税率(%)', '开户行', '账号', '地址', '供应商分级', '结算方式',	'账单周期', '采购对接人', '到货天数', '备注', '排序', '状态'
         List<Supplier> sList = new ArrayList<>();
         for (int i = 2; i < src.getRows(); i++) {
             String supplierName = ExcelUtils.getContent(src, i, 0);
-            String enabled = ExcelUtils.getContent(src, i, 14);
+            String enabled = ExcelUtils.getContent(src, i, 18);
             if(StringUtil.isNotEmpty(supplierName) && StringUtil.isNotEmpty(enabled)) {
                 Supplier s = new Supplier();
                 s.setType(type);
@@ -427,15 +427,19 @@ public class SupplierService {
                 s.setTelephone(ExcelUtils.getContent(src, i, 2));
                 s.setPhoneNum(ExcelUtils.getContent(src, i, 3));
                 s.setEmail(ExcelUtils.getContent(src, i, 4));
-                s.setFax(ExcelUtils.getContent(src, i, 5));
-                s.setBeginNeedPay(parseBigDecimalEx(ExcelUtils.getContent(src, i, 6)));
-                s.setTaxNum(ExcelUtils.getContent(src, i, 7));
-                s.setTaxRate(parseBigDecimalEx(ExcelUtils.getContent(src, i, 8)));
-                s.setBankName(ExcelUtils.getContent(src, i, 9));
-                s.setAccountNumber(ExcelUtils.getContent(src, i, 10));
-                s.setAddress(ExcelUtils.getContent(src, i, 11));
-                s.setDescription(ExcelUtils.getContent(src, i, 12));
-                s.setSort(ExcelUtils.getContent(src, i, 13));
+                s.setTaxNum(ExcelUtils.getContent(src, i, 5));
+                s.setInvoiceType(ExcelUtils.getContent(src, i, 6));
+                s.setTaxRate(parseBigDecimalEx(ExcelUtils.getContent(src, i, 7)));
+                s.setBankName(ExcelUtils.getContent(src, i, 8));
+                s.setAccountNumber(ExcelUtils.getContent(src, i, 9));
+                s.setAddress(ExcelUtils.getContent(src, i, 10));
+                s.setSupplierLevel(ExcelUtils.getContent(src, i, 11));
+                s.setSettlementMethod(ExcelUtils.getContent(src, i, 12));
+                s.setBillingCycleDays(Integer.valueOf(ExcelUtils.getContent(src, i, 13)));
+                s.setProcurementContact(ExcelUtils.getContent(src, i, 14));
+                s.setDeliverydays(Integer.valueOf(ExcelUtils.getContent(src, i, 15)));
+                s.setDescription(ExcelUtils.getContent(src, i, 16));
+                s.setSort(ExcelUtils.getContent(src, i, 17));
                 s.setCreator(userInfo==null?null:userInfo.getId());
                 s.setEnabled("1".equals(enabled));
                 sList.add(s);
@@ -579,14 +583,15 @@ public class SupplierService {
     }
 
     private File exportExcelVendorOrCustomer(List<Supplier> dataList, String type) throws Exception {
-        String beginNeedStr = "";
+        /*String beginNeedStr = "";
         if("供应商".equals(type)) {
             beginNeedStr = "期初应付";
         } else if("客户".equals(type)) {
             beginNeedStr = "期初应收";
-        }
-        String[] names = {"名称*", "联系人", "手机号码", "联系电话", "电子邮箱", "传真", beginNeedStr,
-                "纳税人识别号", "税率(%)", "开户行", "账号", "地址", "备注", "排序", "状态*"};
+        }*/
+        String[] names = {"名称*", "联系人", "手机号码", "联系电话", "电子邮箱",
+                "纳税人识别号", "发票类型","税率(%)", "开户行", "账号", "地址","供应商分级",
+                "结算方式", "账单周期", "采购对接人", "到货天数", "备注", "排序", "状态*"};
         String title = "信息内容";
         List<String[]> objects = new ArrayList<String[]>();
         if (null != dataList) {
@@ -597,26 +602,64 @@ public class SupplierService {
                 objs[2] = s.getTelephone();
                 objs[3] = s.getPhoneNum();
                 objs[4] = s.getEmail();
-                objs[5] = s.getFax();
-                if(("客户").equals(s.getType())) {
+                /*if(("客户").equals(s.getType())) {
                     objs[6] = s.getBeginNeedGet() == null? "" : s.getBeginNeedGet().setScale(2,BigDecimal.ROUND_HALF_UP).toString();
                 } else if(("供应商").equals(s.getType())) {
                     objs[6] = s.getBeginNeedPay() == null? "" : s.getBeginNeedPay().setScale(2,BigDecimal.ROUND_HALF_UP).toString();
-                }
-                objs[7] = s.getTaxNum();
-                objs[8] = s.getTaxRate() == null? "" : s.getTaxRate().setScale(2,BigDecimal.ROUND_HALF_UP).toString();
-                objs[9] = s.getBankName();
-                objs[10] = s.getAccountNumber();
-                objs[11] = s.getAddress();
-                objs[12] = s.getDescription();
-                objs[13] = s.getSort();
-                objs[14] = s.getEnabled() ? "1" : "0";
+                }*/
+                objs[5] = s.getTaxNum();
+                // 发票类型
+                objs[6] = mapInvoiceType(s.getInvoiceType());
+                // 税率
+                objs[7] = s.getTaxRate() == null? "" : s.getTaxRate().setScale(2,BigDecimal.ROUND_HALF_UP).toString();
+
+                // 银行信息
+                objs[8] = s.getBankName();
+                objs[9] = s.getAccountNumber();
+                objs[10] = s.getAddress();
+
+                // 供应商分级
+                objs[11] = s.getSupplierLevel();
+
+                // 结算方式
+                objs[12] = mapSettlementMethod(s.getSettlementMethod());
+                // 账单周期
+                objs[13] = s.getBillingCycleDays() == null? "" : s.getBillingCycleDays().toString();
+                // 采购对接人
+                objs[14] = s.getProcurementContact();
+                // 到货天数
+                objs[15] = s.getDeliverydays() == null? "" : s.getDeliverydays().toString();
+                objs[16] = s.getDescription();
+                objs[17] = s.getSort();
+                objs[18] = s.getEnabled() ? "1" : "0";
                 objects.add(objs);
             }
         }
         return ExcelUtils.exportObjectsOneSheet(title, "*导入时本行内容请勿删除,切记!", names, title, objects);
     }
 
+    private String mapInvoiceType(String invoiceType) {
+        if ("0".equals(invoiceType)) {
+            return "普通发票";
+        } else if ("1".equals(invoiceType)) {
+            return "增值税专用发票";
+        }
+        return "";
+    }
+
+    private String mapSettlementMethod(String settlementMethod) {
+        if ("0".equals(settlementMethod)) {
+            return "周结";
+        } else if ("1".equals(settlementMethod)) {
+            return "现结/按单";
+        } else if ("2".equals(settlementMethod)) {
+            return "预付款";
+        } else if ("3".equals(settlementMethod)) {
+            return "月结";
+        }
+        return "";
+    }
+
     /**
      * 新增客户时给当前用户自动授权
      * @param request

+ 127 - 21
src/main/resources/mapper_xml/SupplierMapper.xml

@@ -27,6 +27,13 @@
     <result column="creator" jdbcType="BIGINT" property="creator" />
     <result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
     <result column="delete_flag" jdbcType="VARCHAR" property="deleteFlag" />
+    <result column="supplier_level" jdbcType="VARCHAR" property="supplierLevel" />
+    <result column="settlement_method" jdbcType="VARCHAR" property="settlementMethod" />
+    <result column="billing_cycle_days" jdbcType="INTEGER" property="billingCycleDays" />
+    <result column="procurement_contact" jdbcType="VARCHAR" property="procurementContact" />
+    <result column="delivery_days" jdbcType="INTEGER" property="deliverydays" />
+    <result column="invoice_type" jdbcType="VARCHAR" property="invoiceType" />
+    <result column="contract_upload" jdbcType="VARCHAR" property="contractUpload" />
   </resultMap>
   <sql id="Example_Where_Clause">
     <where>
@@ -89,7 +96,9 @@
   <sql id="Base_Column_List">
     id, supplier, contacts, phone_num, email, description, isystem, type, enabled, advance_in, 
     begin_need_get, begin_need_pay, all_need_get, all_need_pay, fax, telephone, address, 
-    tax_num, bank_name, account_number, tax_rate, sort, creator, tenant_id, delete_flag
+    tax_num, bank_name, account_number, tax_rate, sort, creator, tenant_id, delete_flag,
+    supplier_level, settlement_method, billing_cycle_days, procurement_contact, delivery_days,
+    invoice_type, contract_upload
   </sql>
   <select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.SupplierExample" resultMap="BaseResultMap">
     select
@@ -122,24 +131,23 @@
     </if>
   </delete>
   <insert id="insert" parameterType="com.jsh.erp.datasource.entities.Supplier">
-    insert into jsh_supplier (id, supplier, contacts, 
-      phone_num, email, description, 
-      isystem, type, enabled, 
-      advance_in, begin_need_get, begin_need_pay, 
-      all_need_get, all_need_pay, fax, 
-      telephone, address, tax_num, 
-      bank_name, account_number, tax_rate, 
-      sort, creator, tenant_id, 
-      delete_flag)
-    values (#{id,jdbcType=BIGINT}, #{supplier,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR}, 
-      #{phoneNum,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, 
-      #{isystem,jdbcType=TINYINT}, #{type,jdbcType=VARCHAR}, #{enabled,jdbcType=BIT}, 
-      #{advanceIn,jdbcType=DECIMAL}, #{beginNeedGet,jdbcType=DECIMAL}, #{beginNeedPay,jdbcType=DECIMAL}, 
-      #{allNeedGet,jdbcType=DECIMAL}, #{allNeedPay,jdbcType=DECIMAL}, #{fax,jdbcType=VARCHAR}, 
-      #{telephone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{taxNum,jdbcType=VARCHAR}, 
-      #{bankName,jdbcType=VARCHAR}, #{accountNumber,jdbcType=VARCHAR}, #{taxRate,jdbcType=DECIMAL}, 
-      #{sort,jdbcType=VARCHAR}, #{creator,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT}, 
-      #{deleteFlag,jdbcType=VARCHAR})
+    insert into jsh_supplier (id, supplier, contacts, phone_num, email, description, isystem, type,
+                              enabled, advance_in, begin_need_get, begin_need_pay, all_need_get,
+                              all_need_pay, fax, telephone, address, tax_num, bank_name, account_number,
+                              tax_rate, sort, creator, tenant_id, delete_flag, supplier_level,
+                              settlement_method, billing_cycle_days, procurement_contact, delivery_days,
+                              invoice_type, contract_upload)
+    values (#{id,jdbcType=BIGINT}, #{supplier,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR},
+            #{phoneNum,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
+            #{isystem,jdbcType=TINYINT}, #{type,jdbcType=VARCHAR}, #{enabled,jdbcType=BIT},
+            #{advanceIn,jdbcType=DECIMAL}, #{beginNeedGet,jdbcType=DECIMAL}, #{beginNeedPay,jdbcType=DECIMAL},
+            #{allNeedGet,jdbcType=DECIMAL}, #{allNeedPay,jdbcType=DECIMAL}, #{fax,jdbcType=VARCHAR},
+            #{telephone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{taxNum,jdbcType=VARCHAR},
+            #{bankName,jdbcType=VARCHAR}, #{accountNumber,jdbcType=VARCHAR}, #{taxRate,jdbcType=DECIMAL},
+            #{sort,jdbcType=VARCHAR}, #{creator,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT},
+            #{deleteFlag,jdbcType=VARCHAR}, #{supplierLevel,jdbcType=VARCHAR}, #{settlementMethod,jdbcType=VARCHAR},
+            #{billingCycleDays,jdbcType=INTEGER}, #{procurementContact,jdbcType=VARCHAR}, #{deliverydays,jdbcType=INTEGER},
+            #{invoiceType,jdbcType=VARCHAR}, #{contractUpload,jdbcType=VARCHAR})
   </insert>
   <insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.Supplier">
     insert into jsh_supplier
@@ -219,6 +227,27 @@
       <if test="deleteFlag != null">
         delete_flag,
       </if>
+      <if test="supplierLevel != null">
+        supplier_level,
+      </if>
+      <if test="settlementMethod != null">
+        settlement_method,
+      </if>
+      <if test="billingCycleDays != null">
+        billing_cycle_days,
+      </if>
+      <if test="procurementContact != null">
+        procurement_contact,
+      </if>
+      <if test="deliverydays != null">
+        delivery_days,
+      </if>
+      <if test="invoiceType != null">
+        invoice_type,
+      </if>
+      <if test="contractUpload != null">
+        contract_upload,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="id != null">
@@ -296,6 +325,27 @@
       <if test="deleteFlag != null">
         #{deleteFlag,jdbcType=VARCHAR},
       </if>
+      <if test="supplierLevel != null">
+        #{supplierLevel,jdbcType=VARCHAR},
+      </if>
+      <if test="settlementMethod != null">
+        #{settlementMethod,jdbcType=VARCHAR},
+      </if>
+      <if test="billingCycleDays != null">
+        #{billingCycleDays,jdbcType=INTEGER},
+      </if>
+      <if test="procurementContact != null">
+        #{procurementContact,jdbcType=VARCHAR},
+      </if>
+      <if test="deliverydays != null">
+        #{deliverydays,jdbcType=INTEGER},
+      </if>
+      <if test="invoiceType != null">
+        #{invoiceType,jdbcType=VARCHAR},
+      </if>
+      <if test="contractUpload != null">
+        #{contractUpload,jdbcType=VARCHAR},
+      </if>
     </trim>
   </insert>
   <select id="countByExample" parameterType="com.jsh.erp.datasource.entities.SupplierExample" resultType="java.lang.Long">
@@ -382,6 +432,27 @@
       <if test="record.deleteFlag != null">
         delete_flag = #{record.deleteFlag,jdbcType=VARCHAR},
       </if>
+      <if test="record.supplierLevel != null">
+        supplier_level = #{record.supplierLevel,jdbcType=VARCHAR},
+      </if>
+      <if test="record.settlementMethod != null">
+        settlement_method = #{record.settlementMethod,jdbcType=VARCHAR},
+      </if>
+      <if test="record.billingCycleDays != null">
+        billing_cycle_days = #{record.billingCycleDays,jdbcType=INTEGER},
+      </if>
+      <if test="record.procurementContact != null">
+        procurement_contact = #{record.procurementContact,jdbcType=VARCHAR},
+      </if>
+      <if test="record.deliverydays != null">
+        delivery_days = #{record.deliverydays,jdbcType=INTEGER},
+      </if>
+      <if test="record.invoiceType != null">
+        invoice_type = #{record.invoiceType,jdbcType=VARCHAR},
+      </if>
+      <if test="record.contractUpload != null">
+        contract_upload = #{record.contractUpload,jdbcType=VARCHAR},
+      </if>
     </set>
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
@@ -413,7 +484,14 @@
       sort = #{record.sort,jdbcType=VARCHAR},
       creator = #{record.creator,jdbcType=BIGINT},
       tenant_id = #{record.tenantId,jdbcType=BIGINT},
-      delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}
+      delete_flag = #{record.deleteFlag,jdbcType=VARCHAR},
+      supplier_level = #{record.supplierLevel,jdbcType=VARCHAR},
+      settlement_method = #{record.settlementMethod,jdbcType=VARCHAR},
+      billing_cycle_days = #{record.billingCycleDays,jdbcType=INTEGER},
+      procurement_contact = #{record.procurementContact,jdbcType=VARCHAR},
+      delivery_days = #{record.deliverydays,jdbcType=INTEGER},
+      invoice_type = #{record.invoiceType,jdbcType=VARCHAR},
+      contract_upload = #{record.contractUpload,jdbcType=VARCHAR}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -493,6 +571,27 @@
       <if test="deleteFlag != null">
         delete_flag = #{deleteFlag,jdbcType=VARCHAR},
       </if>
+      <if test="supplierLevel != null">
+        supplier_level = #{supplierLevel,jdbcType=VARCHAR},
+      </if>
+      <if test="settlementMethod != null">
+        settlement_method = #{settlementMethod,jdbcType=VARCHAR},
+      </if>
+      <if test="billingCycleDays != null">
+        billing_cycle_days = #{billingCycleDays,jdbcType=INTEGER},
+      </if>
+      <if test="procurementContact != null">
+        procurement_contact = #{procurementContact,jdbcType=VARCHAR},
+      </if>
+      <if test="deliverydays != null">
+        delivery_days = #{deliverydays,jdbcType=INTEGER},
+      </if>
+      <if test="invoiceType != null">
+        invoice_type = #{invoiceType,jdbcType=VARCHAR},
+      </if>
+      <if test="contractUpload != null">
+        contract_upload = #{contractUpload,jdbcType=VARCHAR},
+      </if>
     </set>
     where id = #{id,jdbcType=BIGINT}
   </update>
@@ -521,7 +620,14 @@
       sort = #{sort,jdbcType=VARCHAR},
       creator = #{creator,jdbcType=BIGINT},
       tenant_id = #{tenantId,jdbcType=BIGINT},
-      delete_flag = #{deleteFlag,jdbcType=VARCHAR}
+      delete_flag = #{deleteFlag,jdbcType=VARCHAR},
+      supplier_level = #{supplierLevel,jdbcType=VARCHAR},
+      settlement_method = #{settlementMethod,jdbcType=VARCHAR},
+      billing_cycle_days = #{billingCycleDays,jdbcType=INTEGER},
+      procurement_contact = #{procurementContact,jdbcType=VARCHAR},
+      delivery_days = #{deliverydays,jdbcType=INTEGER},
+      invoice_type = #{invoiceType,jdbcType=VARCHAR},
+      contract_upload = #{contractUpload,jdbcType=VARCHAR}
     where id = #{id,jdbcType=BIGINT}
   </update>
 </mapper>