feat: 优化查询

This commit is contained in:
2026-10-22 14:10:41 +08:00
parent 19a2a6d63a
commit fa9ff1e9d5
@@ -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");