Class LimitManager
java.lang.Object
ru.bitel.bgbilling.kernel.contract.limit.server.bean.LimitManager
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
addMoveTask
(LimitChangeTask task) void
cancelMoveTask
(List<Integer> taskIds) static void
clientPaymentEvent
(Connection con, PaymentEvent event) Установка понижений лимита оплаченными по фа.void
deleteMoveTaskAndLog
(int taskId, int contractId, int userId) Отмена задачи, очистка пользовательской статистики и логовvoid
executeRestoreLimitTask
(Calendar now, ContractDao contractDao, String comment) getContractLimitParameters
(Setup setup, Contract contract) Deprecated.getContractLimitParameters
(Setup setup, Contract contract) getContractManage
(SearchResult<ContractSubPanelManage> searchResult, int contractId) getContractMoveTasks
(int contractId) getUserLimitMove
(int contractId, int yy, int mm) getUserLimitMove
(int contractId, Calendar date1, Calendar date2) boolean
initRestoreLimitTask
(Calendar date) static final List<ContractLimitParameters>
void
lowLimit
(int cid, BigDecimal sum, int days) Временное понижение лимита.void
searchContractLimitAvto
(SearchResult<ContractLimitAvto> searchResult, int contractId, String status) void
setLimitManageMode
(int userId, int contractId, int mode) void
updateContractLimit
(int userId, BigDecimal limitValue, int contractId, String comment, int days)
-
Field Details
-
TABLE_CONTRACT_LIMIT_MANAGE_MODE_LOG
- See Also:
-
VPAY_NOT_PAYOFFED
public static final int VPAY_NOT_PAYOFFED- See Also:
-
VPAY_PARTIAL_PAYOFFED
public static final int VPAY_PARTIAL_PAYOFFED- See Also:
-
VPAY_PAYOFFED
public static final int VPAY_PAYOFFED- See Also:
-
VPAY_EXPIRED
public static final int VPAY_EXPIRED- See Also:
-
limitMutex
чтобы при одновременном событии восстановления лимита по сроку и по оплате лимит не изменился два раза
-
-
Constructor Details
-
LimitManager
-
-
Method Details
-
searchContractLimitAvto
public void searchContractLimitAvto(SearchResult<ContractLimitAvto> searchResult, int contractId, String status) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getContractMoveTasks
-
addMoveTask
- Throws:
ru.bitel.bgbilling.common.BGException
-
cancelMoveTask
- Throws:
ru.bitel.bgbilling.common.BGException
-
deleteMoveTaskAndLog
public void deleteMoveTaskAndLog(int taskId, int contractId, int userId) Отмена задачи, очистка пользовательской статистики и логов- Parameters:
taskId
-contractId
-userId
-
-
getFullTaskList
-
updateContractLimit
public void updateContractLimit(int userId, BigDecimal limitValue, int contractId, String comment, int days) -
initRestoreLimitTask
-
executeRestoreLimitTask
-
clientPaymentEvent
public static void clientPaymentEvent(Connection con, PaymentEvent event) throws ru.bitel.bgbilling.common.BGException Установка понижений лимита оплаченными по фа.- Parameters:
con
-event
-- Throws:
ru.bitel.bgbilling.common.BGException
-
load
-
getContractLimitParameters
@Deprecated public ContractLimitParameters getContractLimitParameters(Setup setup, Contract contract) throws ru.bitel.bgbilling.common.BGException Deprecated.ИспользоватьgetContractLimitParameters(Setup, ru.bitel.bgbilling.kernel.contract.api.common.bean.Contract)
- Parameters:
setup
-contract
- старый bean договора- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
getContractLimitParameters
public ContractLimitParameters getContractLimitParameters(Setup setup, Contract contract) throws ru.bitel.bgbilling.common.BGException - Parameters:
setup
-contract
- новый bean договора- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
lowLimit
public void lowLimit(int cid, BigDecimal sum, int days) throws ru.bitel.bgbilling.common.BGException Временное понижение лимита.- Parameters:
cid
- - код договораsum
- - на какую сумму уменьшить лмиитdays
- - на сколько дней- Throws:
ru.bitel.bgbilling.common.BGException
-
getUserLimitMove
-
getUserLimitMove
public List<LimitManager.UserLimitMove> getUserLimitMove(int contractId, Calendar date1, Calendar date2) -
getContractManage
public List<ContractSubPanelManage> getContractManage(SearchResult<ContractSubPanelManage> searchResult, int contractId) throws SQLException - Throws:
SQLException
-
setLimitManageMode
public void setLimitManageMode(int userId, int contractId, int mode)
-