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