From fb4d55b06f787696c781e3585f9798cd24205b0e Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Wed, 19 Apr 2023 09:43:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../order-coupon-list/order-coupon-list.component.ts | 6 +++--- .../order-integral-recharge.component.ts | 6 +++--- .../order-oil/order-oil-list/order-oil-list.component.ts | 6 +++--- .../order-refund-list/order-refund-list.component.ts | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/app/admin/order-manage/order-coupon/order-coupon-list/order-coupon-list.component.ts b/src/app/admin/order-manage/order-coupon/order-coupon-list/order-coupon-list.component.ts index a673c0c..7a97800 100644 --- a/src/app/admin/order-manage/order-coupon/order-coupon-list/order-coupon-list.component.ts +++ b/src/app/admin/order-manage/order-coupon/order-coupon-list/order-coupon-list.component.ts @@ -143,7 +143,7 @@ export class OrderCouponListComponent implements OnInit { * @param whereObject 条件 */ search(whereObject: object) { - if (whereObject['createTime'] != null) { + if (whereObject['createTime'] != null && whereObject['createTime'].length > 0) { whereObject['createTimeS'] = new Date(whereObject['createTime'][0]).getTime(); whereObject['createTimeE'] = new Date(whereObject['createTime'][1]).getTime(); } else { @@ -151,7 +151,7 @@ export class OrderCouponListComponent implements OnInit { whereObject['createTimeE'] = null; } - if (whereObject['payTime'] != null) { + if (whereObject['payTime'] != null && whereObject['payTime'].length > 0) { whereObject['payTimeS'] = new Date(whereObject['payTime'][0]).getTime(); whereObject['payTimeE'] = new Date(whereObject['payTime'][1]).getTime(); } else { @@ -159,7 +159,7 @@ export class OrderCouponListComponent implements OnInit { whereObject['payTimeE'] = null; } - if (whereObject['finishTime'] != null) { + if (whereObject['finishTime'] != null && whereObject['finishTime'].length > 0) { whereObject['finishTimeS'] = whereObject['finishTime'][0].getTime(); whereObject['finishTimeE'] = whereObject['finishTime'][1].getTime(); } else { diff --git a/src/app/admin/order-manage/order-integral-recharge/order-integral-recharge.component.ts b/src/app/admin/order-manage/order-integral-recharge/order-integral-recharge.component.ts index 15e640c..4f2d638 100644 --- a/src/app/admin/order-manage/order-integral-recharge/order-integral-recharge.component.ts +++ b/src/app/admin/order-manage/order-integral-recharge/order-integral-recharge.component.ts @@ -100,7 +100,7 @@ export class OrderIntegralRechargeComponent implements OnInit { * @param whereObject 条件 */ search(whereObject: object) { - if (whereObject['createTime'] != null) { + if (whereObject['createTime'] != null && whereObject['createTime'].length > 0) { whereObject['createTimeS'] = new Date(whereObject['createTime'][0]).getTime(); whereObject['createTimeE'] = new Date(whereObject['createTime'][1]).getTime(); } else { @@ -108,7 +108,7 @@ export class OrderIntegralRechargeComponent implements OnInit { whereObject['createTimeE'] = null; } - if (whereObject['payTime'] != null) { + if (whereObject['payTime'] != null && whereObject['payTime'].length > 0) { whereObject['payTimeS'] = new Date(whereObject['payTime'][0]).getTime(); whereObject['payTimeE'] = new Date(whereObject['payTime'][1]).getTime(); } else { @@ -116,7 +116,7 @@ export class OrderIntegralRechargeComponent implements OnInit { whereObject['payTimeE'] = null; } - if (whereObject['finishTime'] != null) { + if (whereObject['finishTime'] != null && whereObject['finishTime'].length > 0) { whereObject['finishTimeS'] = new Date(whereObject['finishTime'][0]).getTime(); whereObject['finishTimeE'] = new Date(whereObject['finishTime'][1]).getTime(); } else { diff --git a/src/app/admin/order-manage/order-oil/order-oil-list/order-oil-list.component.ts b/src/app/admin/order-manage/order-oil/order-oil-list/order-oil-list.component.ts index 19ffbe5..f114ef9 100644 --- a/src/app/admin/order-manage/order-oil/order-oil-list/order-oil-list.component.ts +++ b/src/app/admin/order-manage/order-oil/order-oil-list/order-oil-list.component.ts @@ -271,7 +271,7 @@ export class OrderOilListComponent implements OnInit { * @param whereObject 条件 */ search(whereObject: object) { - if (whereObject['createTimeArray'] != null) { + if (whereObject['createTimeArray'] != null && whereObject['createTimeArray'].length > 0) { whereObject['createTimeS'] = new Date(whereObject['createTimeArray'][0]).getTime(); whereObject['createTimeE'] = new Date(whereObject['createTimeArray'][1]).getTime(); } else { @@ -279,7 +279,7 @@ export class OrderOilListComponent implements OnInit { whereObject['createTimeE'] = null; } - if (whereObject['payTimeArray'] != null) { + if (whereObject['payTimeArray'] != null && whereObject['payTimeArray'].length > 0) { whereObject['payTimeS'] = new Date(whereObject['payTimeArray'][0]).getTime(); whereObject['payTimeE'] = new Date(whereObject['payTimeArray'][1]).getTime(); } else { @@ -287,7 +287,7 @@ export class OrderOilListComponent implements OnInit { whereObject['payTimeE'] = null; } - if (whereObject['refundTimeArray'] != null) { + if (whereObject['refundTimeArray'] != null && whereObject['refundTimeArray'].length > 0) { whereObject['refundTimeS'] = new Date(whereObject['refundTimeArray'][0]).getTime(); whereObject['refundTimeE'] = new Date(whereObject['refundTimeArray'][1]).getTime(); } else { diff --git a/src/app/admin/order-manage/order-refund-list/order-refund-list.component.ts b/src/app/admin/order-manage/order-refund-list/order-refund-list.component.ts index f3bc154..50ee503 100644 --- a/src/app/admin/order-manage/order-refund-list/order-refund-list.component.ts +++ b/src/app/admin/order-manage/order-refund-list/order-refund-list.component.ts @@ -98,7 +98,7 @@ export class OrderRefundListComponent implements OnInit { * @param whereObject 条件 */ search(whereObject: object) { - if (whereObject['createTime'] != null) { + if (whereObject['createTime'] != null && whereObject['createTime'].length > 0) { whereObject['createTimeS'] = whereObject['createTime'][0].getTime(); whereObject['createTimeE'] = whereObject['createTime'][1].getTime(); } else { @@ -106,7 +106,7 @@ export class OrderRefundListComponent implements OnInit { whereObject['createTimeE'] = null; } - if (whereObject['refundTime'] != null) { + if (whereObject['refundTime'] != null && whereObject['refundTime'].length > 0) { whereObject['refundTimeS'] = whereObject['refundTime'][0].getTime(); whereObject['refundTimeE'] = whereObject['refundTime'][1].getTime(); } else {