Пример #1
0
 /**
  * 被投诉||申请退款中 锁定支付给卖家的钱
  *
  * @param orderId
  */
 public void lockTheOrderById(int orderId) {
   List<FinanceUnit> units = getFinanceUnitsByOrderId(orderId);
   for (FinanceUnit unit : units) {
     if (unit.getStatus() == FinanceUnit.NOPAY) {
       unit.setStatus(FinanceUnit.LOCK);
       update(unit);
     }
   }
 }
Пример #2
0
 /**
  * 解锁支付给卖家的钱
  *
  * @param orderId
  */
 public void unlockTheOrderById(int orderId) {
   List<FinanceUnit> units = getFinanceUnitsByOrderId(orderId);
   for (FinanceUnit unit : units) {
     if (unit != null && unit.getStatus() == FinanceUnit.LOCK) {
       unit.setStatus(FinanceUnit.NOPAY);
       unit.setCreateAt(new Date());
       update(unit);
     }
   }
 }