@Override public Result checkIsFreezeUserAcct(UserAcctDTO userAcctDTO) { long stime = System.currentTimeMillis(); Result result = null; logger.info( "checkIsFreezeUserAcct entry: userId={}", userAcctDTO != null ? userAcctDTO.getUserId() : ""); try { result = (Result) getAssetsManager().checkIsFreezeByUserAcct(userAcctDTO); String userAcctStatue = (String) result.getData(); logger.info( "checkIsFreezeUserAcct success: userAcctStatue={}, userId={}, costTime={}ms", new Object[] { userAcctStatue, userAcctDTO.getUserId(), System.currentTimeMillis() - stime }); return result; } catch (ParameterException e) { result = ExceptionProcessor.getParameterExceptionResult(e); } catch (BusinessException e) { result = ExceptionProcessor.getBusinessExceptionResult(e); } catch (Exception e) { result = ExceptionProcessor.getExceptionResult(e); } return result; }
@Override public Result checkIsEnoughApplyDrawAmount(AcctItemDTO acctItemDTO, String operatorFlag) { Boolean IsEnoughApplyDrawAmount = Boolean.FALSE; long stime = System.currentTimeMillis(); Result result = null; logger.info( "checkIsEnoughApplyDrawAmount entry: acctItemDTO={},operatorFlag={}", new Object[] {jsonUtils.toJson(acctItemDTO), operatorFlag}); try { IsEnoughApplyDrawAmount = (Boolean) getAssetsManager().checkIsEnoughApplyDrawAmount(acctItemDTO, operatorFlag); result = new Result(FacadeConstant.SUCCESS, IsEnoughApplyDrawAmount); logger.info( "checkIsEnoughApplyDrawAmount success: IsEnoughApplyDrawAmount={}, userId={}, costTime={}ms", new Object[] { IsEnoughApplyDrawAmount, acctItemDTO.getUserId(), System.currentTimeMillis() - stime }); } catch (ParameterException e) { result = ExceptionProcessor.getParameterExceptionResult(e); } catch (BusinessException e) { result = ExceptionProcessor.getBusinessExceptionResult(e); } catch (Exception e) { result = ExceptionProcessor.getExceptionResult(e); } return result; }
@SuppressWarnings("unchecked") @Override public Result getVirtualChangeList(AcctChangeDTO acctChangeDTO) { long stime = System.currentTimeMillis(); Result result = null; logger.info("getVirtualChangeList entry: acctChangeDTO={}", jsonUtils.toJson(acctChangeDTO)); try { result = (Result) getAssetsManager().getAcctChangeDetailList(acctChangeDTO); List<AcctChangeDTO> resultList = (List<AcctChangeDTO>) result.getData(); logger.info( "getVirtualChangeList success: count={}, costTime={}ms", new Object[] {resultList.size(), System.currentTimeMillis() - stime}); } catch (ParameterException e) { result = ExceptionProcessor.getParameterExceptionResult(e); } catch (BusinessException e) { result = ExceptionProcessor.getBusinessExceptionResult(e); } catch (Exception e) { result = ExceptionProcessor.getExceptionResult(e); } return result; }
@Override public Result setUserAcctItemFreezeMoney(AcctItemDTO acctItemDTO, AcctChangeDTO acctChangeDTO) { long stime = System.currentTimeMillis(); Result result = null; logger.info( "setUserAcctItemFreezeMoney entry: acctItemDTO={},acctChangeDTO={}", new Object[] {jsonUtils.toJson(acctItemDTO), jsonUtils.toJson(acctChangeDTO)}); try { result = (Result) getAssetsManager().setUserAcctItemFreezeMoney(acctItemDTO, acctChangeDTO); logger.info( "setUserAcctItemFreezeMoney success: userId={}, costTime={}ms", new Object[] {acctItemDTO.getUserId(), System.currentTimeMillis() - stime}); } catch (ParameterException e) { result = ExceptionProcessor.getParameterExceptionResult(e); } catch (BusinessException e) { result = ExceptionProcessor.getBusinessExceptionResult(e); } catch (Exception e) { result = ExceptionProcessor.getExceptionResult(e); } return result; }
@Override public Result setUserAcctUnFreeze(UserAcctDTO userAcctDTO) { long stime = System.currentTimeMillis(); Result result = null; logger.info("setUserAcctUnFreeze entry: userAcctDTO={}", jsonUtils.toJson(userAcctDTO)); try { result = (Result) getAssetsManager() .setUserAcctFreezeOrUnFreeze(userAcctDTO, KeyNames.ACCT_STATE_NATURAL); Long acctId = (Long) result.getData(); logger.info( "setUserAcctUnFreeze success: acctId={}, userId={}, costTime={}ms", new Object[] {acctId, userAcctDTO.getUserId(), System.currentTimeMillis() - stime}); } catch (ParameterException e) { result = ExceptionProcessor.getParameterExceptionResult(e); } catch (BusinessException e) { result = ExceptionProcessor.getBusinessExceptionResult(e); } catch (Exception e) { result = ExceptionProcessor.getExceptionResult(e); } return result; }