Skip to content

Commit 06cffd6

Browse files
committed
Ticket 6529|Updated changes for activity to set number of participants for NJPC education and health accordingly with Goonj salesforce changes.
1 parent 426c6f8 commit 06cffd6

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

goonj/src/main/java/org/avni_integration_service/goonj/dto/ActivityDTO.java

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"NoofparticipantsFemaleNJPC",
3333
"NoofparticipantsNJPCOther",
3434
"NoofparticipantsS2S",
35+
"NoofparticipantsNJPC",
3536
"NoofdaysofParticipationS2S",
3637
"NoofdaysofParticipationNJPC",
3738
"ActivityConductedWithStudents",
@@ -116,6 +117,8 @@ public class ActivityDTO {
116117
private int noofparticipantsNJPCOther;
117118
@JsonProperty("NoofparticipantsCFWOther")
118119
private int noofparticipantsCFWOther;
120+
@JsonProperty("NoofparticipantsNJPC")
121+
private Long noofparticipantsNJPC;
119122
@JsonProperty("NoofparticipantsS2S")
120123
private Long noofparticipantsS2S;
121124
@JsonProperty("NoofWorkingDays")
@@ -175,6 +178,7 @@ public ActivityDTO() {
175178
* @param noofdaysofParticipationNJPC
176179
* @param noofWorkingDays
177180
* @param noofparticipantsS2S
181+
* @param noofparticipantsNJPC
178182
* @param nos
179183
* @param typeofInitiative
180184
* @param isEducationAndHealth
@@ -224,7 +228,7 @@ public ActivityDTO(String sourceId, String nameOfAccount, String activityCategor
224228
String localityVillageName, String tolaMohalla, String measurementType, Long noofdaysofParticipationNJPC,
225229
Long noofdaysofParticipationS2S, int noofparticipantsFemaleCFW, int noofparticipantsFemaleNJPC,
226230
int noofparticipantsMaleCFW, int noofparticipantsMaleNJPC, int noofparticipantsNJPCOther,
227-
int noofparticipantsCFWOther, Long noofparticipantsS2S,
231+
int noofparticipantsCFWOther, Long noofparticipantsS2S,Long noofparticipantsNJPC,
228232
Long noofWorkingDays, Integer nos, String objectiveofCFWwork, String schoolAanganwadiLearningCenterName,
229233
String state, String typeofInitiative, boolean isEducationAndHealth,int maleStudent,int femaleStudent, String otherObjective, String otherSubType,
230234
String createdBy, String modifiedBy, String beforeImplementationPhotograph, String duringImplementationPhotograph,
@@ -262,6 +266,7 @@ public ActivityDTO(String sourceId, String nameOfAccount, String activityCategor
262266
this.noofparticipantsNJPCOther = noofparticipantsNJPCOther;
263267
this.noofparticipantsCFWOther = noofparticipantsCFWOther;
264268
this.noofparticipantsS2S = noofparticipantsS2S;
269+
this.noofparticipantsNJPC = noofparticipantsNJPC;
265270
this.noofWorkingDays = noofWorkingDays;
266271
this.nos = nos;
267272
this.objectiveofCFWwork = objectiveofCFWwork;
@@ -590,6 +595,16 @@ public void setNoofparticipantsS2S(Long noofparticipantsS2S) {
590595
this.noofparticipantsS2S = noofparticipantsS2S;
591596
}
592597

598+
@JsonProperty("NoofparticipantsNJPC")
599+
public Long getNoofparticipantsNJPC() {
600+
return noofparticipantsNJPC;
601+
}
602+
603+
@JsonProperty("NoofparticipantsNJPC")
604+
public void setNoofparticipantsNJPC(Long noofparticipantsNJPC) {
605+
this.noofparticipantsNJPC = noofparticipantsNJPC;
606+
}
607+
593608
@JsonProperty("NoofWorkingDays")
594609
public Long getNoofWorkingDays() {
595610
return noofWorkingDays;

goonj/src/main/java/org/avni_integration_service/goonj/repository/ActivityRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private ActivityDTO createActivityRequest(Subject subject) {
164164
activityDTO.setFemaleStudent((subject.getObservation(FEMALE_STUDENT) == null) ? 0 : (int)subject.getObservation(FEMALE_STUDENT));
165165
int male = (subject.getObservation(MALE_STUDENT)==null) ? 0 : (int)subject.getObservation(MALE_STUDENT);
166166
int female = (subject.getObservation(FEMALE_STUDENT)==null) ? 0 : (int)subject.getObservation(FEMALE_STUDENT);
167-
activityDTO.setNoofparticipantsS2S(Long.valueOf((subject.getObservation(NUMBER_OF_PARTICIPANTS) == null) ? (male+female) : (Integer) subject.getObservation(NUMBER_OF_PARTICIPANTS)));
167+
activityDTO.setNoofparticipantsNJPC(Long.valueOf((subject.getObservation(NUMBER_OF_PARTICIPANTS) == null) ? (male+female) : (Integer) subject.getObservation(NUMBER_OF_PARTICIPANTS)));
168168
activityDTO.setSchoolAanganwadiLearningCenterName((String)subject.getObservation(SCHOOL_AANGANWADI_LEARNINGCENTER_NAME));
169169
}
170170
else{

0 commit comments

Comments
 (0)