优化代码

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 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 + '\'' +
'}';
}

View File

@ -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 + '\'' +
'}';
}

View File

@ -104,20 +104,31 @@ public class ElectronicContractUtil {
// 表单数据
HashMap<String,String> 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");
// 图片数据