| | |
| | | import com.matrix.system.fenxiao.dao.BizUserDao; |
| | | import com.matrix.system.fenxiao.entity.BizUser; |
| | | import com.matrix.system.hive.bean.*; |
| | | import com.matrix.system.hive.bean.MoneyCardUse; |
| | | import com.matrix.system.hive.bean.SysVipInfo; |
| | | import com.matrix.system.hive.dao.SysBedInfoDao; |
| | | import com.matrix.system.hive.dao.SysOrderItemDao; |
| | | import com.matrix.system.hive.dao.SysShopInfoDao; |
| | |
| | | @Autowired |
| | | private SysOrderItemDao orderItemDao; |
| | | |
| | | @Resource |
| | | private MoneyCardUseService cardUseService; |
| | | @Test |
| | | public void findOrderById() { |
| | | Long id = 675L; |
| | | // SysUsers user = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | SysOrder order = orderService.findById(id); |
| | | order.setItems(orderItemDao.selectByOrderId(id)); |
| | | System.out.println(order); |
| | | Long vipId = 111L; |
| | | MoneyCardUse moneyCardUse = new MoneyCardUse(); |
| | | moneyCardUse.setVipId(vipId); |
| | | moneyCardUse.setStatus(Dictionary.MONEYCARD_STATUS_YX); |
| | | List<MoneyCardUse> cards = cardUseService.findByModel(moneyCardUse); |
| | | } |
| | | @Test |
| | | public void testFrist(){ |