You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
861 B
30 lines
861 B
package com.epmet.dao;
|
|
|
|
import com.epmet.entity.IcNatEntity;
|
|
import org.junit.Test;
|
|
import org.junit.runner.RunWith;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
@SpringBootTest
|
|
@RunWith(SpringRunner.class)
|
|
public class IcNatDaoTest {
|
|
@Autowired
|
|
private IcNatDao icNatDao;
|
|
|
|
@Test
|
|
public void updateBatchNat() {
|
|
List<IcNatEntity> entities = new ArrayList<>();
|
|
for (int i = 0; i < 2; i++) {
|
|
IcNatEntity en = new IcNatEntity();
|
|
en.setNatResult("222222"+i);
|
|
en.setUserId(""+i);
|
|
en.setIdCard("card"+i);
|
|
entities.add(en);
|
|
}
|
|
icNatDao.updateBatchNat(entities);
|
|
}
|
|
}
|
|
|