throw exception
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user