|
|
@@ -3401,7 +3401,7 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void aiApproveStoreInfo(AiApproveStoreInfo aiApproveStoreInfo) {
|
|
|
+ public AiApproveStoreInfoResultVo aiApproveStoreInfo(AiApproveStoreInfo aiApproveStoreInfo) {
|
|
|
HttpHeaders aiHeaders = new HttpHeaders();
|
|
|
aiHeaders.setContentType(MediaType.APPLICATION_JSON);
|
|
|
aiHeaders.set("Authorization", "Bearer " + aiAuthTokenUtil.getAccessToken());
|
|
|
@@ -3421,6 +3421,10 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
|
|
|
log.info("AI门店审核接口返回 data 为空, userId={}", aiApproveStoreInfo.getUserId());
|
|
|
throw new RuntimeException("AI门店审核接口返回 data 为空");
|
|
|
}
|
|
|
+ String registrationNo = data.getString("registration_no");
|
|
|
+ if (StringUtils.isEmpty(registrationNo)) {
|
|
|
+ registrationNo = data.getString("registrationNo");
|
|
|
+ }
|
|
|
List<StoreInfo> storeInfos = storeInfoMapper.selectList(new LambdaQueryWrapper<StoreInfo>()
|
|
|
.eq(StoreInfo::getCreatedUserId, aiApproveStoreInfo.getUserId()).eq(StoreInfo::getStoreApplicationStatus, 0).eq(StoreInfo::getDeleteFlag, 0));
|
|
|
String status = data.getString("status");
|
|
|
@@ -3448,6 +3452,9 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
|
|
|
log.warn("AI门店审核返回未知状态: status={}, storeId={}", status, storeInfo.getId());
|
|
|
}
|
|
|
}
|
|
|
+ AiApproveStoreInfoResultVo resultVo = new AiApproveStoreInfoResultVo();
|
|
|
+ resultVo.setRegistrationNo(registrationNo);
|
|
|
+ return resultVo;
|
|
|
} else {
|
|
|
log.error("AI门店审核接口调用失败, userId={}, code={}", aiApproveStoreInfo.getUserId(), jsonObject.getInteger("code"));
|
|
|
throw new RuntimeException("AI门店审核接口调用失败 code:" + jsonObject.getInteger("code"));
|
|
|
@@ -3457,6 +3464,7 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
|
|
|
log.error("调用门店审核接口异常, userId={},{}", aiApproveStoreInfo.getUserId(), e);
|
|
|
throw new RuntimeException("调用门店审核接口异常", e);
|
|
|
}
|
|
|
+ return new AiApproveStoreInfoResultVo();
|
|
|
}
|
|
|
|
|
|
@Override
|