Commit 3656c5cf by 崔彦峰

add:提交代码。

1 parent 12aedaa8
...@@ -200,4 +200,7 @@ public class ConfirmCarDeliveryTransferDTO extends ContractBaseDTO { ...@@ -200,4 +200,7 @@ public class ConfirmCarDeliveryTransferDTO extends ContractBaseDTO {
*/ */
private ConfirmCarDeliveryRequest confirmCarDeliveryRequest; private ConfirmCarDeliveryRequest confirmCarDeliveryRequest;
@Schema(description = "签署人类型:0:企业-个人 1:企业-企业")
private Integer signerType;
} }
\ No newline at end of file \ No newline at end of file
...@@ -41,5 +41,8 @@ public class SupplementaryClauseTransferDTO extends ContractBaseDTO { ...@@ -41,5 +41,8 @@ public class SupplementaryClauseTransferDTO extends ContractBaseDTO {
@Schema(description = "二手车合同签署时间") @Schema(description = "二手车合同签署时间")
private String signedDate; private String signedDate;
@Schema(description = "签署人类型:0:企业-个人 1:企业-企业")
private Integer signerType;
} }
\ No newline at end of file \ No newline at end of file
...@@ -241,6 +241,6 @@ public class EvalElectronicContractDTO extends EvalElectronicContract { ...@@ -241,6 +241,6 @@ public class EvalElectronicContractDTO extends EvalElectronicContract {
@Schema(description = "操作日志") @Schema(description = "操作日志")
private List<EvalElectronicContractLogDTO> logs; private List<EvalElectronicContractLogDTO> logs;
@Schema(description = "签署人类型:0:企业-个人 1:企业-企业") @Schema(description = "经办人")
private Integer signerType; private String handler;
} }
...@@ -16,6 +16,9 @@ public class ESignBuildComponentDTO implements Serializable { ...@@ -16,6 +16,9 @@ public class ESignBuildComponentDTO implements Serializable {
//合同签约人账号(手机号/电子邮箱) //合同签约人账号(手机号/电子邮箱)
private String psnAccount; private String psnAccount;
//合同企业名称
private String orgName;
//控件列表 //控件列表
List<Object> components = new ArrayList<>(); List<Object> components = new ArrayList<>();
} }
...@@ -18,4 +18,7 @@ public class InitiateESignContractDTO implements Serializable { ...@@ -18,4 +18,7 @@ public class InitiateESignContractDTO implements Serializable {
// 合同编号 // 合同编号
private String contractNo; private String contractNo;
// 签署人类型:0:企业-个人 1:企业-企业
private Integer signerType;
} }
package com.gsc4cloud.gsc.vpc.api.dto.esign;
import lombok.Data;
import java.io.Serializable;
/**
* 企业/机构签署方信息
*/
@Data
public class OrgInfoDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 法定代表人姓名
*/
private String legalRepName;
/**
* 法定代表人证件号
*/
private String legalRepIDCardNum;
/**
* 法定代表人证件类型
* 可选值:
* CRED_PSN_CH_IDCARD - 中国大陆居民身份证(默认值)
* CRED_PSN_CH_HONGKONG - 香港来往大陆通行证(回乡证)
* CRED_PSN_CH_MACAO - 澳门来往大陆通行证(回乡证)
* CRED_PSN_CH_TWCARD - 台湾来往大陆通行证(台胞证)
* CRED_PSN_PASSPORT - 护照
*/
private String legalRepIDCardType;
/**
* 企业/机构证件号
*/
private String orgIDCardNum;
/**
* 企业/机构证件类型
* 可选值:
* CRED_ORG_USCC - 统一社会信用代码
* CRED_ORG_REGCODE - 工商注册号
*/
private String orgIDCardType;
}
\ No newline at end of file \ No newline at end of file
package com.gsc4cloud.gsc.vpc.api.dto.esign;
import lombok.Data;
import java.io.Serializable;
/**
* 企业/机构签署方信息
* 当签署主体为企业/机构用户、autoSign参数为false手动签章时,请必须传入此对象
* 当企业/机构用户选择静默签署,autoSign参数为true自动落章时,建议不传此对象
*/
@Data
public class OrgSignerInfoDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 企业/机构账号ID
* 【注】用户在e签宝注册实名后才有账号ID
*/
private String orgId;
/**
* 企业/机构名称(账号标识)
*/
private String orgName;
/**
* 企业/机构签署方信息(将展示在机构认证页面)
*/
private OrgInfoDTO orgInfo;
/**
* 企业/机构经办人信息
* 企业/机构手动签署(autoSign为false),经办人信息必传;
* 企业/机构自动落章(autoSign为true),请不要传该参数。
*/
private TransactorInfoDTO transactorInfo;
}
\ No newline at end of file \ No newline at end of file
...@@ -23,4 +23,22 @@ public class PsnInfoDTO implements Serializable { ...@@ -23,4 +23,22 @@ public class PsnInfoDTO implements Serializable {
* 【注】传psnAccount(个人账号标识)时,该参数为必传项 * 【注】传psnAccount(个人账号标识)时,该参数为必传项
*/ */
private String psnName; private String psnName;
/**
* 经办人证件号
*/
private String psnIDCardNum;
/**
* 经办人证件类型
* 可选值:
* CRED_PSN_CH_IDCARD - 中国大陆居民身份证(默认值)
* CRED_PSN_CH_HONGKONG - 香港来往大陆通行证(回乡证)
* CRED_PSN_CH_MACAO - 澳门来往大陆通行证(回乡证)
* CRED_PSN_CH_TWCARD - 台湾来往大陆通行证(台胞证)
* CRED_PSN_PASSPORT - 护照
* CRED_PSN_CH_GREEN_CARD - 外国人永久居住证(15位或18位)
* 【注】CRED_PSN_CH_IDCARD 类型同时兼容港澳台居住证(81、82、83开头18位证件号)
*/
private String psnIDCardType;
} }
...@@ -22,6 +22,14 @@ public class SignerDTO implements Serializable { ...@@ -22,6 +22,14 @@ public class SignerDTO implements Serializable {
private Integer signerType; private Integer signerType;
/** /**
* 企业/机构签署方信息
*
* 当签署主体为企业/机构用户、autoSign参数为false手动签章时,请必须传入此对象(orgName与orgId二选一传值即可)
* 当企业/机构用户选择静默签署,autoSign参数为true自动落章时,建议不传此对象,e签宝后台会取默认值
*/
private OrgSignerInfoDTO orgSignerInfo;
/**
* 个人签署方信息 * 个人签署方信息
* *
* 当签署主体为个人时请传此对象 * 当签署主体为个人时请传此对象
......
package com.gsc4cloud.gsc.vpc.api.dto.esign;
import lombok.Data;
import java.io.Serializable;
/**
* 企业/机构经办人信息
*/
@Data
public class TransactorInfoDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 经办人账号标识,手机号或邮箱
* 【注】指定orgName时,该参数为必传项
*/
private String psnAccount;
/**
* 经办人账号ID
* 【注】指定orgId时,该参数为必传项
*/
private String psnId;
/**
* 经办人身份信息
*/
private PsnInfoDTO psnInfo;
}
\ No newline at end of file \ No newline at end of file
...@@ -173,4 +173,10 @@ public class EvalElectronicContract implements Serializable { ...@@ -173,4 +173,10 @@ public class EvalElectronicContract implements Serializable {
@TableLogic(value = "N", delval = "D") @TableLogic(value = "N", delval = "D")
private String deletedFlag; private String deletedFlag;
/**
* 签署人类型:0:企业-个人 1:企业-企业
*/
@TableField(value = "signer_type")
private Integer signerType;
} }
package com.gsc4cloud.gsc.vpc.api.enums;
/**
* 电子合同签署人类型枚举
*/
public enum ElectronicContractSignerTypeEnum implements BaseEnum<Integer, String> {
ORG_PERSONAL(0, "企业-个人"),
ORG_ORG(1, "企业-企业");
private final Integer code;
private final String desc;
ElectronicContractSignerTypeEnum(Integer code, String desc) {
this.code = code;
this.desc = desc;
}
@Override
public Integer getCode() {
return code;
}
@Override
public String getDesc() {
return desc;
}
}
\ No newline at end of file \ No newline at end of file
...@@ -144,6 +144,7 @@ public class SignSaleContractRequest { ...@@ -144,6 +144,7 @@ public class SignSaleContractRequest {
private String thirdPartyTransactionVoucher; private String thirdPartyTransactionVoucher;
@Schema(description = "签署人类型:0:企业-个人 1:企业-企业") @Schema(description = "签署人类型:0:企业-个人 1:企业-企业")
@NotNull(message = "签署人类型不能为空")
private Integer signerType; private Integer signerType;
@Schema(description = "经办人") @Schema(description = "经办人")
......
...@@ -24,4 +24,7 @@ public class GenerateCarESignContractRequest implements Serializable { ...@@ -24,4 +24,7 @@ public class GenerateCarESignContractRequest implements Serializable {
@Schema(description = "合同编号") @Schema(description = "合同编号")
private String contractNo; private String contractNo;
@Schema(description = "签署人类型:0:企业-个人 1:企业-企业")
private Integer signerType;
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!