diff --git a/src/app/mock-api/apps/bank/partner-calculate/api.ts b/src/app/mock-api/apps/bank/partner-calculate/api.ts
index 400d033..e5679d3 100644
--- a/src/app/mock-api/apps/bank/partner-calculate/api.ts
+++ b/src/app/mock-api/apps/bank/partner-calculate/api.ts
@@ -33,7 +33,7 @@ export class BankPartnerCalculateMockApi {
.reply(({ request }) => {
// Get available queries
const search = request.params.get('search');
- const sort = request.params.get('sort') || 'name';
+ const sort = request.params.get('sort') || 'partnerDepositId';
const order = request.params.get('order') || 'asc';
const page = parseInt(request.params.get('page') ?? '1', 10);
const size = parseInt(request.params.get('size') ?? '10', 10);
@@ -44,7 +44,11 @@ export class BankPartnerCalculateMockApi {
);
// Sort the partnerCalculates
- if (sort === 'sku' || sort === 'name' || sort === 'active') {
+ if (
+ sort === 'partnerDepositId' ||
+ sort === 'partnerDepositNickname' ||
+ sort === 'accountHolder'
+ ) {
partnerCalculates.sort((a, b) => {
const fieldA = a[sort].toString().toUpperCase();
const fieldB = b[sort].toString().toUpperCase();
diff --git a/src/app/mock-api/apps/bank/partner-calculate/data.ts b/src/app/mock-api/apps/bank/partner-calculate/data.ts
index 6cfd839..4081ebc 100644
--- a/src/app/mock-api/apps/bank/partner-calculate/data.ts
+++ b/src/app/mock-api/apps/bank/partner-calculate/data.ts
@@ -2,57 +2,43 @@
export const partnerCalculates = [
{
- rank: '회원',
- level: 4,
- id: 'aa100',
- nickname: 'aa100',
- paymentDue: 50000,
- calculateType: '롤링',
- accountHolder: '광주은행2sss',
- note: '@',
- registrationDate: '2022-06-18 13:14',
- processDate: '000-0-0 0:0',
- deposit: 41200000,
- withdraw: 19000000,
- total: 22200000,
- gameMoney: 67131,
- highRank: '[매장]kgon5',
- state: '신청',
+ id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
+ partnerDepositIdx: 1,
+ partnerDepositId: 'kgon1',
+ partnerDepositNickname: '본사',
+ partnerDepositRank: '본사',
+ nameOfDepositer: '본사',
+ partnerDepositAmountOfPayment: 50000,
+ partnerDepositRegistrationDate: '2022-05-18 13:05',
+ partnerDepositConfirmDate: '2022-05-18 13:05',
+
+ partnerWithdrawIdx: 1,
+ partnerWithdrawId: 'kgon1',
+ partnerWithdrawNickname: '본사',
+ partnerWithdrawRank: '본사',
+ accountHolder: '국민은행 예금주본사 89898989898989898989',
+ partnerWithdrawAmountOfPayment: 70000,
+ partnerWithdrawRegistrationDate: '2022-05-18 13:05',
+ partnerWithdrawConfirmDate: '2022-05-18 13:05',
},
{
- rank: '회원',
- level: 1,
- id: 'onon6',
- nickname: '가가가',
- paymentDue: 100000,
- calculateType: '롤링',
- accountHolder: '가가가',
- note: '',
- registrationDate: '2022-06-13 12:57',
- processDate: '2022-06-13 12:58',
- deposit: 200000,
- withdraw: 0,
- total: 200000,
- gameMoney: 0,
- highRank: '[매장]on04',
- state: '완료',
- },
- {
- rank: '회원',
- level: 1,
- id: 'onon6',
- nickname: '가가가',
- paymentDue: 100000,
- calculateType: '롤링',
- accountHolder: '가가가',
- note: '',
- registrationDate: '2022-06-13 12:56',
- processDate: '2022-06-13 12:57',
- deposit: 200000,
- withdraw: 0,
- total: 200000,
- gameMoney: 0,
- highRank: '[매장]on04',
- state: '완료',
+ id: '00b0292f-3d50-4669-a0c4-7a9d85efc98d',
+ partnerDepositIdx: 2,
+ partnerDepositId: 'kgon4',
+ partnerDepositNickname: '총판',
+ partnerDepositRank: '총판',
+ nameOfDepositer: '총판',
+ partnerDepositAmountOfPayment: 500000,
+ partnerDepositRegistrationDate: '2022-05-17 21:46',
+ partnerDepositConfirmDate: '2022-05-17 21:46',
+
+ partnerWithdrawIdx: 2,
+ partnerWithdrawId: 'kgon4',
+ partnerWithdrawNickname: '총판',
+ partnerWithdrawRank: '총판',
+ accountHolder: '국민은행 예금주총판 0430440404040040',
+ partnerWithdrawAmountOfPayment: 100000,
+ partnerWithdrawRegistrationDate: '2022-05-17 21:46',
+ partnerWithdrawConfirmDate: '2022-05-17 21:46',
},
];
diff --git a/src/app/mock-api/apps/bank/web-calculate/api.ts b/src/app/mock-api/apps/bank/web-calculate/api.ts
index e1375ab..934f08d 100644
--- a/src/app/mock-api/apps/bank/web-calculate/api.ts
+++ b/src/app/mock-api/apps/bank/web-calculate/api.ts
@@ -33,7 +33,7 @@ export class BankWebCalculateMockApi {
.reply(({ request }) => {
// Get available queries
const search = request.params.get('search');
- const sort = request.params.get('sort') || 'name';
+ const sort = request.params.get('sort') || 'webDepositId';
const order = request.params.get('order') || 'asc';
const page = parseInt(request.params.get('page') ?? '1', 10);
const size = parseInt(request.params.get('size') ?? '10', 10);
@@ -42,7 +42,11 @@ export class BankWebCalculateMockApi {
let webCalculates: any[] | null = cloneDeep(this._webCalculates);
// Sort the webCalculates
- if (sort === 'sku' || sort === 'name' || sort === 'active') {
+ if (
+ sort === 'webDepositId' ||
+ sort === 'webDepositNickname' ||
+ sort === 'accountHolder'
+ ) {
webCalculates.sort((a, b) => {
const fieldA = a[sort].toString().toUpperCase();
const fieldB = b[sort].toString().toUpperCase();
diff --git a/src/app/mock-api/apps/bank/web-calculate/data.ts b/src/app/mock-api/apps/bank/web-calculate/data.ts
index 99a605e..400cda1 100644
--- a/src/app/mock-api/apps/bank/web-calculate/data.ts
+++ b/src/app/mock-api/apps/bank/web-calculate/data.ts
@@ -10,7 +10,7 @@ export const webCalculates = [
nameOfDepositer: '가가가',
webDepositAmountOfPayment: 100000,
webDepositRegistrationDate: '2022-06-13 12:57',
- webDepositComfirmDate: '2022-06-13 12:58',
+ webDepositConfirmDate: '2022-06-13 12:58',
webWithdrawIdx: 1,
webWithdrawId: 'aa100',
@@ -30,7 +30,7 @@ export const webCalculates = [
nameOfDepositer: '가가가',
webDepositAmountOfPayment: 100000,
webDepositRegistrationDate: '2022-06-13 12:56',
- webDepositComfirmDate: '2022-06-13 12:57',
+ webDepositConfirmDate: '2022-06-13 12:57',
webWithdrawIdx: 2,
webWithdrawId: 'aa100',
diff --git a/src/app/modules/admin/bank/partner-calculate/components/list.component.html b/src/app/modules/admin/bank/partner-calculate/components/list.component.html
index eca0281..66f14da 100644
--- a/src/app/modules/admin/bank/partner-calculate/components/list.component.html
+++ b/src/app/modules/admin/bank/partner-calculate/components/list.component.html
@@ -10,35 +10,33 @@