### Question:
UserServiceImpl implements UserService { @Override @Transactional(rollbackFor = Exception.class) public ServiceResult<Boolean> saveUserList(UserListParameter userListParameter) throws Exception { List<UserDO> userDOList = BeanUtil.convertList(userListParameter.getUserDTOList(), UserDO.class); int result = userDAO.insertUserDOBatch(userDOList); if (result == userDOList.size()) { return new ServiceResult<Boolean>(ResultStatusEnum.SUCCESS, true); } return new ServiceResult<Boolean>(ResultStatusEnum.FAILURE); }  @Override ServiceResult<UserDTO> findByUserName(UserParameter userParameter); @Override @Transactional(rollbackFor = Exception.class) ServiceResult<UserDTO> saveUser(UserParameter userParameter); @Override @Transactional(rollbackFor = Exception.class) ServiceResult<Boolean> saveUserList(UserListParameter userListParameter);  }### Answer:
@Test public void saveUserListTest() throws Exception { List<UserDTO> userDOList=new ArrayList<UserDTO>(); userDOList.add(new UserDTO().setUserName("Song1").setMobileNo("13094805984").setSalt("XREybXwZ").setPassword("123456").setEmail("123@qq.com").setRealName("丹尼胡").setIdCardNo("130732199202103227")); userDOList.add(new UserDTO().setUserName("Song2").setMobileNo("13094805984").setSalt("XREybXwZ").setPassword("123456").setEmail("123@qq.com").setRealName("丹尼胡").setIdCardNo("130732199202103227")); ServiceResult<Boolean> saveUserListResult=userService.saveUserList(new UserListParameter().setUserDTOList(userDOList)); System.out.println(JSON.toJSONString(saveUserListResult)); }