Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不支持localdate类型比对 #348

Open
starShinning opened this issue Aug 26, 2024 · 0 comments
Open

不支持localdate类型比对 #348

starShinning opened this issue Aug 26, 2024 · 0 comments

Comments

@starShinning
Copy link

@Test
public void localDateTest() throws Exception {

    ExpressRunner runner = new ExpressRunner(true, false);
    runner.setShortCircuit(true);
    runner.setIgnoreConstChar(true);
    DefaultContext context = new DefaultContext();
    LocalDate date1 = LocalDate.now();
    LocalDate date2 = LocalDate.now();
    context.put("date1", date1);
    context.put("date2", date2);
    Object execute = runner.execute("date1 > date2", context, null, false, false);
    System.out.println(execute);
}

Caused by: com.ql.util.express.exception.QLException: 2024-08-26和2024-08-26不能执行compare 操作
at com.ql.util.express.Operator.compareData(Operator.java:120)
at com.ql.util.express.instruction.op.OperatorEqualsLessMore.executeInner(OperatorEqualsLessMore.java:46)
at com.ql.util.express.instruction.op.OperatorEqualsLessMore.executeInner(OperatorEqualsLessMore.java:28)
at com.ql.util.express.instruction.op.OperatorEqualsLessMore.executeInner(OperatorEqualsLessMore.java:24)
at com.ql.util.express.Operator.executeInner(Operator.java:26)
at com.ql.util.express.instruction.op.OperatorBase.execute(OperatorBase.java:56)
at com.ql.util.express.instruction.detail.InstructionOperator.execute(InstructionOperator.java:32)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant