fix: api layer can not get autofill primary key in automatically gene… #1384
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在自动生成的代码中,只有service层的方法里面的局部变量调用时才能拿到主键回填的值,有的时候api层需要调用创建方法后使用主键回填的值再进行下一步操作,这个时候如果没有注意修改service层的创建方法的话,api层调用service层的创建方法传入的对象的值一直为0