upd method DeleteYclientsTimeslots

This commit is contained in:
pasha1coil 2025-10-08 13:15:56 +03:00
parent abea1d7874
commit 8b1df78c8e
2 changed files with 2 additions and 2 deletions

@ -1595,7 +1595,7 @@ INSERT INTO YclientsTimeSlots (SalonID, IsEnabled, WeekdaysSettings, DatesSettin
VALUES ($1, $2, $3, $4) RETURNING *; VALUES ($1, $2, $3, $4) RETURNING *;
-- name: DeleteYclientsTimeslots :exec -- name: DeleteYclientsTimeslots :exec
UPDATE YclientsTimeSlots SET Deleted = true WHERE ID = ANY($1::bigint[]); UPDATE YclientsTimeSlots SET Deleted = true WHERE NOT (ID = ANY($1::bigint[]));
-- name: GetTimeslotsByIDYclients :one -- name: GetTimeslotsByIDYclients :one
SELECT * FROM YclientsTimeSlots WHERE SalonID = $1 AND Deleted = false; SELECT * FROM YclientsTimeSlots WHERE SalonID = $1 AND Deleted = false;

@ -1642,7 +1642,7 @@ func (q *Queries) DeleteYclientsServices(ctx context.Context, dollar_1 []int64)
} }
const deleteYclientsTimeslots = `-- name: DeleteYclientsTimeslots :exec const deleteYclientsTimeslots = `-- name: DeleteYclientsTimeslots :exec
UPDATE YclientsTimeSlots SET Deleted = true WHERE ID = ANY($1::bigint[]) UPDATE YclientsTimeSlots SET Deleted = true WHERE NOT (ID = ANY($1::bigint[]))
` `
func (q *Queries) DeleteYclientsTimeslots(ctx context.Context, dollar_1 []int64) error { func (q *Queries) DeleteYclientsTimeslots(ctx context.Context, dollar_1 []int64) error {