REQ-3581: 添加bizCode

This commit is contained in:
yanglin 2025-02-24 11:06:05 +08:00
parent ab5f348757
commit 7c5f22f69a
5 changed files with 18 additions and 0 deletions

View File

@ -18,6 +18,11 @@ public class EssContractInfo {
*/
private String appCode;
/**
* 业务编码
*/
private String bizCode;
/**
* 幂等编码
*/

View File

@ -25,6 +25,12 @@ public abstract class CreateContractRequest {
@NotBlank(message = "appCode不能为空")
private String appCode;
/**
* 业务编码
*/
@NotNull(message = "bizCode不能为空")
private String bizCode = "";
/**
* 幂等编码, 最大长度200. 使用appCode和idempotentCode的合同不能重复
*/

View File

@ -32,6 +32,11 @@ public class EssContract extends BaseEntity<EssContract> {
*/
private String appCode;
/**
* 业务编码
*/
private String bizCode;
/**
* 幂等编码
*/

View File

@ -62,6 +62,7 @@ public class ContractSupport {
public EssContract saveContractByFile(CreateContractByFileRequest request) {
EssContract contract = new EssContract();
contract.setAppCode(request.getAppCode());
contract.setBizCode(request.getBizCode());
contract.setIdempotentCode(request.getIdempotentCode());
contract.setCreatorOuId(request.getCreator().getOuId());
contract.setCreatorPersonId(request.getCreator().getPersonId());

View File

@ -450,6 +450,7 @@ public class ChangeRecordRelationServiceImpl extends ServiceImpl<ChangeRecordRel
createContractRequest.setByFile(pdfFile);
// TODO
createContractRequest.setAppCode(MSG_CENTER_APP_CODE);
createContractRequest.setBizCode(String.valueOf(visa.getId()));
OperatorInfo creator = new OperatorInfo();
creator.setOuId(req.getOperatorOuId());
creator.setPersonId(req.getOperatorPersonId());