wz11wz

Results 8 comments of wz11wz

select A.*,B.* from A left join A on A.id = B.id where A.state=1 and B.state=1 条件后置,这个条件可以过滤,join后的结果集。很有用的。特别是 页面有多个条件需要过滤的时候。

![Image](https://github.com/user-attachments/assets/ef8a6e2b-8a65-44ab-8846-d5b325fd52c6)

{ "@schema": "zlgl", "[]": { "Qms_checkout_task": {}, "join": "

这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

> > ![Image](https://github.com/user-attachments/assets/ef8a6e2b-8a65-44ab-8846-d5b325fd52c6) > > [@wz11wz](https://github.com/wz11wz) > > PostgreSQL 不支持 JOIN ON 引用没有 SELECT 的字段,所以需要在 SELECT count(*) 后面加上 location_code, 在 AbstractSQLConfig.gainColumnString 中遍历 joinList 里面每个 join.getOnList,把引用的主表字段带上 或者干脆加上 * 就不用遍历了,性能会差些。 > >...

> > { "[@Schema](https://github.com/Schema)": "zlgl", "[]": { "Qms_checkout_task": {}, "join": "

> > > > { "[@Schema](https://github.com/Schema)": "zlgl", "[]": { "Qms_checkout_task": {}, "join": "

> 目前 outerConfig 是把条件加到 ON 上,而不是层 WHERE 上,所以需要以上方式 > > [http://apijson.cn/api/?send=false&type=JSON&url=http%3A%2F%2Fapijson.cn%3A8080%2Fget&json={%22[]%22:{%22join%22:{%22%3C/User%22:{%22sex%22:0}},%22Comment%22:{},%22User%22:{%22name$%22:%22%25a%25%22,%22id@%22:%22%2FComment%2FuserId%22}},%22@explain%22:true}](http://apijson.cn/api/?send=false&type=JSON&url=http%3A%2F%2Fapijson.cn%3A8080%2Fget&json=%7B%22%5B%5D%22:%7B%22join%22:%7B%22%3C/User%22:%7B%22sex%22:0%7D%7D,%22Comment%22:%7B%7D,%22User%22:%7B%22name$%22:%22%25a%25%22,%22id@%22:%22%2FComment%2FuserId%22%7D%7D,%22@explain%22:true%7D) > > 现在的 Join.java 中 SQLConfig outerConfig 重命名成 onConfig 及对应的 get set 方法,IDE 会批量替换所有用到它的地方, 原来的逻辑就保留了,然后再加回来 SQLConfig outerConfig,然后下方的键值对放到 outerConfig 上,后面再具体...