更新合同接口:获取动态字段、表单报错修改

This commit is contained in:
guojunyun
2025-11-12 11:08:12 +08:00
parent 2ee461bef2
commit 33bea2cad0

View File

@@ -391,11 +391,15 @@ public class ContractServiceImpl implements ContractService {
} }
// 查询合同动态字段及条款 // 查询合同动态字段及条款
TmplInscBsnRelRespVO tmplInscBsnRel = tmplInscBsnRelService.getTmplInscBsnRel(contractMainDO.getBusinessId()); if (contractMainDO.getBusinessId() != null) {
// 设置合同动态字段 TmplInscBsnRelRespVO tmplInscBsnRel = tmplInscBsnRelService.getTmplInscBsnRel(contractMainDO.getBusinessId());
respVO.setDynamicsFields(tmplInscBsnRel.getTmplInscDatBsnRespVOS()); if (tmplInscBsnRel != null) {
// 设置合同动态条款 // 设置合同动态字段
respVO.setDynamicsItems(tmplInscBsnRel.getTmplInscItmBsnRespVOS()); respVO.setDynamicsFields(tmplInscBsnRel.getTmplInscDatBsnRespVOS());
// 设置合同动态条款
respVO.setDynamicsItems(tmplInscBsnRel.getTmplInscItmBsnRespVOS());
}
}
return respVO; return respVO;
} }
@@ -478,11 +482,15 @@ public class ContractServiceImpl implements ContractService {
} }
// 查询合同动态字段及条款 // 查询合同动态字段及条款
TmplInscBsnRelRespVO tmplInscBsnRel = tmplInscBsnRelService.getTmplInscBsnRel(contractMainDO.getBusinessId()); if (contractMainDO.getBusinessId() != null) {
// 设置合同动态字段 TmplInscBsnRelRespVO tmplInscBsnRel = tmplInscBsnRelService.getTmplInscBsnRel(contractMainDO.getBusinessId());
respVO.setDynamicsFields(tmplInscBsnRel.getTmplInscDatBsnRespVOS()); if (tmplInscBsnRel != null) {
// 设置合同动态条款 // 设置合同动态字段
respVO.setDynamicsItems(tmplInscBsnRel.getTmplInscItmBsnRespVOS()); respVO.setDynamicsFields(tmplInscBsnRel.getTmplInscDatBsnRespVOS());
// 设置合同动态条款
respVO.setDynamicsItems(tmplInscBsnRel.getTmplInscItmBsnRespVOS());
}
}
return respVO; return respVO;
} }