bug fix 9
This commit is contained in:
parent
8050870b0b
commit
4c92d28496
@ -25,6 +25,7 @@ export class HomePageController {
|
|||||||
constructor(private readonly homePageService: HomePageService) { }
|
constructor(private readonly homePageService: HomePageService) { }
|
||||||
|
|
||||||
|
|
||||||
|
// NOT USED
|
||||||
@Get('GetHomePageData/:P_SPID')
|
@Get('GetHomePageData/:P_SPID')
|
||||||
GetHomePageData(@Param() params: SPID_DTO) {
|
GetHomePageData(@Param() params: SPID_DTO) {
|
||||||
return this.homePageService.GetHomePageData(params);
|
return this.homePageService.GetHomePageData(params);
|
||||||
|
|||||||
@ -18,6 +18,7 @@ export class HomePageService {
|
|||||||
|
|
||||||
constructor(private readonly oracleDBService: OracleDBService) { }
|
constructor(private readonly oracleDBService: OracleDBService) { }
|
||||||
|
|
||||||
|
// NOT USED
|
||||||
async GetHomePageData(params: SPID_DTO) {
|
async GetHomePageData(params: SPID_DTO) {
|
||||||
let connection;
|
let connection;
|
||||||
|
|
||||||
|
|||||||
@ -542,20 +542,20 @@ export class UserMaintenanceService {
|
|||||||
if (curr.SERVICE_PROVIDER_NAME && curr.SPID) {
|
if (curr.SERVICE_PROVIDER_NAME && curr.SPID) {
|
||||||
existing = acc.find(
|
existing = acc.find(
|
||||||
(item) =>
|
(item) =>
|
||||||
item.SERVICE_PROVIDER_NAME === curr.SERVICE_PROVIDER_NAME &&
|
item.Service_Provider_Name === curr.SERVICE_PROVIDER_NAME &&
|
||||||
item.SPID === curr.SPID
|
item.SPID === curr.SPID
|
||||||
);
|
);
|
||||||
} else if (curr.PREPARER_NAME && curr.CLIENTID) {
|
} else if (curr.PREPARER_NAME && curr.CLIENTID) {
|
||||||
existing = acc.find(
|
existing = acc.find(
|
||||||
(item) =>
|
(item) =>
|
||||||
item.PREPARER_NAME === curr.PREPARER_NAME &&
|
item.Preparer_Name === curr.PREPARER_NAME &&
|
||||||
item.CLIENTID === curr.CLIENTID
|
item.CLIENTID === curr.CLIENTID
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (existing) {
|
if (existing) {
|
||||||
existing.CARNETSTATUS.push(curr.CARNETSTATUS);
|
existing.CARNETSTATUS.push(curr.CARNETSTATUS);
|
||||||
existing.CARNET_COUNT.push(curr.CARNET_COUNT);
|
existing.Carnet_Count.push(curr.CARNET_COUNT);
|
||||||
} else {
|
} else {
|
||||||
const newItem = {
|
const newItem = {
|
||||||
CARNETSTATUS: [curr.CARNETSTATUS],
|
CARNETSTATUS: [curr.CARNETSTATUS],
|
||||||
@ -563,10 +563,10 @@ export class UserMaintenanceService {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (curr.SERVICE_PROVIDER_NAME && curr.SPID) {
|
if (curr.SERVICE_PROVIDER_NAME && curr.SPID) {
|
||||||
newItem['SERVICE_PROVIDER_NAME'] = curr.SERVICE_PROVIDER_NAME;
|
newItem['Service_Provider_Name'] = curr.SERVICE_PROVIDER_NAME;
|
||||||
newItem['SPID'] = curr.SPID;
|
newItem['SPID'] = curr.SPID;
|
||||||
} else if (curr.PREPARER_NAME && curr.CLIENTID) {
|
} else if (curr.PREPARER_NAME && curr.CLIENTID) {
|
||||||
newItem['PREPARER_NAME'] = curr.PREPARER_NAME;
|
newItem['Preparer_Name'] = curr.PREPARER_NAME;
|
||||||
newItem['CLIENTID'] = curr.CLIENTID;
|
newItem['CLIENTID'] = curr.CLIENTID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user