From ce777b27ea6a395731c01d1579bab31c5ebe2e54 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Thu, 23 May 2024 17:28:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=BA=95=E9=98=BF=E5=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../services/account/sys-account.service.ts | 27 +++++++++++++------ src/app/services/account/user.service.ts | 9 ++++--- src/app/services/menu/menu.service.ts | 26 ++++++++++++------ src/app/services/merchant/mer.service.ts | 12 ++++++--- src/app/services/role/role.service.ts | 14 +++++++--- .../trade/order-after-sales.service.ts | 15 ++++++++--- .../services/trade/order-coupon.service.ts | 9 +++++-- .../services/trade/order-refund.service.ts | 6 +++-- 8 files changed, 83 insertions(+), 35 deletions(-) diff --git a/src/app/services/account/sys-account.service.ts b/src/app/services/account/sys-account.service.ts index 309795b..d16175a 100644 --- a/src/app/services/account/sys-account.service.ts +++ b/src/app/services/account/sys-account.service.ts @@ -16,7 +16,8 @@ export class SysAccountService { * @param params * @param callBack */ - public editUser(params: object, callBack:any) { + public editUser(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.post(environment.baseUrl + 'secUser/editUser', params).subscribe(data => { callBack(data); }); @@ -27,7 +28,8 @@ export class SysAccountService { * @param params * @param callBack */ - public delete(params: object, callBack:any) { + public delete(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.post(environment.baseUrl + 'secUser/delete', params).subscribe(data => { callBack(data); }); @@ -38,7 +40,8 @@ export class SysAccountService { * @param params * @param callBack */ - public restore(params: object, callBack:any) { + public restore(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.post(environment.baseUrl + 'secUser/restore', params).subscribe(data => { callBack(data); }); @@ -49,7 +52,8 @@ export class SysAccountService { * @param params * @param callBack */ - public disable(params: object, callBack:any) { + public disable(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.post(environment.baseUrl + 'secUser/disable', params).subscribe(data => { callBack(data); }); @@ -60,7 +64,8 @@ export class SysAccountService { * @param userId * @param callBack */ - public resetPwd(param: object, callBack:any) { + public resetPwd(param: any, callBack:any) { + param.time = new Date().getTime(); this.http.post(environment.baseUrl + 'secUser/resetPwd', param).subscribe(data => { callBack(data); }); @@ -72,7 +77,11 @@ export class SysAccountService { * @param callBack */ public queryDetail(userId: number, callBack:any) { - this.http.get(environment.baseUrl + 'secUser/queryDetail?userId='+userId).subscribe(data => { + let params = { + userId: userId, + time: new Date().getTime() + }; + this.http.get(environment.baseUrl + 'secUser/queryDetail?'+ObjectData.objectByString(params)).subscribe(data => { callBack(data); }); } @@ -82,7 +91,8 @@ export class SysAccountService { * @param params * @param callBack */ - public queryList(params: object, callBack:any) { + public queryList(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.get(environment.baseUrl + 'secUser/queryList?'+ObjectData.objectByString(params)).subscribe(data => { callBack(data); }); @@ -93,7 +103,8 @@ export class SysAccountService { * @param params * @param callBack */ - public queryLoginLogList(params: object, callBack:any) { + public queryLoginLogList(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.get(environment.baseUrl + 'secUser/queryLoginLogList?'+ObjectData.objectByString(params)).subscribe(data => { callBack(data); }); diff --git a/src/app/services/account/user.service.ts b/src/app/services/account/user.service.ts index c373ece..aca3591 100644 --- a/src/app/services/account/user.service.ts +++ b/src/app/services/account/user.service.ts @@ -14,7 +14,8 @@ export class UserService { * @param param * @param callBack */ - public restore(param: object, callBack:any) { + public restore(param: any, callBack:any) { + param.time = new Date().getTime(); this.http.post(environment.baseUrl + 'user/restore', param).subscribe(data => { callBack(data); }); @@ -25,7 +26,8 @@ export class UserService { * @param param * @param callBack */ - public disable(param: object, callBack:any) { + public disable(param: any, callBack:any) { + param.time = new Date().getTime(); this.http.post(environment.baseUrl + 'user/disable', param).subscribe(data => { callBack(data); }); @@ -36,7 +38,8 @@ export class UserService { * @param params * @param callBack */ - public queryUserList(params: object, callBack:any) { + public queryUserList(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.get(environment.baseUrl + 'user/queryUserList?'+ObjectData.objectByString(params)).subscribe(data => { callBack(data); }); diff --git a/src/app/services/menu/menu.service.ts b/src/app/services/menu/menu.service.ts index 2aeaf17..0024321 100644 --- a/src/app/services/menu/menu.service.ts +++ b/src/app/services/menu/menu.service.ts @@ -16,7 +16,8 @@ export class MenuService { * @param params * @param callBack */ - public assignMenu(params: object, callBack:any) { + public assignMenu(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.post(environment.baseUrl + 'secMenu/assignMenu', params).subscribe(data => { callBack(data); }); @@ -27,7 +28,8 @@ export class MenuService { * @param params * @param callBack */ - public delMenu(params: object, callBack:any) { + public delMenu(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.post(environment.baseUrl + 'secMenu/delMenu', params).subscribe(data => { callBack(data); }); @@ -39,7 +41,10 @@ export class MenuService { * @param callBack */ public queryMenuList(callBack:any) { - this.http.post(environment.baseUrl + 'secMenu/queryMenuList', null).subscribe(data => { + let params = { + time: new Date().getTime() + }; + this.http.post(environment.baseUrl + 'secMenu/queryMenuList?' + ObjectData.objectByString(params), null).subscribe(data => { callBack(data); }); } @@ -50,7 +55,11 @@ export class MenuService { * @param callBack */ public queryMenuDetail(menuId: number, callBack:any) { - this.http.get(environment.baseUrl + 'secMenu/queryDetail?menuId=' + menuId).subscribe(data => { + let params = { + menuId: menuId, + time: new Date().getTime() + }; + this.http.get(environment.baseUrl + 'secMenu/queryDetail?' + ObjectData.objectByString(params)).subscribe(data => { callBack(data); }); } @@ -61,9 +70,9 @@ export class MenuService { * @param callBack */ public queryRoleMenuTree(roleId: string, callBack:any) { - let paramStr = ''; + let paramStr = '?dt='+new Date().getTime(); if (roleId != null && roleId != '') { - paramStr = '?roleId=' + roleId; + paramStr = '&roleId=' + roleId; } this.http.get(environment.baseUrl + 'secMenu/queryRoleMenuTree'+paramStr).subscribe(data => { callBack(data); @@ -76,7 +85,7 @@ export class MenuService { * @param callBack */ public queryMenuTree(callBack:any) { - this.http.post(environment.baseUrl + 'secMenu/queryMenuTree', null).subscribe(data => { + this.http.post(environment.baseUrl + 'secMenu/queryMenuTree?dt='+new Date().getTime(), null).subscribe(data => { callBack(data); }); } @@ -101,7 +110,8 @@ export class MenuService { * @param params * @param callBack */ - public editMenu(params: object, callBack:any) { + public editMenu(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.post(environment.baseUrl + 'secMenu/editMenu', params).subscribe(data => { callBack(data); }); diff --git a/src/app/services/merchant/mer.service.ts b/src/app/services/merchant/mer.service.ts index 326e6f2..75a5ba5 100644 --- a/src/app/services/merchant/mer.service.ts +++ b/src/app/services/merchant/mer.service.ts @@ -15,7 +15,8 @@ export class MerService { * @param params * @param callBack */ - public create(params: object, callBack:any) { + public create(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.post(environment.baseUrl + 'mer/create', params).subscribe(data => { callBack(data); }); @@ -26,7 +27,8 @@ export class MerService { * @param params * @param callBack */ - public update(params: object, callBack:any) { + public update(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.post(environment.baseUrl + 'mer/update', params).subscribe(data => { callBack(data); }); @@ -37,7 +39,8 @@ export class MerService { * @param params * @param callBack */ - public resetPwd(params: object, callBack:any) { + public resetPwd(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.post(environment.baseUrl + 'mer/resetPwd', params).subscribe(data => { callBack(data); }); @@ -59,7 +62,8 @@ export class MerService { * @param params * @param callBack */ - public queryList(params: object, callBack:any) { + public queryList(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.get(environment.baseUrl + 'mer/queryList?' + ObjectData.objectByString(params)).subscribe(data => { callBack(data); }); diff --git a/src/app/services/role/role.service.ts b/src/app/services/role/role.service.ts index b99f823..0b41409 100644 --- a/src/app/services/role/role.service.ts +++ b/src/app/services/role/role.service.ts @@ -15,7 +15,8 @@ export class RoleService { * @param params * @param callBack */ - public editRole(params: object, callBack:any) { + public editRole(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.post(environment.baseUrl + 'secRole/editRole', params).subscribe(data => { callBack(data); }); @@ -26,7 +27,8 @@ export class RoleService { * @param params * @param callBack */ - public delRole(params: object, callBack:any) { + public delRole(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.post(environment.baseUrl + 'secRole/delRole', params).subscribe(data => { callBack(data); }); @@ -48,7 +50,8 @@ export class RoleService { * @param params * @param callBack */ - public queryList(params: object, callBack:any) { + public queryList(params: any, callBack:any) { + params.time = new Date().getTime(); this.http.get(environment.baseUrl + 'secRole/queryList?'+ObjectData.objectByString(params)).subscribe(data => { callBack(data); }); @@ -59,7 +62,10 @@ export class RoleService { * @param callBack */ public queryAllRole(callBack:any) { - this.http.get(environment.baseUrl + 'secRole/queryAllRole').subscribe(data => { + let params = { + time: new Date().getTime() + }; + this.http.get(environment.baseUrl + 'secRole/queryAllRole?'+ObjectData.objectByString(params)).subscribe(data => { callBack(data); }); } diff --git a/src/app/services/trade/order-after-sales.service.ts b/src/app/services/trade/order-after-sales.service.ts index ef887eb..60191aa 100644 --- a/src/app/services/trade/order-after-sales.service.ts +++ b/src/app/services/trade/order-after-sales.service.ts @@ -15,7 +15,8 @@ export class OrderAfterSalesService { * @param param * @param callBack */ - public queryApplyList(param: object, callBack:any) { + public queryApplyList(param: any, callBack:any) { + param.time = new Date().getTime(); this.http.get(environment.orderUrl + 'afterSales/queryApplyList?'+ObjectData.objectByString(param)).subscribe(data => { callBack(data); }); @@ -27,7 +28,11 @@ export class OrderAfterSalesService { * @param callBack */ public queryApply(applyNo: string, callBack:any) { - this.http.get(environment.orderUrl + 'afterSales/queryApply?applyNo='+applyNo).subscribe(data => { + let params = { + applyNo: applyNo, + time: new Date().getTime() + }; + this.http.get(environment.orderUrl + 'afterSales/queryApply?'+ObjectData.objectByString(params)).subscribe(data => { callBack(data); }); } @@ -37,7 +42,8 @@ export class OrderAfterSalesService { * @param param * @param callBack */ - public audit(param: object, callBack:any) { + public audit(param: any, callBack:any) { + param.time = new Date().getTime(); this.http.post(environment.orderUrl + 'afterSales/audit', param).subscribe(data => { callBack(data); }); @@ -48,7 +54,8 @@ export class OrderAfterSalesService { * @param param * @param callBack */ - public finish(param: object, callBack:any) { + public finish(param: any, callBack:any) { + param.time = new Date().getTime(); this.http.post(environment.orderUrl + 'afterSales/finish', param).subscribe(data => { callBack(data); }); diff --git a/src/app/services/trade/order-coupon.service.ts b/src/app/services/trade/order-coupon.service.ts index 7b8dadf..4c898cd 100644 --- a/src/app/services/trade/order-coupon.service.ts +++ b/src/app/services/trade/order-coupon.service.ts @@ -15,7 +15,8 @@ export class OrderCouponService { * @param param * @param callBack */ - public queryList(param: object, callBack:any) { + public queryList(param: any, callBack:any) { + param.time = new Date().getTime(); this.http.get(environment.orderUrl + 'coupon/queryList?'+ObjectData.objectByString(param)).subscribe(data => { callBack(data); }); @@ -27,7 +28,11 @@ export class OrderCouponService { * @param callBack */ public queryDetail(orderChildNo: string, callBack:any) { - this.http.get(environment.orderUrl + 'coupon/queryDetail?orderChildNo='+orderChildNo).subscribe(data => { + let params = { + orderChildNo: orderChildNo, + time: new Date().getTime() + }; + this.http.get(environment.orderUrl + 'coupon/queryDetail?'+ObjectData.objectByString(params)).subscribe(data => { callBack(data); }); } diff --git a/src/app/services/trade/order-refund.service.ts b/src/app/services/trade/order-refund.service.ts index f01211f..dfbff44 100644 --- a/src/app/services/trade/order-refund.service.ts +++ b/src/app/services/trade/order-refund.service.ts @@ -15,7 +15,8 @@ export class OrderRefundService { * @param param * @param callBack */ - public queryList(param: object, callBack:any) { + public queryList(param: any, callBack:any) { + param.time = new Date().getTime(); this.http.get(environment.orderUrl + 'refund/queryList?'+ObjectData.objectByString(param)).subscribe(data => { callBack(data); }); @@ -26,7 +27,8 @@ export class OrderRefundService { * @param param * @param callBack */ - public queryRefund(param: object, callBack:any) { + public queryRefund(param: any, callBack:any) { + param.time = new Date().getTime(); this.http.get(environment.orderUrl + 'refund/queryRefund?'+ObjectData.objectByString(param)).subscribe(data => { callBack(data); });