package cn.cslg.pas.service; import cn.cslg.pas.controller.AvoidDesignController; import cn.cslg.pas.service.business.AvoidDesignService; import cn.cslg.pas.service.business.es.EsFamilyService; import cn.cslg.pas.service.business.es.EsPatentService; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; /** * @Author xiexiang * @Date 2023/12/5 */ @SpringBootTest public class EsPatentServiceTests { @Autowired private EsPatentService esPatentService; @Autowired private EsFamilyService esFamilyService; @Test public void test() throws Exception { } @Test public void testUpdate() { } @Test public void getPatentsByNo() throws Exception { List patentNos =new ArrayList<>(); patentNos.add("CN201910069334.7"); patentNos.add("CN201110286649.0"); esPatentService.getPatentsByNo(patentNos,true,null,null); } @Test public void getFamilys() throws Exception{ List patentNos =new ArrayList<>(); patentNos.add("CN116525219A"); List> maps = esFamilyService.getPatentFamilyByNos(patentNos,"inpadoc"); System.out.println(maps); } }