zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
29.37k stars 3.97k forks source link

Issues on multi-condition query parameter combination. #4386

Open alanxiongxing opened 2 months ago

alanxiongxing commented 2 months ago
image

出现的异常:2 ? in sql, but only 1 arguments provided

求大神解答,谢谢了....

alanxiongxing commented 2 months ago

我找到了解决方式, 用这个包:"github.com/Masterminds/squirrel"

Issues-translate-bot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I found the solution, using this package: "github.com/Masterminds/squirrel"

alanxiongxing commented 2 months ago
image
jexjws commented 5 days ago

github.com/Masterminds/squirrel

我用的是xorm附带的builder,感觉他俩差不多哦 https://xorm.io/zh/docs/chapter-13/readme/

Issues-translate-bot commented 5 days ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


github.com/Masterminds/squirrel

I use the builder that comes with xorm, and I think they are similar. https://xorm.io/zh/docs/chapter-13/readme/