Start working on recipes feature

This commit is contained in:
Bernd Bestel
2018-07-14 18:23:41 +02:00
parent 70e7e630c3
commit d9246b9b42
17 changed files with 624 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace Grocy\Services;
class RecipesService extends BaseService
{
public function GetRecipesFulfillment()
{
$sql = 'SELECT * from recipes_fulfillment';
return $this->DatabaseService->ExecuteDbQuery($sql)->fetchAll(\PDO::FETCH_OBJ);
}
public function GetRecipesSumFulfillment()
{
$sql = 'SELECT * from recipes_fulfillment_sum';
return $this->DatabaseService->ExecuteDbQuery($sql)->fetchAll(\PDO::FETCH_OBJ);
}
}