Class CustomerDao
java.lang.Object
ru.bitel.bgbilling.kernel.contract.api.server.bean.customer.CustomerDao
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomerLink
(CustomerLink customerLink) getCustomer
(int customerId) Строка в JSON формате с данными клиентаorg.json.JSONArray
getCustomerContracts
(int customerId, LocalDateTime onTime) org.json.JSONObject
getCustomerDataJson
(int customerId) getCustomerLink
(int contractId, LocalDateTime dateTime) getCustomerParameter
(int customerId, String fieldKey) getCustomerParameterHistory
(int customerId, String fieldKey, int lastRecordCount) int
org.json.JSONArray
searchByKey
(Customer.CustomerType customerType, String key, String value) org.json.JSONArray
searchByPassportRF
(String serial, String number) void
setCustomerLink
(int contractId, int сustomerId, LocalDateTime linkDateTimeFrom) Установка связки клиент - договорboolean
setCustomerUnlinkContract
(int contractId, LocalDateTime unlinkTime) updateCustomerFieldValue
(int customerId, String fieldKey, String fieldValue, int userId)
-
Field Details
-
TABLE_CUSTOMER
- See Also:
-
TABLE_CUSTOMER_LOG
- See Also:
-
TABLE_CUSTOMER_LINK
- See Also:
-
-
Constructor Details
-
CustomerDao
-
-
Method Details
-
getCustomerLink
public Optional<CustomerLink> getCustomerLink(int contractId, LocalDateTime dateTime) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
addCustomerLink
- Throws:
ru.bitel.bgbilling.common.BGException
-
getNewCustomerId
public int getNewCustomerId(Customer.CustomerType type) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
updateCustomerFieldValue
public String updateCustomerFieldValue(int customerId, String fieldKey, String fieldValue, int userId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getCustomerDataJson
public org.json.JSONObject getCustomerDataJson(int customerId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getCustomer
Строка в JSON формате с данными клиента- Parameters:
customerId
-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
searchByKey
public org.json.JSONArray searchByKey(Customer.CustomerType customerType, String key, String value) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
searchByPassportRF
public org.json.JSONArray searchByPassportRF(String serial, String number) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
setCustomerLink
public void setCustomerLink(int contractId, int сustomerId, LocalDateTime linkDateTimeFrom) throws ru.bitel.bgbilling.common.BGException Установка связки клиент - договор- Parameters:
contractId
- id договора\u0441ustomerId
- id кастомераlinkDateTimeFrom
- время привязки- Throws:
ru.bitel.bgbilling.common.BGException
-
getCustomerContracts
public org.json.JSONArray getCustomerContracts(int customerId, LocalDateTime onTime) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
setCustomerUnlinkContract
public boolean setCustomerUnlinkContract(int contractId, LocalDateTime unlinkTime) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getCustomerParameterHistory
public String getCustomerParameterHistory(int customerId, String fieldKey, int lastRecordCount) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getCustomerParameter
public String getCustomerParameter(int customerId, String fieldKey) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-