refs #5652 feat:itemTrash_new
gitea/salix/pipeline/head Build queued... Details

This commit is contained in:
Sergio De la torre 2023-09-06 09:22:29 +02:00
parent 2fffa56d70
commit 9d367b8299
2 changed files with 0 additions and 21 deletions

View File

@ -1,20 +0,0 @@
module.exports = Self => {
Self.remoteMethod('getAddress', {
description: 'Get all activated address last year ',
accessType: 'READ',
returns: {
type: 'Object',
root: true
},
http: {
path: `/getAddress`,
verb: 'GET'
}
});
Self.getAddress = async() => {
const query = `CALL vn.address_getLosesLastYear()`;
const [result] = await Self.rawSql(query);
return result;
};
};

View File

@ -4,5 +4,4 @@ module.exports = Self => {
require('../methods/collection/getSectors')(Self); require('../methods/collection/getSectors')(Self);
require('../methods/collection/setSaleQuantity')(Self); require('../methods/collection/setSaleQuantity')(Self);
require('../methods/collection/previousLabel')(Self); require('../methods/collection/previousLabel')(Self);
require('../methods/collection/getAddress')(Self);
}; };