-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.6.1 修复bank和notbank empty和notempty的bug
- Loading branch information
Showing
35 changed files
with
168 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
sql-core/src/main/java/com/easy/query/core/func/def/impl/NotBankSQLFunction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.easy.query.core.func.def.impl; | ||
|
||
import com.easy.query.core.expression.parser.core.available.TableAvailable; | ||
import com.easy.query.core.expression.parser.core.base.scec.core.SQLNativeChainExpressionContext; | ||
import com.easy.query.core.func.def.AbstractSQLFunction; | ||
|
||
/** | ||
* create time 2023/10/28 15:00 | ||
* 文件说明 | ||
* | ||
* @author xuejiaming | ||
*/ | ||
public class NotBankSQLFunction extends AbstractSQLFunction { | ||
private final String property; | ||
|
||
public NotBankSQLFunction(String property) { | ||
|
||
this.property = property; | ||
} | ||
|
||
@Override | ||
public String sqlSegment(TableAvailable defaultTable) { | ||
return "({0} IS NOT NULL AND {0} <> '' AND LTRIM({0}) <> '')"; | ||
} | ||
|
||
@Override | ||
public int paramMarks() { | ||
return 1; | ||
} | ||
|
||
@Override | ||
protected void consume0(SQLNativeChainExpressionContext context) { | ||
context.expression(this.property); | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
sql-core/src/main/java/com/easy/query/core/func/def/impl/NotEmptySQLFunction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.easy.query.core.func.def.impl; | ||
|
||
import com.easy.query.core.expression.parser.core.available.TableAvailable; | ||
import com.easy.query.core.expression.parser.core.base.scec.core.SQLNativeChainExpressionContext; | ||
import com.easy.query.core.func.def.AbstractSQLFunction; | ||
|
||
/** | ||
* create time 2023/10/28 15:00 | ||
* 文件说明 | ||
* | ||
* @author xuejiaming | ||
*/ | ||
public class NotEmptySQLFunction extends AbstractSQLFunction { | ||
private final String property; | ||
|
||
public NotEmptySQLFunction(String property) { | ||
|
||
this.property = property; | ||
} | ||
|
||
@Override | ||
public String sqlSegment(TableAvailable defaultTable) { | ||
return "({0} IS NOT NULL AND {0} <> '')"; | ||
} | ||
|
||
@Override | ||
public int paramMarks() { | ||
return 1; | ||
} | ||
|
||
@Override | ||
protected void consume0(SQLNativeChainExpressionContext context) { | ||
context.expression(this.property); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.