public List <Supply> getSupplyListByName(String name) { List <Supply> listSupply = supplyDao.querySupplyByName(name); for (int i = 0; i < listSupply.Count; i++) { User user = userDao.queryUserById(listSupply[i].User.Id); listSupply[i].User.NickName = user.NickName; listSupply[i].User.TeleNumber = user.TeleNumber; } return(listSupply); }