public void withdrawSellStock(int paramInt, String paramString) {
   WareHouseStockDAO localWareHouseStockDAO = Server.getInstance().getWareHouseStockDAO();
   List localList =
       localWareHouseStockDAO.getPledgeStockList(
           " and moduleid="
               + paramInt
               + " and orderID='"
               + paramString
               + "' and status=0 for update ");
   if ((localList == null) || (localList.size() <= 0)) {
     return;
   }
   PledgeStockPO localPledgeStockPO = (PledgeStockPO) localList.get(0);
   localWareHouseStockDAO.realesePledgeStock(paramInt, paramString);
   localWareHouseStockDAO.deleteStockOperation(
       localPledgeStockPO.getStockID(), StockOperation.SELL);
 }
 public TransferGoodsVO sellStockToDelivery(
     int paramInt, String paramString1, String paramString2, String paramString3) {
   TransferGoodsVO localTransferGoodsVO = new TransferGoodsVO();
   localTransferGoodsVO.setResult(-1L);
   WareHouseStockDAO localWareHouseStockDAO = Server.getInstance().getWareHouseStockDAO();
   List localList =
       localWareHouseStockDAO.getPledgeStockList(
           " and moduleid="
               + paramInt
               + " and orderID='"
               + paramString1
               + "' and status=0 for update ");
   PledgeStockPO localPledgeStockPO = null;
   if ((localList != null) && (localList.size() > 0)) {
     localPledgeStockPO = (PledgeStockPO) localList.get(0);
   }
   if (localPledgeStockPO == null) {
     localTransferGoodsVO.addErrorInfo(
         -1223L, new Object[] {Integer.valueOf(paramInt), paramString1});
     return localTransferGoodsVO;
   }
   StockPO localStockPO = localWareHouseStockDAO.getStockPOByID(localPledgeStockPO.getStockID());
   if (!localStockPO.getOwnerFirm().equals(paramString3)) {
     localTransferGoodsVO.addErrorInfo(-1222L);
     return localTransferGoodsVO;
   }
   localWareHouseStockDAO.realesePledgeStock(paramInt, paramString1);
   localWareHouseStockDAO.deleteStockOperation(
       localPledgeStockPO.getStockID(), StockOperation.SELL);
   localTransferGoodsVO =
       transferGoods(
           paramInt, paramString2, new String[] {localPledgeStockPO.getStockID()}, paramString3);
   if (localTransferGoodsVO.getResult() < 0L) {
     TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
   }
   return localTransferGoodsVO;
 }