@Override
 public boolean dealWith(MedicineStorehouse vo) {
   boolean isFlag = false;
   MedicineStorehouse m = dao.queryById(vo);
   MedicinePurchase p = new MedicinePurchase();
   p.setId(m.getPurchaseId());
   p = purchaseDao.queryById(p);
   m.setPrice(0 - p.getCostPrice());
   dao.update(m);
   isFlag = true;
   return isFlag;
 }
 @Override
 public MedicineStorehouse queryById(MedicineStorehouse info) {
   return dao.queryById(info);
 }