优化代码

This commit is contained in:
XinYi Song 2022-02-12 15:01:23 +08:00
parent a2653507d2
commit e0fc391e7f
3 changed files with 29 additions and 4 deletions

View File

@ -84,6 +84,11 @@ public class BusinessEntity {
*/ */
private Integer businessId; private Integer businessId;
/**
* 合同路径
*/
private String contractPath;
/** /**
* 商家入驻时间 * 商家入驻时间
*/ */
@ -93,7 +98,7 @@ public class BusinessEntity {
public 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.id = id;
this.businessName = businessName; this.businessName = businessName;
this.businessPro = businessPro; this.businessPro = businessPro;
@ -107,6 +112,7 @@ public class BusinessEntity {
this.businessType = businessType; this.businessType = businessType;
this.headIdentifier = headIdentifier; this.headIdentifier = headIdentifier;
this.businessId = businessId; this.businessId = businessId;
this.contractPath = contractPath;
this.settleInTime = settleInTime; this.settleInTime = settleInTime;
} }
@ -238,6 +244,7 @@ public class BusinessEntity {
", businessType='" + businessType + '\'' + ", businessType='" + businessType + '\'' +
", headIdentifier='" + headIdentifier + '\'' + ", headIdentifier='" + headIdentifier + '\'' +
", businessId=" + businessId + ", businessId=" + businessId +
", contractPath='" + contractPath + '\'' +
", settleInTime='" + settleInTime + '\'' + ", settleInTime='" + settleInTime + '\'' +
'}'; '}';
} }

View File

@ -97,6 +97,11 @@ public class ProductEntity {
@Column(length = 65, columnDefinition = "varchar(65)") @Column(length = 65, columnDefinition = "varchar(65)")
private String productTime; private String productTime;
/**
* 电子协议路径
*/
private String productContractPath;
/** /**
* 提交时间 * 提交时间
*/ */
@ -106,7 +111,7 @@ public class ProductEntity {
public 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.id = id;
this.productName = productName; this.productName = productName;
this.productPro = productPro; this.productPro = productPro;
@ -122,6 +127,7 @@ public class ProductEntity {
this.productCover = productCover; this.productCover = productCover;
this.productContent = productContent; this.productContent = productContent;
this.productTime = productTime; this.productTime = productTime;
this.productContractPath = productContractPath;
this.submitTime = submitTime; this.submitTime = submitTime;
} }
@ -271,6 +277,7 @@ public class ProductEntity {
", productCover='" + productCover + '\'' + ", productCover='" + productCover + '\'' +
", productContent='" + productContent + '\'' + ", productContent='" + productContent + '\'' +
", productTime='" + productTime + '\'' + ", productTime='" + productTime + '\'' +
", productContractPath='" + productContractPath + '\'' +
", submitTime='" + submitTime + '\'' + ", submitTime='" + submitTime + '\'' +
'}'; '}';
} }

View File

@ -104,20 +104,31 @@ public class ElectronicContractUtil {
// 表单数据 // 表单数据
HashMap<String,String> data = new HashMap<>(); HashMap<String,String> data = new HashMap<>();
// 联系人
data.put("contacts",""); data.put("contacts","");
// 电话
data.put("telephone","15315526196"); data.put("telephone","15315526196");
// 乙方
data.put("name","星科瑞升"); data.put("name","星科瑞升");
// 折扣
data.put("discount","2"); data.put("discount","2");
// 合作期限开始时间
data.put("monthone","01"); data.put("monthone","01");
//
data.put("dayone","11"); data.put("dayone","11");
// 结束时间
data.put("year","3"); data.put("year","3");
// 结束时间月
data.put("monthtwo","01"); data.put("monthtwo","01");
// 结束时间日
data.put("daytwo","23"); data.put("daytwo","23");
// 签订日期
data.put("monththree","03"); data.put("monththree","03");
//
data.put("daythree","01"); data.put("daythree","01");
// 图片数据 // 图片数据