public void modifRetuenDefary(int i) { Defray def = defaryDao.findById(i); User user = def.getShopId().getUsers(); user.setMoney(user.getMoney() + (long) (def.getMoney())); // 虚拟币退还 userDao.save(user); // 保存用户信息 defaryDao.delete(def); // 删除本次申请 }
public void modifOverDefary(int i) { Defray def = defaryDao.findById(i); def.setState(Constants.DEF_OK); def.setUpdateDate(System.currentTimeMillis()); defaryDao.save(def); }