コード例 #1
0
 @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;
 }
コード例 #2
0
 @Override
 public MedicineStorehouse queryById(MedicineStorehouse info) {
   return dao.queryById(info);
 }