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