Merge branch 'development' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-staging
This commit is contained in:
commit
cf899abbc2
|
@ -186,6 +186,7 @@ export class TransactionController {
|
||||||
@Query('start') startDate: string,
|
@Query('start') startDate: string,
|
||||||
@Query('end') endDate: string,
|
@Query('end') endDate: string,
|
||||||
@Query('trxId') trxId: string,
|
@Query('trxId') trxId: string,
|
||||||
|
@Query('partnerTrxId') partnerTrxId: string,
|
||||||
@Request() req,
|
@Request() req,
|
||||||
) {
|
) {
|
||||||
const data = await this.transactionService.transactionHistoryByUser(
|
const data = await this.transactionService.transactionHistoryByUser(
|
||||||
|
@ -194,6 +195,7 @@ export class TransactionController {
|
||||||
startDate == 'null' ? null : startDate,
|
startDate == 'null' ? null : startDate,
|
||||||
endDate == 'null' ? null : endDate,
|
endDate == 'null' ? null : endDate,
|
||||||
trxId == 'null' ? null : trxId,
|
trxId == 'null' ? null : trxId,
|
||||||
|
partnerTrxId == 'null' ? null : partnerTrxId,
|
||||||
pageSize,
|
pageSize,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -232,6 +234,7 @@ export class TransactionController {
|
||||||
@Query('start') startDate: string,
|
@Query('start') startDate: string,
|
||||||
@Query('end') endDate: string,
|
@Query('end') endDate: string,
|
||||||
@Query('trxId') trxId: string,
|
@Query('trxId') trxId: string,
|
||||||
|
@Query('partnerTrxId') partnerTrxId: string,
|
||||||
@Param('id', ParseUUIDPipe) id: string,
|
@Param('id', ParseUUIDPipe) id: string,
|
||||||
) {
|
) {
|
||||||
const data = await this.transactionService.transactionHistoryByUser(
|
const data = await this.transactionService.transactionHistoryByUser(
|
||||||
|
@ -240,6 +243,7 @@ export class TransactionController {
|
||||||
startDate == 'null' ? null : startDate,
|
startDate == 'null' ? null : startDate,
|
||||||
endDate == 'null' ? null : endDate,
|
endDate == 'null' ? null : endDate,
|
||||||
trxId == 'null' ? null : trxId,
|
trxId == 'null' ? null : trxId,
|
||||||
|
partnerTrxId == 'null' ? null : partnerTrxId,
|
||||||
pageSize,
|
pageSize,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1886,6 +1886,7 @@ export class TransactionService {
|
||||||
startDate: string,
|
startDate: string,
|
||||||
endDate: string,
|
endDate: string,
|
||||||
trxId: string,
|
trxId: string,
|
||||||
|
partnerTrxId: string,
|
||||||
pageSize?: number,
|
pageSize?: number,
|
||||||
) {
|
) {
|
||||||
const userData = await this.userService.findExist(user);
|
const userData = await this.userService.findExist(user);
|
||||||
|
@ -1966,6 +1967,13 @@ export class TransactionService {
|
||||||
trxId: trxId
|
trxId: trxId
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
} else if (partnerTrxId != null) {
|
||||||
|
baseQuery.andWhere(
|
||||||
|
'transaction.partner_trx_id = :partnerTrxId',
|
||||||
|
{
|
||||||
|
partnerTrxId: partnerTrxId
|
||||||
|
},
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = await baseQuery
|
const data = await baseQuery
|
||||||
|
|
Loading…
Reference in New Issue
Block a user