Class ContractStatusDAO
java.lang.Object
ru.bgcrm.plugin.bgbilling.dao.BillingDAO
ru.bgcrm.plugin.bgbilling.proto.dao.ContractStatusDAO
-
Field Summary
Fields inherited from class BillingDAO
dbInfo, jsonMapper, jsonTypeFactory, transferData, user -
Constructor Summary
ConstructorsConstructorDescriptionContractStatusDAO(User user, String billingId) ContractStatusDAO(User user, DBInfo dbInfo) -
Method Summary
Modifier and TypeMethodDescriptionstatusFutureTasks(int contractId, Map<Integer, String> statusTitleMap) statusList(int contractId, Map<Integer, String> statusTitleMap) Returns the contract's statuses with their periodsstatusLog(int contractId) Returns the log of contract status changesvoidupdateStatus(int contractId, int statusId, Date dateFrom, Date dateTo, String comment) Methods inherited from class BillingDAO
doRequest, getDbInfo, getPage, getVersion, linesToString, readJsonValue, setPage
-
Constructor Details
-
ContractStatusDAO
-
ContractStatusDAO
-
-
Method Details
-
statusList
Returns the contract's statuses with their periods- Parameters:
contractId- the contract ID- Returns:
- the status list
-
statusLog
Returns the log of contract status changes- Parameters:
contractId- the contract ID- Returns:
- the log item list
-
statusFutureTasks
public List<ContractStatusFutureTask> statusFutureTasks(int contractId, Map<Integer, String> statusTitleMap) -
updateStatus
-