更新 llms-full.txt
This commit is contained in:
@@ -654,14 +654,12 @@ DateTime endTime; //会议结束时间
|
||||
- 根据字段过滤条件,对DTO和VO的列表字段数据进行过滤
|
||||
- **注意** 不派生自DTO的VO不能创建读方案
|
||||
- 读方案能力边界
|
||||
- 读方案的的查询能力是sql的简化,实现了部分sql的查询能力,仅支持Sql的 count、exists、left join, not、in、like、between、and、or、not 以及 ( ) , 以及排序 order by, 以及分页 limit ,offset, 不能使用group by, having , avg 等函数
|
||||
- 读方案的的查询能力是sql的简化,实现了部分sql的查询能力,仅支持Sql的 count、exists、left join, not、in、like、between、and、or、not 以及 ( ) , 以及排序 order by, 以及分页 limit ,offset, 不能使用group by, having 语法,不支持使用函数
|
||||
- 在使用exists 和 left join的时候只能通过外键扩展,其中如果外键是1:N的时候,只能使用exist, 如果是1:1的时候则可以使用 left join 和 exists.
|
||||
例如: 实体t 和他t1 ,t1存在列t_id为指向t的外键,如果外键关系为1:N,则 select * from t where exists (select * from t1 where t.id=t1.id) 合法; elect * from t left join t1 on t.id=t1.id 非法
|
||||
- 在过滤字段的选择上,在使用exists的时候,在条件中只能选择后表的字段, 在使用 left join的时候,则可以使用前表和后表字段
|
||||
例如: 实体 t (id,name) ,实体 t1 (id,name,t_id) ,t1存在列t_id为指向t的外键, select * from t where exists (select * from t1 where t.id=t1.id and t.name like ?) 非法, select * from t left join t1 on t.id=t1.id and t1.name like ? 合法
|
||||
select * from t left join t1 on t.id=t1.id where t.name like ? 合法, select * from t left join t1 on t.id=t1.id where t1.name like ? 合法
|
||||
- count语法的限制,count语法只能在最外层单独使用,如果使用了count语法,只能返回总的数量,不能返回其他字段
|
||||
例如:select count(*) from t 合法, select count(*),t.name from t where t.name like ? 非法
|
||||
- 在选择使用度方案的时候**必须**符合度方案能力编辑,如果需求在读方案的能力之外,必须使用 **2.16 自定义查询** 实现功能
|
||||
- **特别注意** 对于根据主键,获取单个或者批量获取DTO或者VO,并且不需要对DTO、VO的列表字段数据进行过滤的需求,必须使用**DTO自动生成的预定义方法**,禁止使用读方案
|
||||
- **关键配置:** 名称(小写字母+下划线,不要以read_plan结尾,全局唯一)、返回结构(DTO/VO,一个读方案**不能**同时返回多种DTO或VO)、查询条件的自然语言描述、是否生成计数方法、排序字段(如果选择不分页,则不需要)、过滤字段以及过滤条件。
|
||||
|
||||
Reference in New Issue
Block a user