renamed 'departement' to 'department'
This commit is contained in:
parent
2a0d8e15b1
commit
e1bdac7f5b
|
@ -6,18 +6,18 @@
|
||||||
* Time: 19:36
|
* Time: 19:36
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace api\module\departement;
|
namespace api\module\department;
|
||||||
|
|
||||||
|
|
||||||
use database\core\Repo;
|
use database\core\Repo;
|
||||||
use database\repo\departement;
|
use database\repo\department;
|
||||||
|
|
||||||
class errorsController
|
class errorsController
|
||||||
{
|
{
|
||||||
|
|
||||||
public static function get($args){
|
public static function get($args){
|
||||||
/** @var departement $repo */
|
/** @var department $repo */
|
||||||
$repo = Repo::getRepo("departement");
|
$repo = Repo::getRepo("department");
|
||||||
|
|
||||||
return ["data" => $repo->getErrors()];
|
return ["data" => $repo->getErrors()];
|
||||||
}
|
}
|
|
@ -6,19 +6,19 @@
|
||||||
* Time: 17:36
|
* Time: 17:36
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace api\module\departement;
|
namespace api\module\department;
|
||||||
|
|
||||||
|
|
||||||
use database\core\Repo;
|
use database\core\Repo;
|
||||||
use database\repo\departement;
|
use database\repo\department;
|
||||||
|
|
||||||
class statsController
|
class statsController
|
||||||
{
|
{
|
||||||
|
|
||||||
public static function get($args){
|
public static function get($args){
|
||||||
|
|
||||||
/** @var departement $repo */
|
/** @var department $repo */
|
||||||
$repo = Repo::getRepo("departement");
|
$repo = Repo::getRepo("department");
|
||||||
|
|
||||||
return ["data" => $repo->getStats()];
|
return ["data" => $repo->getStats()];
|
||||||
}
|
}
|
|
@ -12,7 +12,7 @@ namespace database\repo;
|
||||||
use database\core\Repo;
|
use database\core\Repo;
|
||||||
use database\core\Repo_i;
|
use database\core\Repo_i;
|
||||||
|
|
||||||
class departement extends Repo_i
|
class department extends Repo_i
|
||||||
{
|
{
|
||||||
|
|
||||||
public function getErrors() : array {
|
public function getErrors() : array {
|
||||||
|
@ -65,17 +65,17 @@ class departement extends Repo_i
|
||||||
WHERE
|
WHERE
|
||||||
0 != (SELECT MOD(SUM(volume),U.volumeCours) modCours FROM Cours WHERE UE_code = U.code GROUP BY Cours.UE_code)
|
0 != (SELECT MOD(SUM(volume),U.volumeCours) modCours FROM Cours WHERE UE_code = U.code GROUP BY Cours.UE_code)
|
||||||
)
|
)
|
||||||
|
|
||||||
UNION
|
UNION
|
||||||
|
|
||||||
(SELECT 'UNEQUIVALENT_VH' errorType, 'TD' entityType, U.code
|
(SELECT 'UNEQUIVALENT_VH' errorType, 'TD' entityType, U.code
|
||||||
FROM UE U
|
FROM UE U
|
||||||
WHERE
|
WHERE
|
||||||
0 != (SELECT MOD(SUM(volume),U.volumeTD) modCours FROM TD WHERE UE_code = U.code GROUP BY TD.UE_code)
|
0 != (SELECT MOD(SUM(volume),U.volumeTD) modCours FROM TD WHERE UE_code = U.code GROUP BY TD.UE_code)
|
||||||
)
|
)
|
||||||
|
|
||||||
UNION
|
UNION
|
||||||
|
|
||||||
(SELECT 'UNEQUIVALENT_VH' errorType, 'TP' entityType, U.code
|
(SELECT 'UNEQUIVALENT_VH' errorType, 'TP' entityType, U.code
|
||||||
FROM UE U
|
FROM UE U
|
||||||
WHERE
|
WHERE
|
Loading…
Reference in New Issue