This commit is contained in:
parent
a155f846c2
commit
c63df30e5c
|
@ -21,15 +21,10 @@ module.exports = Self => {
|
|||
});
|
||||
|
||||
Self.getLeaves = async(ctx, parentId = null, search) => {
|
||||
const myOptions = {userId: ctx.req.accessToken.userId};
|
||||
|
||||
if (typeof options == 'object')
|
||||
Object.assign(myOptions, options);
|
||||
|
||||
let [res] = await Self.rawSql(
|
||||
`CALL department_getLeaves(?, ?)`,
|
||||
[parentId, search],
|
||||
myOptions
|
||||
{userId: ctx.req.accessToken.userId}
|
||||
);
|
||||
|
||||
let map = new Map();
|
||||
|
|
Loading…
Reference in New Issue