batch 2 day 2 and batch 2 api completed for mssql
This commit is contained in:
parent
9aedf7e38f
commit
d497546725
@ -39,9 +39,9 @@ export class SpContactsController {
|
|||||||
return this.spContactsService.setSPDefaultcontact(body);
|
return this.spContactsService.setSPDefaultcontact(body);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @ApiTags('SPContacts - Mssql')
|
@ApiTags('SPContacts - Mssql')
|
||||||
// @Put('/UpdateSPContacts')
|
@Put('/UpdateSPContacts')
|
||||||
// updateSPContacts(@Body() body: UpdateSPContactsDTO) {
|
updateSPContacts(@Body() body: UpdateSPContactsDTO) {
|
||||||
// return this.spContactsService.updateSPContacts(body);
|
return this.spContactsService.updateSPContacts(body);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -129,7 +129,7 @@ export class SpContactsService {
|
|||||||
request.input('P_FAXNO', mssql.VarChar(4000), body.p_faxno);
|
request.input('P_FAXNO', mssql.VarChar(4000), body.p_faxno);
|
||||||
request.input('P_EMAILADDRESS', mssql.VarChar(4000), body.p_emailaddress);
|
request.input('P_EMAILADDRESS', mssql.VarChar(4000), body.p_emailaddress);
|
||||||
request.input('P_USER_ID', mssql.VarChar(4000), body.p_user_id);
|
request.input('P_USER_ID', mssql.VarChar(4000), body.p_user_id);
|
||||||
const result = await request.execute('carnetsys.INSERTNEWREGION');
|
const result = await request.execute('carnetsys.UPDATESPCONTACTS');
|
||||||
return { data: result.recordset };
|
return { data: result.recordset };
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user