feat: refs #7207 show queue in worker summary #3007
|
@ -9,5 +9,8 @@ BEGIN
|
||||||
SET NEW.userFk = account.myUser_getId();
|
SET NEW.userFk = account.myUser_getId();
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
|
IF NEW.shelvingFk <> OLD.shelvingFk THEN
|
||||||
|
SET NEW.isMoving = FALSE;
|
||||||
|
END IF;
|
||||||
END$$
|
END$$
|
||||||
DELIMITER ;
|
DELIMITER ;
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
DELETE FROM salix.ACL
|
||||||
|
WHERE model = 'WorkerLog'
|
||||||
|
AND property = '*';
|
|
@ -0,0 +1,2 @@
|
||||||
|
-- Place your SQL code here
|
||||||
|
ALTER TABLE vn.itemShelving ADD IF NOT EXISTS isMoving BOOL DEFAULT FALSE NOT NULL COMMENT 'Indica que se ha marcado este registro para transferirlo a otro sector';
|
|
@ -67,6 +67,12 @@ module.exports = Self => {
|
||||||
type: 'String',
|
type: 'String',
|
||||||
description: 'The worker user name',
|
description: 'The worker user name',
|
||||||
http: {source: 'query'}
|
http: {source: 'query'}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
arg: 'email',
|
||||||
|
type: 'String',
|
||||||
|
description: 'The user email',
|
||||||
|
http: {source: 'query'}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
returns: {
|
returns: {
|
||||||
|
@ -99,6 +105,8 @@ module.exports = Self => {
|
||||||
return {'w.firstName': {like: `%${value}%`}};
|
return {'w.firstName': {like: `%${value}%`}};
|
||||||
case 'lastName':
|
case 'lastName':
|
||||||
return {'w.lastName': {like: `%${value}%`}};
|
return {'w.lastName': {like: `%${value}%`}};
|
||||||
|
case 'nickname':
|
||||||
|
return {'u.nickname': {like: `%${value}%`}};
|
||||||
case 'extension':
|
case 'extension':
|
||||||
return {'p.extension': value};
|
return {'p.extension': value};
|
||||||
case 'fi':
|
case 'fi':
|
||||||
|
@ -107,6 +115,8 @@ module.exports = Self => {
|
||||||
return {'d.id': value};
|
return {'d.id': value};
|
||||||
case 'userName':
|
case 'userName':
|
||||||
return {'u.name': {like: `%${value}%`}};
|
return {'u.name': {like: `%${value}%`}};
|
||||||
|
case 'email':
|
||||||
|
return {'eu.email': {like: `%${value}%`}};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -116,15 +126,23 @@ module.exports = Self => {
|
||||||
let stmt;
|
let stmt;
|
||||||
|
|
||||||
stmt = new ParameterizedSQL(
|
stmt = new ParameterizedSQL(
|
||||||
`SELECT w.id, u.email, p.extension, u.name as userName,
|
`SELECT w.id,
|
||||||
d.name AS department, w.lastName, u.nickname, mu.email
|
w.lastName,
|
||||||
|
w.firstName,
|
||||||
|
u.email,
|
||||||
|
u.nickname,
|
||||||
|
p.extension,
|
||||||
|
u.name as userName,
|
||||||
|
d.name AS department,
|
||||||
|
eu.email,
|
||||||
|
c.fi
|
||||||
FROM worker w
|
FROM worker w
|
||||||
LEFT JOIN workerDepartment wd ON wd.workerFk = w.id
|
LEFT JOIN workerDepartment wd ON wd.workerFk = w.id
|
||||||
LEFT JOIN department d ON d.id = wd.departmentFk
|
LEFT JOIN department d ON d.id = wd.departmentFk
|
||||||
LEFT JOIN client c ON c.id = w.id
|
LEFT JOIN client c ON c.id = w.id
|
||||||
LEFT JOIN account.user u ON u.id = w.id
|
LEFT JOIN account.user u ON u.id = w.id
|
||||||
LEFT JOIN pbx.sip p ON p.user_id = u.id
|
LEFT JOIN pbx.sip p ON p.user_id = u.id
|
||||||
LEFT JOIN account.emailUser mu ON mu.userFk = u.id`
|
LEFT JOIN account.emailUser eu ON eu.userFk = u.id`
|
||||||
);
|
);
|
||||||
|
|
||||||
stmt.merge(conn.makeSuffix(filter));
|
stmt.merge(conn.makeSuffix(filter));
|
||||||
|
|
Loading…
Reference in New Issue