@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; }
@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; }