mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-01 10:22:40 +00:00
remove unused file
This commit is contained in:
@@ -1,23 +0,0 @@
|
|||||||
import { MatchQuery } from '../core/application/queries/match/match.query';
|
|
||||||
import { AlgorithmType } from '../core/application/types/algorithm.types';
|
|
||||||
import { Role } from '../core/domain/ad.types';
|
|
||||||
|
|
||||||
export class AdSelector {
|
|
||||||
static select = (role: Role, query: MatchQuery): string => {
|
|
||||||
switch (query.algorithmType) {
|
|
||||||
case AlgorithmType.PASSENGER_ORIENTED:
|
|
||||||
default:
|
|
||||||
return `SELECT
|
|
||||||
ad.uuid,frequency,public.st_astext(matcher.ad.waypoints) as waypoints,
|
|
||||||
"fromDate","toDate",
|
|
||||||
"seatsProposed","seatsRequested",
|
|
||||||
strict,
|
|
||||||
"driverDuration","driverDistance",
|
|
||||||
"passengerDuration","passengerDistance",
|
|
||||||
"fwdAzimuth","backAzimuth",
|
|
||||||
si.day,si.time,si.margin
|
|
||||||
FROM ad LEFT JOIN schedule_item si ON ad.uuid = si."adUuid"
|
|
||||||
WHERE driver=True`;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user