| | |
| | | import com.matrix.system.hive.service.*; |
| | | import com.matrix.system.padApi.dto.PadOrderListDto; |
| | | import com.matrix.system.padApi.vo.PadOrderDetailVo; |
| | | import org.assertj.core.util.Arrays; |
| | | import org.junit.Test; |
| | | import org.junit.runner.RunWith; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @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(Arrays.asList(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(){ |