This commit is contained in:
shuo.wang
2025-04-10 16:29:41 +08:00
parent 2c55423f65
commit 7a47e35104
2 changed files with 15 additions and 1 deletions

View File

@@ -203,8 +203,12 @@ public class IntentAgreementServiceImpl extends LineFlowService implements Inten
log.info("initiating request:{}", JSONObject.toJSONString(request));
SigningBaseInfoDO signingBaseInfoDO = request.toSigningBaseInfoDO();
boolean submitStatus = intentAgreementMapper.insert(signingBaseInfoDO);
LineInfoDO lineInfoDO = lineInfoMapper.getByPartnerId(request.getPartnerId());
if (Objects.isNull(lineInfoDO.getRegionId())){
throw new ServiceException(ErrorCodeEnum.LINE_REGION_NOT_EXIST);
}
if (submitStatus) {
LineInfoDO lineInfoDO = lineInfoMapper.getByPartnerId(request.getPartnerId());
if (Objects.isNull(lineInfoDO)) {
throw new ServiceException(ErrorCodeEnum.INTERVIEW_PARTNER_NOT_EXIST);
}