Example #1
0
 @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;
 }
Example #2
0
 @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;
 }
Example #3
0
 @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;
 }