diff --git a/utilities/Penalty/src/main/java/org/egov/job/PenaltySchedularJob.java b/utilities/Penalty/src/main/java/org/egov/job/PenaltySchedularJob.java index a8af5f007..9db0c3d99 100644 --- a/utilities/Penalty/src/main/java/org/egov/job/PenaltySchedularJob.java +++ b/utilities/Penalty/src/main/java/org/egov/job/PenaltySchedularJob.java @@ -69,21 +69,16 @@ public void addPenaltyEventToWaterCalculator(AddPenaltyCriteria penaltyCriteria) Role role= Role.builder().code(config.getRole()).tenantId(config.getTenantId()).name(config.getRole()).build(); List roles = new ArrayList<>(); roles.add(role); - log.info("role:"+role); - log.info("roles:"+roles); User user = User.builder().userName(config.getUserName()). mobileNumber(config.getUserName()). uuid(config.getUuid()). roles(roles). tenantId(config.getTenantId()).build(); - log.info("userInfo:"+user); - log.info("penaltyCriteria:"+penaltyCriteria); RequestInfo requestInfo= RequestInfo.builder().userInfo(user).build(); PenaltyRequest penaltyRequest = PenaltyRequest.builder().requestInfo(requestInfo).addPenaltyCriteria(penaltyCriteria).build(); log.info("Posting request to add Penalty for tenantid:" +penaltyCriteria.getTenantId()); log.info("Penalty Request"+ penaltyRequest); if (penaltyCriteria.getTenantId() != null) { - if (penaltyCriteria.getTenantId().equalsIgnoreCase("pb.poohlahjgfid")) { try { HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_JSON); @@ -96,7 +91,6 @@ public void addPenaltyEventToWaterCalculator(AddPenaltyCriteria penaltyCriteria) log.info("Error while calling to water calculator service for tenant :" + penaltyCriteria.getTenantId() + " ERROR MESSAGE:" + e.getMessage(), e.getCause()); } } - } } /** diff --git a/utilities/Penalty/src/main/resources/application.properties b/utilities/Penalty/src/main/resources/application.properties index 9e942ade6..20408e989 100644 --- a/utilities/Penalty/src/main/resources/application.properties +++ b/utilities/Penalty/src/main/resources/application.properties @@ -10,7 +10,7 @@ mdms.event.tenantId=pb egov.wscalculator.host=http://localhost:8083 egov.wscalculator.url=/ws-calculator/waterCalculator/_addPenalty egov.penalty.enabled= true -egov.penalty.enabled.division.code.list=DIV1038,DIV1001 +egov.penalty.enabled.division.code.list=DIV1038 #----------------aspect Configurations----------------# timestamp.logging.enabled=true