From e03de53bd6db0bb2be9a2a1775dc8dd9d5f49416 Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Thu, 29 Mar 2018 10:44:58 +0800 Subject: [PATCH] value 为0 置为 横线 bug 修复 --- src/app/business/services/util/example.service.ts | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/business/services/util/example.service.ts b/src/app/business/services/util/example.service.ts index e1427dd..032634a 100644 --- a/src/app/business/services/util/example.service.ts +++ b/src/app/business/services/util/example.service.ts @@ -8,15 +8,15 @@ return this.conditions; } - public addCondition(condition: string, colName:string, ...values: any[]){ + public addCondition(condition: string, colName: string, ...values: any[]) { const split = Criteria.CONDITION_SPLIT; // '||' - this.conditions.push(condition+split + colName + split + values.join(split)); + this.conditions.push(condition + split + colName + split + values.join(split)); } - public andLike(col: { name: string, value: any}): Criteria{ + public andLike(col: { name: string, value: any}): Criteria { this.addCondition('andLike', col.name, col.value); return this; } - public andEqualTo(col: { name: string, value: any}): Criteria{ + public andEqualTo(col: { name: string, value: any}): Criteria { this.addCondition('andEqualTo', col.name, col.value); return this; } @@ -30,7 +30,7 @@ public getSqlParam(): string { let whereSql = ''; - for (const cri of this.criterion){ + for (const cri of this.criterion) { const conditions = cri.getConditions(); whereSql += ExampleService.OR_SPLIT + conditions.join(ExampleService.CRITERIA_SPLIT); } -- Gitblit v1.8.0