throw exception

This commit is contained in:
guohb
2024-05-14 15:54:59 +08:00
parent e07d0d763f
commit 285040e2b3

View File

@@ -292,9 +292,6 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
@Override
public AddSignFranchiseResponse getSignFranchise(Long shopId) {
SignFranchiseDO signFranchiseDO = signFranchiseMapper.selectByShopId(shopId);
if (Objects.isNull(signFranchiseDO)) {
throw new ServiceException(ErrorCodeEnum.SIGN_FRANCHISE_NOT_FOUND);
}
AddSignFranchiseResponse response = from(signFranchiseDO, shopId);
ShopAuditInfoDO shopAuditInfoDO = shopAuditInfoMapper.selectByPrimaryKey(signFranchiseDO.getAuditId());
if (Objects.nonNull(shopAuditInfoDO)) {