update:
1.fix
This commit is contained in:
@@ -76,7 +76,7 @@ public class MarketMerchantApplicationServiceImpl extends BaseServiceImpl<Market
|
|||||||
if (Objects.isNull(userId)) {
|
if (Objects.isNull(userId)) {
|
||||||
throw new ServiceException("无效参数");
|
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
|
@Override
|
||||||
@@ -242,12 +242,12 @@ public class MarketMerchantApplicationServiceImpl extends BaseServiceImpl<Market
|
|||||||
MarketMerchantApplicationEntity application = new MarketMerchantApplicationEntity();
|
MarketMerchantApplicationEntity application = new MarketMerchantApplicationEntity();
|
||||||
MarketMerchantApplicationEntity userApplication = getByUserId(userId);
|
MarketMerchantApplicationEntity userApplication = getByUserId(userId);
|
||||||
|
|
||||||
if (userApplication.getType() != MerchantType.ENTERPRISE.getCode()){
|
if (userApplication.getType() != MerchantType.ENTERPRISE.getCode()) {
|
||||||
application.setUserId(userId);
|
application.setUserId(userId);
|
||||||
application.setUserAccount(userService.getById(userId).getAccount());
|
application.setUserAccount(userService.getById(userId).getAccount());
|
||||||
application.setType(MerchantType.ENTERPRISE.getCode());
|
application.setType(MerchantType.ENTERPRISE.getCode());
|
||||||
application.setStoreName(userApplication.getStoreName());
|
application.setStoreName(userApplication.getStoreName());
|
||||||
}else {
|
} else {
|
||||||
if (userApplication.getStatus() != MerchantAuditStatus.REJECTED.getCode()) {
|
if (userApplication.getStatus() != MerchantAuditStatus.REJECTED.getCode()) {
|
||||||
throw new ServiceException("请勿重复提交申请");
|
throw new ServiceException("请勿重复提交申请");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user