Repository navigation
Testing nikshay - #159
Open
chetansaroya wants to merge 4 commits into
Open
Testing nikshay#159chetansaroya wants to merge 4 commits into
chetansaroya wants to merge 4 commits into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
| */ | ||
| public List<NikshayIdGenerateBeneficiaryDTO> findAllNegativeBeneficiaries() { | ||
| JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource); | ||
| return jdbcTemplate.query(ALL_NEGATIVE_BENEFICIARIES_SQL, (rs, rowNum) -> mapRow(rs)); |
| + "ORDER BY b.updated_at DESC, b.ben_reg_id DESC LIMIT :size OFFSET :offset"; | ||
| params.addValue("size", size); | ||
| params.addValue("offset", page * size); | ||
| return new NamedParameterJdbcTemplate(dataSource).queryForList(sql, params); |
| MapSqlParameterSource params = new MapSqlParameterSource(); | ||
| String sql = "SELECT COUNT(*) " | ||
| + filteredBeneficiariesSql(phase, status, failedOnly, failureReason, beneficiaryType, search, params); | ||
| Long count = new NamedParameterJdbcTemplate(dataSource).queryForObject(sql, params, Long.class); |
Comment on lines
+73
to
+74
| logger.info("Designated PHI {} {} for village {} by {}", phiId, existing.isEmpty() ? "added" : "updated", | ||
| villageId, createdBy); |
| } | ||
| mapping.setUpdatedBy(updatedBy); | ||
| mapping = transferOutPhiRepo.save(mapping); | ||
| logger.info("Designated PHI mapping {} updated by {}", id, updatedBy); |
| mapping.setStatus(NikshayTransferOutPhiVillageMapping.STATUS_INACTIVE); | ||
| mapping.setUpdatedBy(updatedBy); | ||
| mapping = transferOutPhiRepo.save(mapping); | ||
| logger.info("Designated PHI mapping {} marked inactive by {}", id, updatedBy); |
| } | ||
| HttpClient client = HttpClient.newBuilder().connectTimeout(CONNECT_TIMEOUT) | ||
| .followRedirects(HttpClient.Redirect.NORMAL).build(); | ||
| logger.info("Ni-kshay login succeeded for {} at {}", username, origin); |
| pb.environment().put("NIKSHAY_USER", username); | ||
| pb.environment().put("NIKSHAY_PASS", password); | ||
|
|
||
| logger.info("Ni-kshay login for {} ({}) via {}", username, portalEnv, script); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




📋 Description
JIRA ID: STOP-647