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

. #1

Open
youxiustar opened this issue Oct 14, 2023 · 1 comment
Open

. #1

youxiustar opened this issue Oct 14, 2023 · 1 comment

Comments

@youxiustar
Copy link

youxiustar commented Oct 14, 2023

No description provided.

@youxiustar youxiustar changed the title A questio about @mapper A question about @mapper Oct 14, 2023
@youxiustar youxiustar changed the title A question about @mapper . Oct 15, 2023
@ZongXR
Copy link
Owner

ZongXR commented Nov 11, 2023

No description provided.

You can refer the usage on test.demo.tablename_dao
When you want some type, you can use @Mapper(result_type=**) on your method.
This method returns SQL and the parameters are SQL parameters.
Don't forget import Repository on your dao package
Like test.demo.dao.init.py, you should "from flask_ssm.springframework.stereotype import Repository" to enable @Mapper decorator

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