Class HelpDeskDAO
java.lang.Object
ru.bgcrm.plugin.bgbilling.dao.BillingDAO
ru.bgcrm.plugin.bgbilling.proto.dao.HelpDeskDAO
-
Field Summary
Fields inherited from class ru.bgcrm.plugin.bgbilling.dao.BillingDAO
COMMENT, DATE_1, DATE_2, dbInfo, jsonMapper, jsonTypeFactory, PARAMETERS, TITLE, transferData, user, VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getAttach
(int contractId, int id) getContractMode
(int contractId) getMessage
(int topicId, int messageId) getTopicWithMessages
(int topicId) Requests a single topic with related massages.void
markMessageRead
(int messageId) void
void
void
setTopicAutoClose
(int contractId, int topicId, boolean value) void
setTopicCost
(int contractId, int topicId, BigDecimal cost) void
setTopicExecutor
(int topicId, int billingUserId) void
setTopicExecutorMe
(int topicId) void
setTopicPackageState
(int contractId, int topicId, boolean inPackage) void
setTopicState
(int topicId, boolean stateClose) void
setTopicStatus
(int contractId, int topicId, int status) void
updateMessage
(int topicId, HdMessage msg) Methods inherited from class ru.bgcrm.plugin.bgbilling.dao.BillingDAO
doRequest, getDbInfo, getPage, getParameterId, getVersion, linesToString, readJsonValue, setPage
-
Field Details
-
MODE_OFF
- See Also:
-
MODE_ON
- See Also:
-
MODE_PACKAGE
- See Also:
-
-
Constructor Details
-
HelpDeskDAO
-
-
Method Details
-
getTopicWithMessages
Requests a single topic with related massages.- Parameters:
topicId
- the topic ID.- Returns:
- the topic - messages pair, or
null
-
updateMessage
-
getMessage
-
searchTopicsWithMessages
-
markMessageRead
public void markMessageRead(int messageId) -
setTopicState
public void setTopicState(int topicId, boolean stateClose) -
setTopicExecutor
public void setTopicExecutor(int topicId, int billingUserId) -
setTopicExecutorMe
public void setTopicExecutorMe(int topicId) -
setTopicStatus
public void setTopicStatus(int contractId, int topicId, int status) -
setTopicAutoClose
public void setTopicAutoClose(int contractId, int topicId, boolean value) -
setTopicCost
-
setTopicPackageState
public void setTopicPackageState(int contractId, int topicId, boolean inPackage) -
getAttach
- Throws:
Exception
-
putAttach
- Throws:
Exception
-
getContractMode
-