### Question:
SqlGenerateUtils { public static String buildWhereConditionByPKs(List<String> pkNameList, int rowSize, String dbType) throws SQLException { return buildWhereConditionByPKs(pkNameList, rowSize, dbType, MAX_IN_SIZE); } private  SqlGenerateUtils(); static String buildWhereConditionByPKs(List<String> pkNameList, int rowSize, String dbType); static String buildWhereConditionByPKs(List<String> pkNameList, int rowSize, String dbType, int maxInSize); static void setParamForPk(List<Map<String, Field>> pkRowsList, List<String> pkColumnNameList,
                                     PreparedStatement pst); static String buildWhereConditionByPKs(List<String> pkNameList, String dbType);  }### Answer:
@Test void testBuildWhereConditionByPKs() throws SQLException { List<String> pkNameList=new ArrayList<>(); pkNameList.add("id"); pkNameList.add("name"); String result = SqlGenerateUtils.buildWhereConditionByPKs(pkNameList,4,"mysql",2); Assertions.assertEquals("(id,name) in ( (?,?),(?,?) ) or (id,name) in ( (?,?),(?,?) )", result); result = SqlGenerateUtils.buildWhereConditionByPKs(pkNameList,5,"mysql",2); Assertions.assertEquals("(id,name) in ( (?,?),(?,?) ) or (id,name) in ( (?,?),(?,?) ) or (id,name) in ( (?,?)" + " )", result); }