Search in sources :

Example 6 with SqlLoop

use of org.sagacity.sqltoy.plugins.id.macro.impl.SqlLoop in project sagacity-sqltoy by chenrenfei.

the class SqlLoopTest method testParseParams.

@Test
public void testParseParams() {
    SqlLoop sqlLoop = new SqlLoop();
    String template = ":sqlToyLoopAsKey_0A.item=1 and name like '%:sqlToyLoopAsKey_0A.name%' :sqlToyLoopAsKey_0A.sexType名称 or :sqlToyLoopAsKey_0A.订单_名称_id";
    Map<String, String[]> result = sqlLoop.parseParams(template);
    System.err.println(JSON.toJSONString(result));
}
Also used : SqlLoop(org.sagacity.sqltoy.plugins.id.macro.impl.SqlLoop) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)6 SqlLoop (org.sagacity.sqltoy.plugins.id.macro.impl.SqlLoop)6 IgnoreKeyCaseMap (org.sagacity.sqltoy.model.IgnoreKeyCaseMap)5 ArrayList (java.util.ArrayList)3 HashMap (java.util.HashMap)2 AbstractMacro (org.sagacity.sqltoy.plugins.id.macro.AbstractMacro)2 StaffInfoVO (org.sagacity.sqltoy.demo.vo.StaffInfoVO)1