updated code entity name
This commit is contained in:
@@ -17,7 +17,7 @@ import lombok.Setter;
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Entity
|
||||
@Table(name = "bharat_connect_master")
|
||||
@Table(name = "bbps_bharat_connect_master")
|
||||
public class BharatConnectMaster extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -13,7 +13,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "bill_additional_info")
|
||||
@Table(name = "bbps_bill_additional_info")
|
||||
public class BillAdditionalInfo {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -13,7 +13,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "bill_customer_params")
|
||||
@Table(name = "bbps_bill_customer_params")
|
||||
public class BillCustomerParams {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.NoArgsConstructor;
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Entity
|
||||
@Table(name = "bill_initiate")
|
||||
@Table(name = "bbps_bill_initiate")
|
||||
public class BillInitiate {
|
||||
@Id
|
||||
@Column(name = "req_id")
|
||||
|
||||
@@ -17,7 +17,7 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "bill_master")
|
||||
@Table(name = "bbps_bill_master")
|
||||
@Builder
|
||||
@Getter
|
||||
@Setter
|
||||
|
||||
@@ -16,7 +16,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "bill_payment")
|
||||
@Table(name = "bbps_bill_payment")
|
||||
public class BillPayment {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -13,7 +13,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "bill_tag_list")
|
||||
@Table(name = "bbps_bill_tag_list")
|
||||
public class BillTag {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -8,7 +8,7 @@ import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Entity
|
||||
@Table(name = "bill_validation")
|
||||
@Table(name = "bbps_bill_validation")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
|
||||
@@ -13,7 +13,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "biller_additional_info_payment")
|
||||
@Table(name = "bbps_biller_additional_info_payment")
|
||||
@Entity
|
||||
public class BillerAdditionalInfoPayment {
|
||||
@Id
|
||||
|
||||
@@ -18,7 +18,7 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "biller_category_icon")
|
||||
@Table(name = "bbps_biller_category_icon")
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
|
||||
@@ -15,7 +15,7 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "biller_category_wise")
|
||||
@Table(name = "bbps_biller_category_wise")
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
|
||||
@@ -34,7 +34,7 @@ import lombok.ToString;
|
||||
"billerAdditionalInfoPayments"
|
||||
})
|
||||
|
||||
@Table(name = "biller_details")
|
||||
@Table(name = "bbps_biller_details")
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class BillerDetails{
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import lombok.ToString;
|
||||
@Setter
|
||||
@Entity
|
||||
@ToString
|
||||
@Table(name = "biller_plan_response_params")
|
||||
@Table(name = "bbps_biller_plan_response_params")
|
||||
public class BillerPlanResponseParams {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
|
||||
@@ -11,7 +11,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "biller_response")
|
||||
@Table(name = "bbps_biller_response")
|
||||
@Getter
|
||||
@Setter
|
||||
public class BillerResponse {
|
||||
|
||||
@@ -20,7 +20,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "biller_response_params")
|
||||
@Table(name = "bbps_biller_response_params")
|
||||
public class BillerResponseParams {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "category_response_list")
|
||||
@Table(name = "bbps_category_response_list")
|
||||
@Getter
|
||||
@Setter
|
||||
public class CategoryResponseList extends Auditable<String> {
|
||||
|
||||
@@ -16,7 +16,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "check_client_biller_data")
|
||||
@Table(name = "bbps_check_client_biller_data")
|
||||
@Getter
|
||||
@Setter
|
||||
public class CheckClientBillerData {
|
||||
|
||||
@@ -10,7 +10,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "check_client_status_req_id")
|
||||
@Table(name = "bbps_check_client_status_req_id")
|
||||
@Getter
|
||||
@Setter
|
||||
public class CheckClientStatusReqId {
|
||||
|
||||
@@ -13,7 +13,7 @@ import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Entity
|
||||
@Table(name = "complaints")
|
||||
@Table(name = "bbps_complaints")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
|
||||
@@ -14,7 +14,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "complaint_status")
|
||||
@Table(name = "bbps_complaint_status")
|
||||
@Getter
|
||||
@Setter
|
||||
public class ComplainStatus extends Auditable<String> {
|
||||
|
||||
@@ -5,7 +5,7 @@ import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
@Entity
|
||||
@Table(name = "complaint_details")
|
||||
@Table(name = "bbps_complaint_details")
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
|
||||
@@ -16,7 +16,7 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "complaints_history")
|
||||
@Table(name = "bbps_complaints_history")
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
|
||||
@@ -20,7 +20,7 @@ import lombok.ToString;
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
@Table(name = "complaint_responses")
|
||||
@Table(name = "bbps_complaint_responses")
|
||||
public class ComplaintResponseEntity extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -16,7 +16,7 @@ import lombok.Setter;
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "view_ticket_status")
|
||||
@Table(name = "bbps_view_ticket_status")
|
||||
public class ComplaintStatusDetails extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -11,7 +11,7 @@ import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
@Entity
|
||||
@Table(name = "complaint_options_status_master")
|
||||
@Table(name = "bbps_complaint_options_status_master")
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
|
||||
@@ -14,7 +14,7 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "contact_master_data")
|
||||
@Table(name = "bbps_contact_master_data")
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
|
||||
@@ -16,7 +16,7 @@ import lombok.ToString;
|
||||
@Setter
|
||||
@Entity
|
||||
@ToString
|
||||
@Table(name = "custom_param")
|
||||
@Table(name = "bbps_custom_param")
|
||||
public class CustomParam extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -22,7 +22,7 @@ import lombok.ToString;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "customer_param")
|
||||
@Table(name = "bbps_customer_param")
|
||||
@ToString
|
||||
public class CustomerParam {
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.Setter;
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "customer_param_bill")
|
||||
@Table(name = "bbps_customer_param_bill")
|
||||
public class CustomerParamBill {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -6,7 +6,7 @@ import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Entity
|
||||
@Table(name = "customer_params_bill_validate")
|
||||
@Table(name = "bbps_customer_params_bill_validate")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.Setter;
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "customer_params")
|
||||
@Table(name = "bbps_customer_params")
|
||||
public class CustomerParamDAO {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -20,7 +20,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "customer_param_group_by_biller_id")
|
||||
@Table(name = "bbps_customer_param_group_by_biller_id")
|
||||
public class CustomerParamGroupById extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -21,7 +21,7 @@ import lombok.ToString;
|
||||
@Setter
|
||||
@Entity
|
||||
@ToString
|
||||
@Table(name = "customer_param_groups")
|
||||
@Table(name = "bbps_customer_param_groups")
|
||||
public class CustomerParamGroups {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -14,7 +14,7 @@ import lombok.Setter;
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "customer_params_transaction")
|
||||
@Table(name = "bbps_customer_params_transaction")
|
||||
public class CustomerParamTransaction {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -15,7 +15,7 @@ import lombok.Setter;
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "device_block_tag")
|
||||
@Table(name = "bbps_device_block_tag")
|
||||
public class DeviceBlockTag {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -11,7 +11,7 @@ import lombok.ToString;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "disposition_details")
|
||||
@Table(name = "bbps_disposition_details")
|
||||
@ToString
|
||||
public class DispositionDetails {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import lombok.Setter;
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Entity
|
||||
@Table(name = "fetch_bill_validate_response")
|
||||
@Table(name = "bbps_fetch_bill_validate_response")
|
||||
public class FetchBillValidate extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -25,7 +25,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "biller_groups")
|
||||
@Table(name = "bbps_biller_groups")
|
||||
public class Group {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -14,7 +14,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "group_params")
|
||||
@Table(name = "bbps_group_params")
|
||||
public class GroupParam {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -21,7 +21,7 @@ import lombok.ToString;
|
||||
@Setter
|
||||
@Entity
|
||||
@ToString
|
||||
@Table(name = "interchange_fee")
|
||||
@Table(name = "bbps_interchange_fee")
|
||||
public class InterchangeFee {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -19,7 +19,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "interchange_fee_conf")
|
||||
@Table(name = "bbps_interchange_fee_conf")
|
||||
public class InterchangeFeeConf {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "interchange_fee_detail")
|
||||
@Table(name = "bbps_interchange_fee_detail")
|
||||
@Getter
|
||||
@Setter
|
||||
public class InterchangeFeeDetail {
|
||||
|
||||
@@ -17,7 +17,7 @@ import lombok.ToString;
|
||||
@Setter
|
||||
@Entity
|
||||
@ToString
|
||||
@Table(name = "payment_channel")
|
||||
@Table(name = "bbps_payment_channel")
|
||||
public class PaymentChannel {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.NoArgsConstructor;
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Entity
|
||||
@Table(name = "payment_initiate")
|
||||
@Table(name = "bbps_payment_initiate")
|
||||
public class PaymentInitiate {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -19,7 +19,7 @@ import lombok.ToString;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "biller_payment_modes")
|
||||
@Table(name = "bbps_biller_payment_modes")
|
||||
@ToString
|
||||
public class PaymentMode {
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import lombok.NoArgsConstructor;
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Entity
|
||||
@Table(name = "payment_start_record")
|
||||
@Table(name = "bbps_payment_start_record")
|
||||
public class PaymentStartRecord {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -18,7 +18,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "plan")
|
||||
@Table(name = "bbps_plan")
|
||||
@Getter
|
||||
@Setter
|
||||
public class Plan {
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "plan_category_sub_type")
|
||||
@Table(name = "bbps_plan_category_sub_type")
|
||||
@Getter
|
||||
@Setter
|
||||
public class PlanCategorySubType {
|
||||
|
||||
@@ -16,7 +16,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "plan_response")
|
||||
@Table(name = "bbps_plan_response")
|
||||
@Getter
|
||||
@Setter
|
||||
public class PlanResponses extends Auditable<String> {
|
||||
|
||||
@@ -5,7 +5,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "plan_tag")
|
||||
@Table(name = "bbps_plan_tag")
|
||||
@Getter
|
||||
@Setter
|
||||
public class PlanTag {
|
||||
|
||||
@@ -14,7 +14,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "plans_list")
|
||||
@Table(name = "bbps_plans_list")
|
||||
@Getter
|
||||
@Setter
|
||||
public class PlansList {
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "reopen_complaint")
|
||||
@Table(name = "bbps_reopen_complaint")
|
||||
@Getter
|
||||
@Setter
|
||||
public class ReOpenComplain extends Auditable<String> {
|
||||
|
||||
@@ -15,7 +15,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "remitter_identity")
|
||||
@Table(name = "bbps_remitter_identity")
|
||||
public class RemitterIdentity {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -15,7 +15,7 @@ import lombok.ToString;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "ticket_disposition_details")
|
||||
@Table(name = "bbps_ticket_disposition_details")
|
||||
@ToString
|
||||
public class TicketDispositionDetails extends Auditable<String> {
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import lombok.ToString;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "transaction_master")
|
||||
@Table(name = "bbps_transaction_master")
|
||||
@ToString
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
|
||||
@@ -14,7 +14,7 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "users")
|
||||
@Table(name = "bbps_users")
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
|
||||
@@ -15,7 +15,7 @@ import lombok.NoArgsConstructor;
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Entity
|
||||
@Table(name = "user_details")
|
||||
@Table(name = "bbps_user_details")
|
||||
public class UsersDetails extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ import lombok.Setter;
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "view_all_complaint_ticket_status")
|
||||
@Table(name = "bbps_view_all_complaint_ticket_status")
|
||||
public class ViewAllComplaintTicketStatusDetails extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -3,6 +3,8 @@ package com.billpaymentservice.bbps.repository;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.billpaymentservice.bbps.entites.BillInitiate;
|
||||
@@ -10,8 +12,14 @@ import com.billpaymentservice.bbps.entites.BillInitiate;
|
||||
@Repository
|
||||
public interface BillInitateRepository extends JpaRepository<BillInitiate, String> {
|
||||
|
||||
Optional<BillInitiate> findByTxnId(String clientReqId);
|
||||
@Query(value = "SELECT * FROM bbps_bill_initiate WHERE txn_id = :txnId", nativeQuery = true)
|
||||
Optional<BillInitiate> findByTxnId(@Param("txnId") String txnId);
|
||||
|
||||
Optional<BillInitiate> findByReqId(String clientReqId);
|
||||
// Optional<BillInitiate> findByTxnId(String clientReqId);
|
||||
|
||||
@Query(value = "SELECT * FROM bbps_bill_initiate WHERE req_id = :reqId", nativeQuery = true)
|
||||
Optional<BillInitiate> findByReqId(@Param("reqId") String reqId);
|
||||
|
||||
// Optional<BillInitiate> findByReqId(String clientReqId);
|
||||
|
||||
}
|
||||
|
||||
@@ -1,14 +1,20 @@
|
||||
package com.billpaymentservice.bbps.repository;
|
||||
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.billpaymentservice.bbps.entites.BillerDetails;
|
||||
|
||||
@Repository
|
||||
public interface BillerDataRepository extends JpaRepository<BillerDetails, String> {
|
||||
|
||||
Optional<BillerDetails> findByBillerId(String billerId);
|
||||
// Optional<BillerDetails> findByBillerId(String billerId);
|
||||
|
||||
@Query(value = "SELECT * FROM bbps_biller_details WHERE biller_id = :billerId", nativeQuery = true)
|
||||
Optional<BillerDetails> findByBillerId(@Param("billerId") String billerId);
|
||||
|
||||
}
|
||||
|
||||
+5
-1
@@ -11,6 +11,10 @@ import com.billpaymentservice.bbps.entites.ComplaintStatusOptionsMaster;
|
||||
@Repository
|
||||
public interface ComplaintOptionsStatusMasterRepository extends JpaRepository<ComplaintStatusOptionsMaster, Integer> {
|
||||
|
||||
@Query("SELECT c FROM ComplaintStatusOptionsMaster c WHERE c.isDeleted = false")
|
||||
// @Query("SELECT c FROM ComplaintStatusOptionsMaster c WHERE c.isDeleted = false")
|
||||
// List<ComplaintStatusOptionsMaster> findAllActiveStatuses();
|
||||
|
||||
@Query(value = "SELECT * FROM bbps_complaint_options_status_master WHERE is_deleted = false", nativeQuery = true)
|
||||
List<ComplaintStatusOptionsMaster> findAllActiveStatuses();
|
||||
|
||||
}
|
||||
|
||||
@@ -17,4 +17,8 @@ public interface ComplaintResponseRepository extends JpaRepository<ComplaintResp
|
||||
|
||||
@Query("SELECT c FROM ComplaintResponseEntity c WHERE c.userId = :userId")
|
||||
Page<ComplaintResponseEntity> findByUserIdCustom(@Param("userId") String userId, Pageable pageable);
|
||||
|
||||
@Query(value = "SELECT * FROM bbps_complaint_responses WHERE user_id = :userId", nativeQuery = true)
|
||||
Page<ComplaintResponseEntity> findByUserIdNative(@Param("userId") String userId, Pageable pageable);
|
||||
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.billpaymentservice.bbps.repository;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.billpaymentservice.bbps.entites.BBPSMerchantValidation;
|
||||
@@ -9,6 +10,10 @@ import com.billpaymentservice.bbps.entites.BBPSMerchantValidation;
|
||||
@Repository
|
||||
public interface MerchantRepository extends JpaRepository<BBPSMerchantValidation, Long> {
|
||||
|
||||
@Query("from BBPSMerchantValidation where mid = ?1 and is_deleted = false")
|
||||
public BBPSMerchantValidation findByMid(String mid);
|
||||
// @Query("from BBPSMerchantValidation where mid = ?1 and is_deleted = false")
|
||||
// public BBPSMerchantValidation findByMid(String mid);
|
||||
|
||||
@Query(value = "SELECT * FROM bbps_merchant_validation WHERE mid = :mid AND is_deleted = false", nativeQuery = true)
|
||||
BBPSMerchantValidation findByMidNative(@Param("mid") String mid);
|
||||
|
||||
}
|
||||
|
||||
@@ -3,11 +3,15 @@ package com.billpaymentservice.bbps.repository;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
|
||||
import com.billpaymentservice.bbps.entites.PaymentInitiate;
|
||||
|
||||
public interface PaymentIntiateRepository extends JpaRepository<PaymentInitiate, String> {
|
||||
|
||||
// Optional<PaymentInitiate> findByReqId(String clientReqId);
|
||||
|
||||
@Query(value = "SELECT * FROM bbps_payment_initiate WHERE req_id = :clientReqId", nativeQuery = true)
|
||||
Optional<PaymentInitiate> findByReqId(String clientReqId);
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ swagger.server.description=Local Development Server
|
||||
|
||||
|
||||
# DataSource
|
||||
spring.datasource.url=jdbc:postgresql://localhost:5432/BBPS
|
||||
spring.datasource.url=jdbc:postgresql://localhost:5432/devdbuat
|
||||
spring.datasource.username=postgres
|
||||
spring.datasource.password=UAT@DB_2025
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ spring.jpa.hibernate.ddl-auto=update
|
||||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
|
||||
spring.jpa.properties.hibernate.default_schema=public
|
||||
|
||||
swagger.server.url=https://11.godemo.in/BBPS
|
||||
swagger.server.url=https://11.godemo.in/devdbuat
|
||||
swagger.server.description=Production Server
|
||||
|
||||
#swagger.server.url=http://localhost:9090
|
||||
|
||||
Reference in New Issue
Block a user