added and fixed resource types repositories
This commit is contained in:
parent
2dac417cb3
commit
f72dd027b0
|
|
@ -0,0 +1,84 @@
|
||||||
|
import { pagination } from "../../utils/pagination";
|
||||||
|
|
||||||
|
const _coordinatesSelectQuery = (_pagination = '') => ({ count }) => ({ uuid, latitude, longitude }) => {
|
||||||
|
const uuidCondition = uuid ? 'AND c.uuid = :uuid ' : '';
|
||||||
|
const latitudeCondition = latitude ? 'AND c.latitude = :latitude ' : '';
|
||||||
|
const longitudeCondition = longitude ? 'AND c.longitude = :longitude ' : '';
|
||||||
|
|
||||||
|
return `
|
||||||
|
SELECT
|
||||||
|
c.uuid,
|
||||||
|
c.created,
|
||||||
|
c.createdby,
|
||||||
|
c.latitude,
|
||||||
|
c.longitude
|
||||||
|
FROM acloc.coordinates AS c
|
||||||
|
WHERE c.created <= :now
|
||||||
|
AND (c.deleted > :now OR c.deleted IS NULL)
|
||||||
|
AND true
|
||||||
|
${uuidCondition}
|
||||||
|
${latitudeCondition}
|
||||||
|
${longitudeCondition}
|
||||||
|
${_pagination}
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
|
const getCoordinatesListQuery = ({ limit, page, ...rest }) =>
|
||||||
|
_coordinatesSelectQuery(pagination({ limit, page }))({ count: false })(rest);
|
||||||
|
|
||||||
|
const countCoordinatesListQuery = rest =>
|
||||||
|
_coordinatesSelectQuery()({ count: 'COUNT(DISTINCT(c.uuid)) AS count' })(rest);
|
||||||
|
|
||||||
|
const insertCoordinatesQuery = () => {
|
||||||
|
return `
|
||||||
|
INSERT INTO acloc.coordinates (
|
||||||
|
uuid,
|
||||||
|
latitude,
|
||||||
|
longitude,
|
||||||
|
created,
|
||||||
|
createdBy
|
||||||
|
)
|
||||||
|
VALUES (
|
||||||
|
:uuid,
|
||||||
|
:latitude,
|
||||||
|
:longitude,
|
||||||
|
:now,
|
||||||
|
:createdBy
|
||||||
|
);
|
||||||
|
SELECT * FROM acloc.coordinates WHERE uuid = :uuid;
|
||||||
|
`
|
||||||
|
}
|
||||||
|
|
||||||
|
const updateCoordinatesQuery = (latitude, longitude) => {
|
||||||
|
const latitudeCondition = latitude ? 'latitude = :latitude,' : '';
|
||||||
|
const longitudeCondition = longitude ? 'longitude = :longitude,' : '';
|
||||||
|
return `
|
||||||
|
UPDATE acloc.coordinates
|
||||||
|
SET
|
||||||
|
${latitudeCondition}
|
||||||
|
${longitudeCondition}
|
||||||
|
uuid = :uuid
|
||||||
|
WHERE uuid = :uuid
|
||||||
|
AND deleted IS NULL;
|
||||||
|
SELECT * FROM acloc.coordinates WHERE uuid = :uuid;
|
||||||
|
`
|
||||||
|
}
|
||||||
|
|
||||||
|
const softDeleteCoordinatesQuery = () => {
|
||||||
|
return `
|
||||||
|
UPDATE
|
||||||
|
acloc.coordinates
|
||||||
|
SET
|
||||||
|
deleted = :deleted, deletedby = :deletedBy
|
||||||
|
WHERE uuid = :uuid
|
||||||
|
AND deleted IS NULL;
|
||||||
|
`
|
||||||
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
getCoordinatesListQuery,
|
||||||
|
countCoordinatesListQuery,
|
||||||
|
insertCoordinatesQuery,
|
||||||
|
updateCoordinatesQuery,
|
||||||
|
softDeleteCoordinatesQuery
|
||||||
|
}
|
||||||
|
|
@ -5,8 +5,7 @@ const _placeSelectQuery = (_pagination = '') => ({ count }) => ({ uuid, name, de
|
||||||
const nameCondition = name ? `AND p.name LIKE CONCAT('%',:name,'%')` : '';
|
const nameCondition = name ? `AND p.name LIKE CONCAT('%',:name,'%')` : '';
|
||||||
const descriptionCondition = description ? `AND p.description LIKE CONCAT('%',:description,'%')` : '';
|
const descriptionCondition = description ? `AND p.description LIKE CONCAT('%',:description,'%')` : '';
|
||||||
const addressCondition = address ? `AND p.address LIKE CONCAT('%',:address,'%')` : '';
|
const addressCondition = address ? `AND p.address LIKE CONCAT('%',:address,'%')` : '';
|
||||||
const latitudeCondition = latitude ? 'AND p.latitude = :latitude ' : '';
|
const fk_coordinateCondition = latitude && longitude ? 'AND fk_coordinate = (SELECT id FROM acloc.coordinates WHERE latitude = :latitude AND longitude = :longitude)' : '';
|
||||||
const longitudeCondition = longitude ? 'AND p.longitude = :longitude ' : '';
|
|
||||||
return `
|
return `
|
||||||
SELECT
|
SELECT
|
||||||
p.uuid,
|
p.uuid,
|
||||||
|
|
@ -18,7 +17,7 @@ const _placeSelectQuery = (_pagination = '') => ({ count }) => ({ uuid, name, de
|
||||||
p.created,
|
p.created,
|
||||||
p.createdby
|
p.createdby
|
||||||
FROM acloc.places AS p
|
FROM acloc.places AS p
|
||||||
JOIN acloc.coordinates AS c ON p.fk_coordinates = c.id
|
JOIN acloc.coordinates AS c ON p.fk_coordinate = c.id
|
||||||
WHERE p.deleted IS NULL
|
WHERE p.deleted IS NULL
|
||||||
AND p.created <= :now
|
AND p.created <= :now
|
||||||
AND (p.deleted > :now OR p.deleted IS NULL)
|
AND (p.deleted > :now OR p.deleted IS NULL)
|
||||||
|
|
@ -27,8 +26,7 @@ const _placeSelectQuery = (_pagination = '') => ({ count }) => ({ uuid, name, de
|
||||||
${nameCondition}
|
${nameCondition}
|
||||||
${descriptionCondition}
|
${descriptionCondition}
|
||||||
${addressCondition}
|
${addressCondition}
|
||||||
${latitudeCondition}
|
${fk_coordinateCondition}
|
||||||
${longitudeCondition}
|
|
||||||
${_pagination}
|
${_pagination}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
@ -39,12 +37,9 @@ const getPlaceListQuery = ({ limit, page, ...rest }) =>
|
||||||
const countPlaceListQuery = rest =>
|
const countPlaceListQuery = rest =>
|
||||||
_placeSelectQuery()({ count: 'COUNT(DISTINCT(p.uuid)) AS count' })(rest);
|
_placeSelectQuery()({ count: 'COUNT(DISTINCT(p.uuid)) AS count' })(rest);
|
||||||
|
|
||||||
const insertPlaceQuery = ({ name, description, address, latitude, longitude, createdBy }) => {
|
const insertPlaceQuery = ({ description, address, createdBy }) => {
|
||||||
const nameCondition = name ? ':name' : null;
|
|
||||||
const descriptionCondition = description ? ':description' : null;
|
const descriptionCondition = description ? ':description' : null;
|
||||||
const addressCondition = address ? ':address' : null;
|
const addressCondition = address ? ':address' : null;
|
||||||
const latitudeCondition = latitude ? ':latitude' : null;
|
|
||||||
const longitudeCondition = longitude ? ':longitude' : null;
|
|
||||||
const createdByCondition = createdBy ? 'createdBy = :createdBy' : null;
|
const createdByCondition = createdBy ? 'createdBy = :createdBy' : null;
|
||||||
return `
|
return `
|
||||||
INSERT INTO acloc.places (
|
INSERT INTO acloc.places (
|
||||||
|
|
@ -52,63 +47,53 @@ const insertPlaceQuery = ({ name, description, address, latitude, longitude, cre
|
||||||
name,
|
name,
|
||||||
description,
|
description,
|
||||||
address,
|
address,
|
||||||
latitude,
|
fk_coordinates,
|
||||||
longitude,
|
|
||||||
created,
|
created,
|
||||||
createdBy
|
createdBy
|
||||||
)
|
)
|
||||||
VALUES (
|
VALUES (
|
||||||
UUID(),
|
:uuid,
|
||||||
${nameCondition},
|
:name,
|
||||||
${descriptionCondition},
|
${descriptionCondition},
|
||||||
${addressCondition},
|
${addressCondition},
|
||||||
${latitudeCondition},
|
(SELECT id FROM acloc.coordinates WHERE latitude = :latitude AND longitude = :longitude),
|
||||||
${longitudeCondition},
|
:now,
|
||||||
NOW(),
|
|
||||||
${createdByCondition}
|
${createdByCondition}
|
||||||
)
|
)
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const updatePlaceQuery = ({ uuid, name, description, address, latitude, longitude, updatedBy }) => {
|
const updatePlaceQuery = ({ name, description, address, latitude, longitude }) => {
|
||||||
const uuidCondition = uuid ? 'AND p.uuid = :uuid ' : '';
|
const nameCondition = name ? 'name = :name,' : '';
|
||||||
const nameCondition = name ? ':name' : null;
|
const descriptionCondition = description ? 'description = :description,' : '';
|
||||||
const descriptionCondition = description ? ':description' : null;
|
const addressCondition = address ? 'address = :address' : '';
|
||||||
const addressCondition = address ? ':address' : null;
|
const fk_coordinateCondition = latitude && longitude ? 'fk_coordinate = (SELECT id FROM acloc.coordinates WHERE latitude = :latitude AND longitude = :longitude),' : '';
|
||||||
const latitudeCondition = latitude ? ':latitude' : null;
|
|
||||||
const longitudeCondition = longitude ? ':longitude' : null;
|
|
||||||
const updatedByCondition = updatedBy ? 'updatedBy = :updatedBy' : null;
|
|
||||||
return `
|
return `
|
||||||
UPDATE acloc.places AS p
|
UPDATE acloc.places AS p
|
||||||
SET
|
SET
|
||||||
name = ${nameCondition},
|
${nameCondition}
|
||||||
description = ${descriptionCondition},
|
${descriptionCondition}
|
||||||
address = ${addressCondition},
|
${addressCondition}
|
||||||
latitude = ${latitudeCondition},
|
${fk_coordinateCondition}
|
||||||
longitude = ${longitudeCondition},
|
WHERE
|
||||||
updated = NOW(),
|
p.uuid = :uuid
|
||||||
${updatedByCondition}
|
AND p.deleted IS NULL
|
||||||
WHERE p.deleted IS NULL
|
|
||||||
AND p.created <= NOW()
|
AND p.created <= NOW()
|
||||||
AND (p.deleted > NOW() OR p.deleted IS NULL)
|
AND (p.deleted > NOW() OR p.deleted IS NULL)
|
||||||
${uuidCondition}
|
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const deletePlaceQuery = ({ uuid, deletedBy }) => {
|
const deletePlaceQuery = () => {
|
||||||
const uuidCondition = uuid ? 'AND p.uuid = :uuid ' : '';
|
|
||||||
const deletedByCondition = deletedBy ? 'deletedBy = :deletedBy' : null;
|
|
||||||
return `
|
return `
|
||||||
UPDATE acloc.places AS p
|
UPDATE acloc.places AS p
|
||||||
SET
|
SET
|
||||||
deleted = NOW(),
|
deleted = :deleted, deletedby = :deletedBy
|
||||||
${deletedByCondition}
|
|
||||||
WHERE
|
WHERE
|
||||||
p.uuid = :uuid
|
p.uuid = :uuid
|
||||||
AND p.deleted IS NULL
|
AND p.deleted IS NULL
|
||||||
AND p.created <= NOW()
|
AND p.created <= NOW()
|
||||||
AND (p.deleted > NOW() OR p.deleted IS NULL)
|
AND (p.deleted > NOW() OR p.deleted IS NULL)
|
||||||
${uuidCondition}
|
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,78 @@
|
||||||
|
import { pagination } from "../../utils/pagination";
|
||||||
|
|
||||||
|
const _coordinatesSelectQuery = (_pagination = '') => ({ count }) => ({ uuid, name }) => {
|
||||||
|
const uuidCondition = uuid ? 'AND rt.uuid = :uuid ' : '';
|
||||||
|
const nameCondition = name ? `AND rt.name LIKE CONCAT('%',:name,'%')` : '';
|
||||||
|
return `
|
||||||
|
SELECT
|
||||||
|
rt.uuid,
|
||||||
|
rt.name,
|
||||||
|
rt.created,
|
||||||
|
rt.createdby
|
||||||
|
FROM acloc.report_types AS rt
|
||||||
|
WHERE rt.created <= :now
|
||||||
|
AND (rt.deleted > :now OR rt.deleted IS NULL)
|
||||||
|
AND true
|
||||||
|
${uuidCondition}
|
||||||
|
${nameCondition}
|
||||||
|
${_pagination}
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
|
const getReportTypesListQuery = ({ limit, page, ...rest }) =>
|
||||||
|
_coordinatesSelectQuery(pagination({ limit, page }))({ count: false })(rest);
|
||||||
|
|
||||||
|
const countReportTypesListQuery = rest =>
|
||||||
|
_coordinatesSelectQuery()({ count: 'COUNT(DISTINCT(rt.uuid)) AS count' })(rest);
|
||||||
|
|
||||||
|
const insertReportTypesQuery = () => {
|
||||||
|
return `
|
||||||
|
INSERT INTO acloc.report_types (
|
||||||
|
uuid,
|
||||||
|
name,
|
||||||
|
created,
|
||||||
|
createdBy
|
||||||
|
)
|
||||||
|
VALUES (
|
||||||
|
:uuid,
|
||||||
|
:name,
|
||||||
|
:now,
|
||||||
|
:createdBy
|
||||||
|
);
|
||||||
|
SELECT * FROM acloc.report_types WHERE uuid = :uuid;
|
||||||
|
`
|
||||||
|
}
|
||||||
|
|
||||||
|
const updateReportTypesQuery = (name) => {
|
||||||
|
const nameCondition = name ? 'name = :name,' : '';
|
||||||
|
return `
|
||||||
|
UPDATE acloc.report_types
|
||||||
|
SET
|
||||||
|
${nameCondition}
|
||||||
|
uuid = :uuid
|
||||||
|
WHERE uuid = :uuid
|
||||||
|
AND deleted IS NULL;
|
||||||
|
SELECT * FROM acloc.report_types WHERE uuid = :uuid;
|
||||||
|
`
|
||||||
|
}
|
||||||
|
|
||||||
|
const softDeleteReportTypesQuery = () => {
|
||||||
|
return `
|
||||||
|
UPDATE
|
||||||
|
acloc.report_types
|
||||||
|
SET
|
||||||
|
deleted = :deleted,
|
||||||
|
deletedBy = :deletedBy
|
||||||
|
WHERE uuid = :uuid
|
||||||
|
AND deleted IS NULL;
|
||||||
|
SELECT * FROM acloc.report_types WHERE uuid = :uuid;
|
||||||
|
`
|
||||||
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
getReportTypesListQuery,
|
||||||
|
countReportTypesListQuery,
|
||||||
|
insertReportTypesQuery,
|
||||||
|
updateReportTypesQuery,
|
||||||
|
softDeleteReportTypesQuery
|
||||||
|
}
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
import { pagination } from "../../utils/pagination";
|
import { pagination } from "../../utils/pagination";
|
||||||
|
//reports repository
|
||||||
const _userHasPlacesSelectQuery = (_pagination = '') => ({ count }) => ({ uuid, uuidUser, uuidPlace }) => {
|
const _userHasPlacesSelectQuery = (_pagination = '') => ({ count }) => ({ uuid, uuidUser, uuidPlace, uuidReportType }) => {
|
||||||
const uuidCondition = uuid ? 'AND up.uuid = :uuid ' : '';
|
const uuidCondition = uuid ? 'AND up.uuid = :uuid ' : '';
|
||||||
const uuidUserCondition = uuidUser ? 'AND up.fk_user = (SELECT id FROM mydb.users WHERE uuid = :uuidUser)' : '';
|
const uuidUserCondition = uuidUser ? 'AND up.fk_user = (SELECT id FROM mydb.users WHERE uuid = :uuidUser)' : '';
|
||||||
const uuidPlaceCondition = uuidPlace ? 'AND up.fk_place = (SELECT id FROM mydb.places WHERE uuid = :uuidPlace)' : '';
|
const uuidPlaceCondition = uuidPlace ? 'AND up.fk_place = (SELECT id FROM mydb.places WHERE uuid = :uuidPlace)' : '';
|
||||||
|
const uuidReportTypeCondition = uuidReportType ? 'AND up.fk_report_type = (SELECT id FROM acloc.report_types WHERE uuid = :uuidReportType)' : '';
|
||||||
|
|
||||||
return `
|
return `
|
||||||
SELECT
|
SELECT
|
||||||
|
|
@ -15,19 +16,23 @@ const _userHasPlacesSelectQuery = (_pagination = '') => ({ count }) => ({ uuid,
|
||||||
u.username AS user_username,
|
u.username AS user_username,
|
||||||
u.uuid AS user_uuid,
|
u.uuid AS user_uuid,
|
||||||
p.name AS place_name,
|
p.name AS place_name,
|
||||||
p.uuid AS place_uuid
|
p.uuid AS place_uuid,
|
||||||
FROM mydb.users_has_places AS up
|
rt.name AS report_type_name,
|
||||||
JOIN mydb.users AS u ON up.fk_user = u.id
|
rt.uuid AS report_type_uuid
|
||||||
JOIN mydb.places AS p ON up.fk_place = p.id
|
FROM acloc.users_has_places AS up
|
||||||
|
JOIN acloc.users AS u ON up.fk_user = u.id
|
||||||
|
JOIN acloc.places AS p ON up.fk_place = p.id
|
||||||
|
JOIN acloc.report_types AS rt ON up.fk_report_type = rt.id
|
||||||
WHERE up.created <= :now
|
WHERE up.created <= :now
|
||||||
AND (up.deleted > :now OR up.deleted IS NULL)
|
AND (up.deleted > :now OR up.deleted IS NULL)
|
||||||
AND u.deleted IS NULL
|
AND u.deleted IS NULL
|
||||||
AND up.created <= :now
|
AND p.deleted IS NULL
|
||||||
AND (up.deleted > :now OR up.deleted IS NULL)
|
AND rt.deleted IS NULL
|
||||||
AND true
|
AND true
|
||||||
${uuidCondition}
|
${uuidCondition}
|
||||||
${uuidUserCondition}
|
${uuidUserCondition}
|
||||||
${uuidPlaceCondition}
|
${uuidPlaceCondition}
|
||||||
|
${uuidReportTypeCondition}
|
||||||
${_pagination}
|
${_pagination}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
@ -38,15 +43,17 @@ const getUserHasPlacesListQuery = ({ limit, page, ...rest }) =>
|
||||||
const countUserHasPlacesListQuery = rest =>
|
const countUserHasPlacesListQuery = rest =>
|
||||||
_userHasPlacesSelectQuery()({ count: 'COUNT(DISTINCT(up.uuid)) AS count' })(rest);
|
_userHasPlacesSelectQuery()({ count: 'COUNT(DISTINCT(up.uuid)) AS count' })(rest);
|
||||||
|
|
||||||
const insertUserHasPlacesQuery = ({ uuidUser, uuidPlace, createdBy }) => {
|
const insertUserHasPlacesQuery = ({ uuidUser, uuidPlace, createdBy, uuidReportType }) => {
|
||||||
const uuidUserCondition = uuidUser ? '(SELECT id FROM mydb.users WHERE uuid = :uuidUser),' : null;
|
const uuidUserCondition = uuidUser ? '(SELECT id FROM acloc.users WHERE uuid = :uuidUser),' : null;
|
||||||
const uuidPlaceCondition = uuidPlace ? '(SELECT id FROM mydb.places WHERE uuid = :uuidPlace),' : null;
|
const uuidPlaceCondition = uuidPlace ? '(SELECT id FROM acloc.places WHERE uuid = :uuidPlace),' : null;
|
||||||
const createdByCondition = createdBy ? 'createdBy = :createdBy' : null;
|
const createdByCondition = createdBy ? 'createdBy = :createdBy' : null;
|
||||||
|
const reportTypeCondition = uuidReportType ? '(SELECT id FROM acloc.report_types WHERE uuid = :reportType),' : null;
|
||||||
return `
|
return `
|
||||||
INSERT INTO mydb.users_has_places (
|
INSERT INTO acloc.users_has_places (
|
||||||
uuid,
|
uuid,
|
||||||
fk_user,
|
fk_user,
|
||||||
fk_place,
|
fk_place,
|
||||||
|
fk_report_type,
|
||||||
created,
|
created,
|
||||||
createdBy
|
createdBy
|
||||||
)
|
)
|
||||||
|
|
@ -54,34 +61,37 @@ const insertUserHasPlacesQuery = ({ uuidUser, uuidPlace, createdBy }) => {
|
||||||
:uuid
|
:uuid
|
||||||
${uuidUserCondition}
|
${uuidUserCondition}
|
||||||
${uuidPlaceCondition}
|
${uuidPlaceCondition}
|
||||||
|
${reportTypeCondition}
|
||||||
:now,
|
:now,
|
||||||
${createdByCondition}
|
${createdByCondition}
|
||||||
);
|
);
|
||||||
SELECT * FROM mydb.users_has_places WHERE uuid = UUID();
|
SELECT * FROM acloc.users_has_places WHERE uuid = :uuid;
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
||||||
const modifyUserHasPlacesQuery = () => {
|
const modifyUserHasPlacesQuery = (uuidUser, uuidPlace, uuidReportType) => {
|
||||||
const uuidUserCondition = uuidUser ? 'fk_user = (SELECT id FROM mydb.users WHERE uuid = :uuidUser)' : ``;
|
const uuidUserCondition = uuidUser ? 'fk_user = (SELECT id FROM acloc.users WHERE uuid = :uuidUser)' : ``;
|
||||||
const uuidPlaceCondition = uuidPlace ? 'fk_place = (SELECT id FROM mydb.places WHERE uuid = :uuidPlace)' : ``;
|
const uuidPlaceCondition = uuidPlace ? 'fk_place = (SELECT id FROM acloc.places WHERE uuid = :uuidPlace)' : ``;
|
||||||
|
const uuidReportTypeCondition = uuidReportType ? 'fk_report_type = (SELECT id FROM acloc.report_types WHERE uuid = :uuidReportType)' : ``;
|
||||||
return `
|
return `
|
||||||
UPDATE mydb.users_has_places
|
UPDATE acloc.users_has_places
|
||||||
SET
|
SET
|
||||||
${uuidUserCondition}
|
${uuidUserCondition}
|
||||||
${uuidPlaceCondition}
|
${uuidPlaceCondition}
|
||||||
|
${uuidReportTypeCondition}
|
||||||
uuid = :uuid
|
uuid = :uuid
|
||||||
WHERE
|
WHERE
|
||||||
users_has_places.uuid = :uuid
|
users_has_places.uuid = :uuid
|
||||||
AND
|
AND
|
||||||
users_has_places.deleted IS NULL;
|
users_has_places.deleted IS NULL;
|
||||||
SELECT * FROM mydb.users_has_places WHERE uuid = :uuid;
|
SELECT * FROM acloc.users_has_places WHERE uuid = :uuid;
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
||||||
const softDeleteUserHasPlacesQuery = () => {
|
const softDeleteUserHasPlacesQuery = () => {
|
||||||
return `
|
return `
|
||||||
UPDATE
|
UPDATE
|
||||||
mydb.users_has_places
|
acloc.users_has_places
|
||||||
SET
|
SET
|
||||||
deleted = :deleted, deletedBy = :deletedBy
|
deleted = :deleted, deletedBy = :deletedBy
|
||||||
WHERE
|
WHERE
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue