แก้searchตำแหน่ง
This commit is contained in:
parent
4c67904018
commit
f9bafbb4f1
1 changed files with 6 additions and 6 deletions
|
|
@ -36,7 +36,7 @@ import { Position } from "../entities/Position";
|
||||||
import { Brackets } from "typeorm/browser";
|
import { Brackets } from "typeorm/browser";
|
||||||
@Route("api/v1/org/pos")
|
@Route("api/v1/org/pos")
|
||||||
@Tags("Position")
|
@Tags("Position")
|
||||||
@Security("bearerAuth")
|
// @Security("bearerAuth")
|
||||||
@Response(
|
@Response(
|
||||||
HttpStatusCode.INTERNAL_SERVER_ERROR,
|
HttpStatusCode.INTERNAL_SERVER_ERROR,
|
||||||
"เกิดข้อผิดพลาด ไม่สามารถแสดงรายการได้ กรุณาลองใหม่ในภายหลัง",
|
"เกิดข้อผิดพลาด ไม่สามารถแสดงรายการได้ กรุณาลองใหม่ในภายหลัง",
|
||||||
|
|
@ -688,15 +688,15 @@ export class PositionController extends Controller {
|
||||||
let keywordAsInt: any;
|
let keywordAsInt: any;
|
||||||
keywordAsInt = body.keyword == null ? null : parseInt(body.keyword, 10);
|
keywordAsInt = body.keyword == null ? null : parseInt(body.keyword, 10);
|
||||||
if (isNaN(keywordAsInt)) {
|
if (isNaN(keywordAsInt)) {
|
||||||
keywordAsInt = "";
|
keywordAsInt = "P@ssw0rd!z";
|
||||||
}
|
}
|
||||||
masterId = [...new Set(masterId)];
|
masterId = [...new Set(masterId)];
|
||||||
|
|
||||||
const keywordConditions = [
|
const keywordConditions = [
|
||||||
{
|
// {
|
||||||
...checkChildConditions,
|
// ...checkChildConditions,
|
||||||
...typeCondition,
|
// ...typeCondition,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
...checkChildConditions,
|
...checkChildConditions,
|
||||||
...typeCondition,
|
...typeCondition,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue