使用gorm是可以这样的:当使用struct查询时,GORM只对非零字段进行查询,也就是说如果你的字段的值是0,'',false或其他零值,它将不会被用来建立查询条件。 如果我使用gen的写法支持吗?

Comment From: github-actions[bot]

The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking

Comment From: li-jin-gou

我认为这个 issue 应该提在 gen 的仓库下. ❤️