Class DispatchDAO
java.lang.Object
ru.bgcrm.plugin.bgbilling.dao.BillingDAO
ru.bgcrm.plugin.bgbilling.proto.dao.DispatchDAO
-
Field Summary
Fields inherited from class ru.bgcrm.plugin.bgbilling.dao.BillingDAO
dbInfo, jsonMapper, jsonTypeFactory, transferData, user -
Constructor Summary
ConstructorsConstructorDescriptionDispatchDAO(User user, String billingId) DispatchDAO(User user, DBInfo dbInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubscriptions(Set<Integer> contractIds, Set<Integer> dispatchIds) Добавляет рассылки на договоры в случае нахождения в них подходящих контактов.getContactList(int contractId) Возвращает список контактов договора.voidupdateContact(Contact contact) Обновляет либо добавляет контакт договора.Methods inherited from class ru.bgcrm.plugin.bgbilling.dao.BillingDAO
doRequest, getDbInfo, getPage, getParameterId, getVersion, linesToString, readJsonValue, setPage
-
Constructor Details
-
DispatchDAO
-
DispatchDAO
-
-
Method Details
-
updateContact
Обновляет либо добавляет контакт договора.- Parameters:
contact-
-
getContactList
Возвращает список контактов договора.- Parameters:
contractId-- Returns:
-
addSubscriptions
Добавляет рассылки на договоры в случае нахождения в них подходящих контактов.- Parameters:
contractIds- коды договоровdispatchIds- коды рассылок
-