forked from rongchao/epmet-cloud-rizhao
1 changed files with 30 additions and 0 deletions
@ -0,0 +1,30 @@ |
|||
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); |
|||
} |
|||
} |
Loading…
Reference in new issue