Skip to content

Commit 4d12efd

Browse files
committed
fix: modify AppMapper
1 parent aedcf4d commit 4d12efd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/src/main/java/com/tinyengine/it/mapper/AppMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ List<App> queryAllAppByPage(Integer pageSize, Integer offset, String name,
5151
*
5252
* @return the int
5353
*/
54-
@Select("select count(id) from t_app where is_template != true")
54+
@Select("SELECT COUNT(id) FROM t_app WHERE is_template IS NOT TRUE")
5555
int queryAppTotal();
5656

5757
/**
5858
* 查询表t_app 模版总数
5959
*
6060
* @return the int
6161
*/
62-
@Select("select count(id) from t_app where is_template = true")
62+
@Select("SELECT COUNT(id) FROM t_app WHERE is_template = TRUE")
6363
int queryAppTemplateTotal();
6464

6565
/**

0 commit comments

Comments
 (0)