店铺详情信息fix bug
This commit is contained in:
parent
b7b57d04d0
commit
a929635bfc
@ -97,7 +97,7 @@ import static com.suisung.mall.common.utils.I18nUtil._;
|
||||
@Service
|
||||
public class AccountUserBaseServiceImpl extends BaseServiceImpl<AccountUserBaseMapper, AccountUserBase> implements AccountUserBaseService {
|
||||
|
||||
private final String VERIFY_CODE_KEY = "register:verifyCode:";
|
||||
private final String VERIFY_CODE_KEY = RedisConstant.VERIFY_CODE_KEY; //"register:verifyCode:";
|
||||
private final Logger logger = LoggerFactory.getLogger(AccountUserBaseServiceImpl.class);
|
||||
@Autowired
|
||||
private AuthService authService;
|
||||
|
||||
@ -44,4 +44,6 @@ public class RedisConstant {
|
||||
// 预约订单任务新增键
|
||||
public static final String Order_Booking_Task_Key = ConstantRedis.Cache_NameSpace + "new:order:booking:task:";
|
||||
|
||||
public static final String VERIFY_CODE_KEY = "register:verifyCode:";
|
||||
|
||||
}
|
||||
|
||||
@ -698,12 +698,6 @@ public class ShopMchEntryServiceImpl extends BaseServiceImpl<ShopMchEntryMapper,
|
||||
);
|
||||
}
|
||||
|
||||
// 获取店铺信息
|
||||
ShopStoreInfo storeInfo = shopStoreInfoService.getById(record.getStore_id());
|
||||
if (storeInfo == null) {
|
||||
log.warn("店铺信息异常,找不到对应店铺: storeId={}", record.getStore_id());
|
||||
return CommonResult.success(null, "店铺信息异常!");
|
||||
}
|
||||
|
||||
// 处理审核意见空值情况
|
||||
if (StrUtil.isBlank(record.getApproval_invalid_col())) {
|
||||
@ -713,13 +707,22 @@ public class ShopMchEntryServiceImpl extends BaseServiceImpl<ShopMchEntryMapper,
|
||||
// 尝试更新入驻表的合同下载地址和合同签署状态
|
||||
updateMerchEntrySignedStatusAndContractDownloadUrl(record);
|
||||
|
||||
// 转换为JSONObject并添加额外属性
|
||||
JSONObject retObj = JSONUtil.parseObj(record);
|
||||
retObj.set("is_delivery_self", storeInfo.getIs_delivery_self());
|
||||
|
||||
log.debug("获取商家入驻申请详情成功: recordId={}, mobile={}", recordId, mobile);
|
||||
return CommonResult.success(retObj);
|
||||
if (StrUtil.isNotBlank(record.getStore_id())) {
|
||||
// 转换为JSONObject并添加额外属性
|
||||
JSONObject retObj = JSONUtil.parseObj(record);
|
||||
// 获取店铺信息
|
||||
ShopStoreInfo storeInfo = shopStoreInfoService.getById(record.getStore_id());
|
||||
if (storeInfo != null && retObj != null) {
|
||||
// log.warn("店铺信息异常,找不到对应店铺: storeId={}", record.getStore_id());
|
||||
// return CommonResult.success(null, "店铺信息异常!");
|
||||
retObj.set("is_delivery_self", storeInfo.getIs_delivery_self());
|
||||
return CommonResult.success(record);
|
||||
}
|
||||
}
|
||||
|
||||
return CommonResult.success(record);
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error("获取商家入驻申请详情异常: recordId={}, mobile={}", recordId, mobile, e);
|
||||
return CommonResult.failed("系统异常,请稍后重试");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user