Browse Source

暂存别上生产。3

master
yinzuomei 3 years ago
parent
commit
44e57b9f8e
  1. 3
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/IcUserDemandRecController.java

3
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/IcUserDemandRecController.java

@ -98,6 +98,7 @@ public class IcUserDemandRecController implements ResultDataResolver {
formDTO.setStaffId(tokenDto.getUserId());
ValidatorUtils.validateEntity(formDTO, ServiceQueryFormDTO.AddUserInternalGroup.class);
if (UserDemandConstant.VOLUNTEER.equals(formDTO.getServiceType())) {
//应该查询爱心互助的志愿者
return new Result<List<OptionDTO>>().ok(volunteerInfoService.queryListVolunteer(tokenDto.getCustomerId(), formDTO.getStaffId(),formDTO.getServiceName()));
} else if (UserDemandConstant.SOCIAL_ORG.equals(formDTO.getServiceType())) {
ValidatorUtils.validateEntity(formDTO, ServiceQueryFormDTO.AddUserInternalGroup.class, ServiceQueryFormDTO.SocietyOrgInternalGroup.class);
@ -106,6 +107,8 @@ public class IcUserDemandRecController implements ResultDataResolver {
return new Result<List<OptionDTO>>().ok(icCommunitySelfOrganizationService.queryServiceList(formDTO));
} else if (UserDemandConstant.PARTY_UNIT.equals(formDTO.getServiceType())) {
return new Result<List<OptionDTO>>().ok(icPartyUnitService.queryServiceList(formDTO));
}else if (UserDemandConstant.IC_USER_VOLUNTEER.equals(formDTO.getServiceType())) {
return new Result<List<OptionDTO>>().ok(volunteerInfoService.queryListVolunteer(tokenDto.getCustomerId(), formDTO.getStaffId(),formDTO.getServiceName()));
}
return new Result<>();
}

Loading…
Cancel
Save