update:
1.fix
This commit is contained in:
@@ -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("请勿重复提交申请");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user