add body revisionId
This commit is contained in:
parent
4b1df34f5b
commit
c78548410b
1 changed files with 6 additions and 0 deletions
|
|
@ -840,6 +840,7 @@ export class PositionController extends Controller {
|
|||
@Body()
|
||||
body: {
|
||||
id: string;
|
||||
revisionId: string;
|
||||
type: number;
|
||||
isAll: boolean;
|
||||
page: number;
|
||||
|
|
@ -855,6 +856,7 @@ export class PositionController extends Controller {
|
|||
|
||||
if (body.type === 0) {
|
||||
typeCondition = {
|
||||
orgRevisionId: body.revisionId,
|
||||
orgRootId: body.id,
|
||||
};
|
||||
if (!body.isAll) {
|
||||
|
|
@ -867,6 +869,7 @@ export class PositionController extends Controller {
|
|||
}
|
||||
} else if (body.type === 1) {
|
||||
typeCondition = {
|
||||
orgRevisionId: body.revisionId,
|
||||
orgChild1Id: body.id,
|
||||
};
|
||||
if (!body.isAll) {
|
||||
|
|
@ -879,6 +882,7 @@ export class PositionController extends Controller {
|
|||
}
|
||||
} else if (body.type === 2) {
|
||||
typeCondition = {
|
||||
orgRevisionId: body.revisionId,
|
||||
orgChild2Id: body.id,
|
||||
};
|
||||
if (!body.isAll) {
|
||||
|
|
@ -891,6 +895,7 @@ export class PositionController extends Controller {
|
|||
}
|
||||
} else if (body.type === 3) {
|
||||
typeCondition = {
|
||||
orgRevisionId: body.revisionId,
|
||||
orgChild3Id: body.id,
|
||||
};
|
||||
if (!body.isAll) {
|
||||
|
|
@ -903,6 +908,7 @@ export class PositionController extends Controller {
|
|||
}
|
||||
} else if (body.type === 4) {
|
||||
typeCondition = {
|
||||
orgRevisionId: body.revisionId,
|
||||
orgChild4Id: body.id,
|
||||
};
|
||||
searchShortName = `CONCAT(orgChild4.orgChild4ShortName,posMaster.posMasterNoPrefix,posMaster.posMasterNo,posMaster.posMasterNoSuffix) like '%${body.keyword}%'`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue