Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HCMPRE-1645: added localityCode and paymentStatus in attendance #3567

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions health/egov-persister/attendance-service-persister.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ serviceMaps:
transactionCodeJsonPath: $.registerNumber
auditAttributeBasePath: $.attendanceRegister.*
queryMaps:
- query: INSERT INTO health.eg_wms_attendance_register(id,tenantid,registernumber,name,startdate,enddate,status,additionaldetails,createdby,lastmodifiedby,createdtime,lastmodifiedtime,referenceid,servicecode) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?);
- query: INSERT INTO health.eg_wms_attendance_register(id,tenantid,registernumber,name,startdate,enddate,status,additionaldetails,createdby,lastmodifiedby,createdtime,lastmodifiedtime,referenceid,servicecode,localitycode,paymentstatus) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);
basePath: $.attendanceRegister.*
jsonMaps:
- jsonPath: $.attendanceRegister.*.id
Expand Down Expand Up @@ -46,6 +46,10 @@ serviceMaps:

- jsonPath: $.attendanceRegister.*.serviceCode

- jsonPath: $.attendanceRegister.*.localityCode

- jsonPath: $.attendanceRegister.*.paymentStatus

- query: INSERT INTO health.eg_wms_attendance_staff(id,tenantid,individual_id,register_id,enrollment_date,deenrollment_date,additionaldetails,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?);
basePath: $.attendanceRegister.*.staff.*
jsonMaps:
Expand Down Expand Up @@ -312,7 +316,7 @@ serviceMaps:
transactionCodeJsonPath: $.registerNumber
auditAttributeBasePath: $.attendanceRegister.*
queryMaps:
- query: UPDATE health.eg_wms_attendance_register set name=?, startdate=?, enddate=?, status=?,additionaldetails=?,lastmodifiedby=?, lastmodifiedtime=? where id=?;
- query: UPDATE health.eg_wms_attendance_register set name=?, startdate=?, enddate=?, status=?,additionaldetails=?,lastmodifiedby=?, lastmodifiedtime=?, localitycode=?, paymentstatus=? where id=?;
basePath: $.attendanceRegister.*
jsonMaps:
- jsonPath: $.attendanceRegister.*.name
Expand All @@ -330,6 +334,10 @@ serviceMaps:
- jsonPath: $.attendanceRegister.*.auditDetails.lastModifiedBy

- jsonPath: $.attendanceRegister.*.auditDetails.lastModifiedTime

- jsonPath: $.attendanceRegister.*.localityCode

- jsonPath: $.attendanceRegister.*.paymentStatus

- jsonPath: $.attendanceRegister.*.id

Expand Down