예제 #1
0
 @Override
 public boolean afterExecute(RefundModel refund, String params) {
   RefundLogModel refundlog = new RefundLogModel();
   refundlog.setRefundid(refund.getId());
   refundlog.setType(getAction());
   refundlog.setOpid(0);
   refundlog.setComment("");
   refundlog.setAddtime(DateUtils.unix_timestamp());
   refundLogDAO.add(refundlog);
   return true;
 }
예제 #2
0
 @Override
 public boolean beforeExecute(RefundModel refund, String params, ResultParam result) {
   if (refund == null) {
     result.setMetaCode(RefundErrorEnum.REFUND_NOT_EXISTS);
     return false;
   }
   if (!refund.isStatusNew()) {
     result.setMetaCode(RefundErrorEnum.REFUND_APPROVE1_ERROR);
     return false;
   }
   return true;
 }
예제 #3
0
 @Override
 public boolean execute(RefundModel refund, String params, ResultParam result) {
   refundDAO.updateStatus(RefundModel.STATUS_REJECT1, refund.getId());
   return true;
 }