/** * @author mao * @date 创建时间:2016-2-1下午2:44:07 * @see com.monkey77.service.ICartService#getOrderDetailFromCart(int) */ @Override public Set<TOrderDetail> getOrderDetailFromCart(int userId) { // TODO Auto-generated method stub Set<TOrderDetail> orderDetail = cartDao.getOrderDetil(userId); for (TOrderDetail t : orderDetail) { goodDao.decreaseGoodNum(t.getTGood().getId(), t.getGoodNumber()); } return orderDetail; }