Unverified Commit e2d5aed6 authored by dzygcc's avatar dzygcc Committed by GitHub

bugfix: 内置日期变量相减变成了相加 (#1397)

* add inner date var. * fix check style. * fix: _CURRENT_DATE_ sustract op Co-authored-by: 's avatarduzhongyi <duzhongyi@itiger.com>
parent 52b007aa
......@@ -269,11 +269,11 @@ public final class SqlManager {
int days = 0;
try {
if (key.contains("+")) {
int s = key.indexOf("+");
int s = key.indexOf("+") + 1;
String num = key.substring(s).trim();
days = Integer.parseInt(num);
} else if (key.contains("-")) {
int s = key.indexOf("-");
int s = key.indexOf("-") + 1;
String num = key.substring(s).trim();
days = Integer.parseInt(num) * -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment