From e0fc391e7f346309cf6bbda80eca6cac85e2fdfa Mon Sep 17 00:00:00 2001 From: XinYi Song <2037158277@qq.com> Date: Sat, 12 Feb 2022 15:01:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xkrs/model/entity/BusinessEntity.java | 9 ++++++++- .../java/com/xkrs/model/entity/ProductEntity.java | 9 ++++++++- .../com/xkrs/utils/ElectronicContractUtil.java | 15 +++++++++++++-- 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/xkrs/model/entity/BusinessEntity.java b/src/main/java/com/xkrs/model/entity/BusinessEntity.java index 2f289e2..d564af0 100644 --- a/src/main/java/com/xkrs/model/entity/BusinessEntity.java +++ b/src/main/java/com/xkrs/model/entity/BusinessEntity.java @@ -84,6 +84,11 @@ public class BusinessEntity { */ private Integer businessId; + /** + * 合同路径 + */ + private String contractPath; + /** * 商家入驻时间 */ @@ -93,7 +98,7 @@ public class BusinessEntity { public BusinessEntity() { } - public BusinessEntity(Integer id, String businessName, String businessPro, String businessCity, String businessCountry, String businessAddress, String businessPhone, String businessPhoto, String businessLicense, Double businessDiscount, String businessType, String headIdentifier, Integer businessId, String settleInTime) { + public BusinessEntity(Integer id, String businessName, String businessPro, String businessCity, String businessCountry, String businessAddress, String businessPhone, String businessPhoto, String businessLicense, Double businessDiscount, String businessType, String headIdentifier, Integer businessId, String contractPath, String settleInTime) { this.id = id; this.businessName = businessName; this.businessPro = businessPro; @@ -107,6 +112,7 @@ public class BusinessEntity { this.businessType = businessType; this.headIdentifier = headIdentifier; this.businessId = businessId; + this.contractPath = contractPath; this.settleInTime = settleInTime; } @@ -238,6 +244,7 @@ public class BusinessEntity { ", businessType='" + businessType + '\'' + ", headIdentifier='" + headIdentifier + '\'' + ", businessId=" + businessId + + ", contractPath='" + contractPath + '\'' + ", settleInTime='" + settleInTime + '\'' + '}'; } diff --git a/src/main/java/com/xkrs/model/entity/ProductEntity.java b/src/main/java/com/xkrs/model/entity/ProductEntity.java index fd7b736..6ddf923 100644 --- a/src/main/java/com/xkrs/model/entity/ProductEntity.java +++ b/src/main/java/com/xkrs/model/entity/ProductEntity.java @@ -97,6 +97,11 @@ public class ProductEntity { @Column(length = 65, columnDefinition = "varchar(65)") private String productTime; + /** + * 电子协议路径 + */ + private String productContractPath; + /** * 提交时间 */ @@ -106,7 +111,7 @@ public class ProductEntity { public ProductEntity() { } - public ProductEntity(Integer id, String productName, String productPro, String productCity, String productCounty, String productDescription, Integer productCategories, BigDecimal productPrice, String shelfType, String reviewType, Integer businessId, String userIdentity, String productCover, String productContent, String productTime, String submitTime) { + public ProductEntity(Integer id, String productName, String productPro, String productCity, String productCounty, String productDescription, Integer productCategories, BigDecimal productPrice, String shelfType, String reviewType, Integer businessId, String userIdentity, String productCover, String productContent, String productTime, String productContractPath, String submitTime) { this.id = id; this.productName = productName; this.productPro = productPro; @@ -122,6 +127,7 @@ public class ProductEntity { this.productCover = productCover; this.productContent = productContent; this.productTime = productTime; + this.productContractPath = productContractPath; this.submitTime = submitTime; } @@ -271,6 +277,7 @@ public class ProductEntity { ", productCover='" + productCover + '\'' + ", productContent='" + productContent + '\'' + ", productTime='" + productTime + '\'' + + ", productContractPath='" + productContractPath + '\'' + ", submitTime='" + submitTime + '\'' + '}'; } diff --git a/src/main/java/com/xkrs/utils/ElectronicContractUtil.java b/src/main/java/com/xkrs/utils/ElectronicContractUtil.java index 054ab52..3ec5eac 100644 --- a/src/main/java/com/xkrs/utils/ElectronicContractUtil.java +++ b/src/main/java/com/xkrs/utils/ElectronicContractUtil.java @@ -104,20 +104,31 @@ public class ElectronicContractUtil { // 表单数据 HashMap data = new HashMap<>(); + // 联系人 data.put("contacts","宋"); + // 电话 data.put("telephone","15315526196"); + // 乙方 data.put("name","星科瑞升"); + // 折扣 data.put("discount","2"); + // 合作期限开始时间 月 data.put("monthone","01"); + // 日 data.put("dayone","11"); + + // 结束时间 年 data.put("year","3"); - + // 结束时间月 data.put("monthtwo","01"); - + // 结束时间日 data.put("daytwo","23"); + + // 签订日期 月 data.put("monththree","03"); + // 日 data.put("daythree","01"); // 图片数据