Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问大神,使用struct传参,xml中的动态表达式能获取匿名继承的属性吗?好像不能取到 #72

Open
kkwang1199 opened this issue Sep 24, 2022 · 2 comments

Comments

@kkwang1199
Copy link

type A struct {
	Id int `json:"id"`
}
type B struct {
	A
	Name int `json:"name"`
}

xml中
<if test="Id != null">-- 这里想要判断Id是否为空
</if>
@kkwang1199
Copy link
Author

我已找到答案,应该通过B.A.Id进行访问,感谢。
另外想问一下能支持一下打印出最终执行的带参的完整sql吗?比如传参是指针,目前的日志打印的是地址,不能看到值是什么

@bmmpp
Copy link

bmmpp commented Nov 9, 2022

我已找到答案,应该通过B.A.Id进行访问,感谢。 另外想问一下能支持一下打印出最终执行的带参的完整sql吗?比如传参是指针,目前的日志打印的是地址,不能看到值是什么

很细啊 , 还在使用吗有在生产检验过吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants