Java Code Examples for com.macro.mall.model.PmsMemberPrice#setMemberLevelId()
The following examples show how to use
com.macro.mall.model.PmsMemberPrice#setMemberLevelId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PmsDaoTests.java From mall-swarm with Apache License 2.0 | 5 votes |
@Test @Transactional @Rollback public void testInsertBatch(){ List<PmsMemberPrice> list = new ArrayList<>(); for(int i=0;i<5;i++){ PmsMemberPrice memberPrice = new PmsMemberPrice(); memberPrice.setProductId(1L); memberPrice.setMemberLevelId((long) (i+1)); memberPrice.setMemberPrice(new BigDecimal("22")); list.add(memberPrice); } int count = memberPriceDao.insertList(list); Assert.assertEquals(5,count); }
Example 2
Source File: PmsDaoTests.java From macrozheng with Apache License 2.0 | 5 votes |
@Test @Transactional @Rollback public void testInsertBatch(){ List<PmsMemberPrice> list = new ArrayList<>(); for(int i=0;i<5;i++){ PmsMemberPrice memberPrice = new PmsMemberPrice(); memberPrice.setProductId(1L); memberPrice.setMemberLevelId((long) (i+1)); memberPrice.setMemberPrice(new BigDecimal("22")); list.add(memberPrice); } int count = memberPriceDao.insertList(list); Assert.assertEquals(5,count); }
Example 3
Source File: PmsDaoTests.java From mall with Apache License 2.0 | 5 votes |
@Test @Transactional @Rollback public void testInsertBatch(){ List<PmsMemberPrice> list = new ArrayList<>(); for(int i=0;i<5;i++){ PmsMemberPrice memberPrice = new PmsMemberPrice(); memberPrice.setProductId(1L); memberPrice.setMemberLevelId((long) (i+1)); memberPrice.setMemberPrice(new BigDecimal("22")); list.add(memberPrice); } int count = memberPriceDao.insertList(list); Assert.assertEquals(5,count); }
Example 4
Source File: PmsDaoTests.java From macrozheng-mall with MIT License | 5 votes |
@Test @Transactional @Rollback public void testInsertBatch(){ List<PmsMemberPrice> list = new ArrayList<>(); for(int i=0;i<5;i++){ PmsMemberPrice memberPrice = new PmsMemberPrice(); memberPrice.setProductId(1L); memberPrice.setMemberLevelId((long) (i+1)); memberPrice.setMemberPrice(new BigDecimal("22")); list.add(memberPrice); } int count = memberPriceDao.insertList(list); Assert.assertEquals(5,count); }