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

fix: api layer can not get autofill primary key in automatically gene… #1384

Merged
merged 1 commit into from Mar 25, 2023

Conversation

dy033
Copy link
Contributor

@dy033 dy033 commented Mar 22, 2023

在自动生成的代码中,只有service层的方法里面的局部变量调用时才能拿到主键回填的值,有的时候api层需要调用创建方法后使用主键回填的值再进行下一步操作,这个时候如果没有注意修改service层的创建方法的话,api层调用service层的创建方法传入的对象的值一直为0

@songzhibin97
Copy link
Member

LGTM

1 similar comment
@SliverHorn
Copy link
Member

LGTM

@piexlmax piexlmax merged commit 496bce9 into flipped-aurora:main Mar 25, 2023
8 checks passed
Stephen-Z pushed a commit to Stephen-Z/gin-vue-admin that referenced this pull request Jul 12, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants