fix
This commit is contained in:
@@ -59,6 +59,10 @@ public class FranchiseFeeServiceImpl implements FranchiseFeeService {
|
||||
franchiseFeeDO.setId(request.getId());
|
||||
franchiseFeeMapper.updateByPrimaryKeySelective(franchiseFeeDO);
|
||||
} else {
|
||||
FranchiseFeeDO isExist = franchiseFeeMapper.selectByShopId(request.getShopId());
|
||||
if (Objects.nonNull(isExist)){
|
||||
throw new ServiceException(ErrorCodeEnum.UNISSUED_STATEMENT_2);
|
||||
}
|
||||
franchiseFeeMapper.insertSelective(franchiseFeeDO);
|
||||
}
|
||||
ShopInfoDO shopInfoDO = shopInfoMapper.selectByPrimaryKey(request.getShopId());
|
||||
|
||||
Reference in New Issue
Block a user