1.fix
This commit is contained in:
2026-05-12 16:56:19 +08:00
parent 57b6e24840
commit 93b3e9550b

View File

@@ -76,7 +76,7 @@ public class MarketMerchantApplicationServiceImpl extends BaseServiceImpl<Market
if (Objects.isNull(userId)) {
throw new ServiceException("无效参数");
}
return getOne(Wrappers.lambdaQuery(MarketMerchantApplicationEntity.class).eq(MarketMerchantApplicationEntity::getUserId, userId).eq(MarketMerchantApplicationEntity::getIsDeleted, 0).orderByDesc(MarketMerchantApplicationEntity::getId));
return getOne(Wrappers.lambdaQuery(MarketMerchantApplicationEntity.class).eq(MarketMerchantApplicationEntity::getUserId, userId).eq(MarketMerchantApplicationEntity::getIsDeleted, 0).orderByDesc(MarketMerchantApplicationEntity::getId), false);
}
@Override
@@ -242,12 +242,12 @@ public class MarketMerchantApplicationServiceImpl extends BaseServiceImpl<Market
MarketMerchantApplicationEntity application = new MarketMerchantApplicationEntity();
MarketMerchantApplicationEntity userApplication = getByUserId(userId);
if (userApplication.getType() != MerchantType.ENTERPRISE.getCode()){
if (userApplication.getType() != MerchantType.ENTERPRISE.getCode()) {
application.setUserId(userId);
application.setUserAccount(userService.getById(userId).getAccount());
application.setType(MerchantType.ENTERPRISE.getCode());
application.setStoreName(userApplication.getStoreName());
}else {
} else {
if (userApplication.getStatus() != MerchantAuditStatus.REJECTED.getCode()) {
throw new ServiceException("请勿重复提交申请");
}