flying-cattle / mybatis-dsc-generator Goto Github PK
View Code? Open in Web Editor NEW集成最全的代码生成工具:entity集成lombok、格式校验,swagger;dao自动加@mapper,service自动注释和依赖;Controller实现restful 增删改查API,并集成swagger。
License: Apache License 2.0
集成最全的代码生成工具:entity集成lombok、格式校验,swagger;dao自动加@mapper,service自动注释和依赖;Controller实现restful 增删改查API,并集成swagger。
License: Apache License 2.0
${idType} [in template "serviceImpl.ftl"
Java stack trace (for programmers):
1.参数提取,运行一次,生成多个表的CRUD
2.【bug】 swagger UI 上,所有新增和修改接口都没有参数输入,
重写父类insert+update方法,添加了@requestbody,datatype等,修改后
网上找的泛型方法无效
3.【bug】分页,swagger UI 上没有Example Value,
同样是重写(重写的目的:添加Example Value)
4.【bug】添加查找所有列表---根据条件查询所有列表,条件为空返回所有表数据
同样是重写(重写的目的:添加Example Value)
5.【待修复】新增和修改后返回操作的记录,
(很多场景,特别是主键自增长时新增后不知道id,这时候返回操作记录很必要)
作者可以提供一下吗
2.1和3.0的地址是一样的
mybatis-plus 是围绕实体 entity 进行生成,所以我觉得把相关的 xml 内容置空,并且增加是否覆盖的标志,之后能直接将生成器作为项目的一部分直接集成在代码中,这样即使数据增加修改字段,可以直接执行生成不需要做过多的动作。我做了点小改动。
生成的mapper没方法,只有字段,我看readme是可以生成的啊
已经解决了
Originally posted by @a870368162 in #6 (comment)
mybatis-dsc-generator/src/main/resources/freemarker/ftl/mapper.ftl
中57行,需要将
where id = ${r'#{'}id,jdbcType=${idJdbcType}}
改成
where id = ${r'#{'}id,jdbcType=${idJdbcType?upper_case}}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.