feat: 优化查询
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ public class PersonApiConfigServiceImpl extends BaseServiceImpl<PersonApiConfig>
|
||||
public Pagination pageData(PageForm pageForm, String configName, String sourceType, Boolean enabled) {
|
||||
CndPlus cnd = CndPlus.create();
|
||||
cnd.andEX("configName", "like", Strings.isBlank(configName) ? null : "%" + configName + "%");
|
||||
cnd.andEX("sourceType", "=", sourceType);
|
||||
cnd.andEX("sourceType", "=", Strings.isBlank(sourceType) ? null : sourceType);
|
||||
cnd.andEX("enabled", "=", enabled);
|
||||
// 历史保存可能将删除标记写为NULL;仅明确标记为true的配置不在列表展示。
|
||||
cnd.and(Cnd.exps("delFlag", "=", false).or("delFlag", "is", null)).desc("updatedAt");
|
||||
|
||||
Reference in New Issue
Block a user