no message
This commit is contained in:
parent
24f2adbb22
commit
6e84a46ac3
1 changed files with 3 additions and 3 deletions
|
|
@ -1001,10 +1001,10 @@ export class PositionController extends Controller {
|
||||||
.leftJoinAndSelect("posMaster.current_holder", "current_holder")
|
.leftJoinAndSelect("posMaster.current_holder", "current_holder")
|
||||||
.leftJoinAndSelect("posMaster.next_holder", "next_holder")
|
.leftJoinAndSelect("posMaster.next_holder", "next_holder")
|
||||||
.where(conditions)
|
.where(conditions)
|
||||||
// .where("posMaster.orgRevisionId = :revisionId", { revisionId: body.revisionId })
|
// // .where("posMaster.orgRevisionId = :revisionId", { revisionId: body.revisionId })
|
||||||
.orWhere(
|
.orWhere(
|
||||||
new Brackets((qb) => {
|
new Brackets((qb) => {
|
||||||
qb.where(searchShortName)
|
qb.andWhere(body.keyword != null && body.keyword != "" ? searchShortName : "1=1")
|
||||||
.andWhere(checkChildConditions)
|
.andWhere(checkChildConditions)
|
||||||
.andWhere(typeCondition)
|
.andWhere(typeCondition)
|
||||||
.andWhere(revisionCondition);
|
.andWhere(revisionCondition);
|
||||||
|
|
@ -1012,7 +1012,7 @@ export class PositionController extends Controller {
|
||||||
)
|
)
|
||||||
.orWhere(
|
.orWhere(
|
||||||
new Brackets((qb) => {
|
new Brackets((qb) => {
|
||||||
qb.where(
|
qb.andWhere(
|
||||||
body.keyword != null && body.keyword != ""
|
body.keyword != null && body.keyword != ""
|
||||||
? "CONCAT(current_holder.prefix, current_holder.firstName, current_holder.lastName) LIKE :keyword OR :keyword LIKE current_holder.prefix OR :keyword LIKE current_holder.firstName OR :keyword LIKE current_holder.lastName "
|
? "CONCAT(current_holder.prefix, current_holder.firstName, current_holder.lastName) LIKE :keyword OR :keyword LIKE current_holder.prefix OR :keyword LIKE current_holder.firstName OR :keyword LIKE current_holder.lastName "
|
||||||
: "1=1",
|
: "1=1",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue