| | |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.HashMap; |
| | |
| | | private MemberService memberService; |
| | | |
| | | @Test |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void baseInsert() { |
| | | for(int i = 0; i < 100; i++) { |
| | | for(int i = 0; i < 50; i++) { |
| | | String phonePrefix = "199999999"; |
| | | if (i < 10) { |
| | | phonePrefix = phonePrefix + "0" + i; |
| | |
| | | registerDto.setAccount(phonePrefix); |
| | | registerDto.setType(1); |
| | | registerDto.setCode("a123456"); |
| | | registerDto.setRefererId("49027637"); |
| | | memberService.register(registerDto); |
| | | } |
| | | } |