Skip to content

Commit

Permalink
add all images.
Browse files Browse the repository at this point in the history
  • Loading branch information
gejun123456 committed Sep 23, 2024
1 parent b89e83e commit 51481d5
Show file tree
Hide file tree
Showing 51 changed files with 289 additions and 159 deletions.
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Mybatis xml代码格式化(2.8.2)| ✘ |✔
## 联系我
- 加入qq群 由于Intellij插件市场需要两天审核 插件的bug修复 最新版本 会先放在qq群中 出现任何问题可在qq群反馈

![qqGroup](https://images.brucege.com/qq5New.png)
![qqGroup](https://newimages.brucege.com/qq5New.png)
2群: 914051156 (人满)
3群:598080979 (人满)
4群:232578741 (人满)
Expand All @@ -83,7 +83,7 @@ Mybatis xml代码格式化(2.8.2)| ✘ |✔

- 或者添加我的微信:

![weichaturl](https://images.brucege.com/wechatme.png)
![weichaturl](https://newimages.brucege.com/wechatme.png)

该项目使用了或参考了以下项目:

Expand Down
2 changes: 1 addition & 1 deletion docs/activate.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
请联系微信gejun12311来进行离线激活,将插件离线激活里面的唯一码和购买的在线激活码发给他

## mac无法激活,Permission denied
![noPermission](https://images.brucege.com/noPermission.png)
![noPermission](https://newimages.brucege.com/noPermission.png)
请使用 cd ~ 然后 sudo chmod 777 .config 即可
6 changes: 3 additions & 3 deletions docs/annotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@


### IDEA新版本会自动配置过java类@Select等的language injection配置,需要禁用掉,否则会导致在#{}中没有代码提示
![removeInjection](https://images.brucege.com/removeInjection.png)
![removeInjection](https://newimages.brucege.com/removeInjection.png)

### 使用注解需要先打开配置

![annotationSupport](https://images.brucege.com/annotationSupport.jpg)
![annotationSupport](https://newimages.brucege.com/annotationSupport.jpg)

### 支持注解的代码提示
![annotationHighlight](https://images.brucege.com/annotationHighlight.jpg)
![annotationHighlight](https://newimages.brucege.com/annotationHighlight.jpg)


## 不足
Expand Down
6 changes: 3 additions & 3 deletions docs/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ IDEA社区版支持
https://www.bilibili.com/video/BV1PF411U797

## 代码生成
![generate code](https://images.brucege.com/communityGenerateCode.png)
![generate code](https://newimages.brucege.com/communityGenerateCode.png)

## 代码提示等
![code complete](https://images.brucege.com/communityCodeCompletion.png)
![code complete](https://newimages.brucege.com/communityCodeCompletion.png)

## 注意需要配置xml文件夹和数据库schema的映射关系后才能有代码提示
![config](https://images.brucege.com/configConnectionAndSchema.png)
![config](https://newimages.brucege.com/configConnectionAndSchema.png)

需要先安装DatabaseHelper插件 然后安装群文件中的MybatisCodeHelperPro插件

Expand Down
6 changes: 3 additions & 3 deletions docs/company.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
## 购买插件
1. 在网站上购买 https://plugins.jetbrains.com/plugin/14522-mybatiscodehelperpro-marketplace-edition-/pricing#tabs
2. 公司内使用的话请购买For organizations版本
![forOgan](https://images.brucege.com/forOrgan.png)
![forOgan](https://newimages.brucege.com/forOrgan.png)

## 如何激活
1. 网址 https://account.jetbrains.com/licenses 可以查看激活信息
2. Help -> Register -> find MybatisCodeHelperPro-MarketPlace Edition 使用用户名密码可以激活
3. 或者进行离线激活 https://account.jetbrains.com/licenses 网站可以下载离线激活码

![offlineCode](https://images.brucege.com/offlineForMarketPlace.png)
![activateMarketPlace](https://images.brucege.com/activateMarketPlace.png)
![offlineCode](https://newimages.brucege.com/offlineForMarketPlace.png)
![activateMarketPlace](https://newimages.brucege.com/activateMarketPlace.png)


## 注意
Expand Down
12 changes: 6 additions & 6 deletions docs/complete.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## mybatis param的自动补全
![betterParamAutoComplete](https://images.brucege.com/betterParamAutoComplete.gif)
![betterParamAutoComplete](https://newimages.brucege.com/betterParamAutoComplete.gif)

## mybatis param检测是否正确
![检测param是否正确](https://images.brucege.com/检测param是否正确.gif)
![检测param是否正确](https://newimages.brucege.com/检测param是否正确.gif)

## property refid resultMap等的自动补全
![autoCompleteForPropertyResultMapEct](https://images.brucege.com/autoCompleteForPropertyResultMapEct.gif)
![autoCompleteForPropertyResultMapEct](https://newimages.brucege.com/autoCompleteForPropertyResultMapEct.gif)


## 任意位置的sql的自动补全 识别include trim where set 等mybatis的标签
Expand All @@ -14,14 +14,14 @@
插件优化了这块,可以让Intellij正确识别这些标签 正确解析sql语法

trim标签
![trim标签正确性检测](https://images.brucege.com/trim标签正确性检测.gif)
![trim标签正确性检测](https://newimages.brucege.com/trim标签正确性检测.gif)

set标签
![set标签正确性](https://images.brucege.com/set标签正确性.gif)
![set标签正确性](https://newimages.brucege.com/set标签正确性.gif)

解析sql的正确性 需要先配置下

![databaseConfig](https://images.brucege.com/configDatabase.png)
![databaseConfig](https://newimages.brucege.com/configDatabase.png)



Expand Down
10 changes: 5 additions & 5 deletions docs/configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
- 配置数据库 数据库名一定要填 数据库无法连接请切换驱动的版本
- 当库里面有多个schema时,每个schema都要配置一遍。比如 mysql localhost:3306 里面有多个库时,需要在idea配置多个,而不是一个选多个schema

![configureDatabase](https://images.brucege.com/configureDatabase.png)
![configureDatabase](https://newimages.brucege.com/configureDatabase.png)

- 配置当前项目对应的数据库类型(达梦数据库请配置为GenericSql字段便可自动提示,或者本地装一个oracle把表拷过去 这样一些函数也能自动提示) 另外mysql如果是mariadb一定要配置为mariadb

![databaseConfig](https://images.brucege.com/configDatabase.png)
![databaseConfig](https://newimages.brucege.com/configDatabase.png)

- 配置插件方法名生成对应的数据库

![configPluginDatabase2](https://images.brucege.com/configPluginDatabase2.png)
![configPluginDatabase2](https://newimages.brucege.com/configPluginDatabase2.png)

- 使用 postgresql,oracle,sqlserver,或者多个数据库有相同表名时需要配置 resolution scope,解析范围

需要先反选 All,再选自己对应的库,或者按你的xml对应的文件夹路径来选择
![resolutionScope](https://images.brucege.com/resolutionScope.png)
![resolutionScope](https://newimages.brucege.com/resolutionScope.png)


## 配置好后的效果

![writeSql](https://images.brucege.com/writeSql.gif)
![writeSql](https://newimages.brucege.com/writeSql.gif)
4 changes: 2 additions & 2 deletions docs/contactMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- 加入qq群 由于Intellij插件市场需要两天审核 插件的bug修复 最新版本 会先放在qq群中 出现任何问题可在qq群反馈

[![加入QQ5群](https://img.shields.io/badge/chat-QQ群-46BC99.svg?style=flat-square)](https://qm.qq.com/q/dYYkYSpLoW)
![qqGroup](https://images.brucege.com/qq5New.png)
![qqGroup](https://newimages.brucege.com/qq5New.png)
2群: 914051156 (人满)
3群:598080979 (人满)
4群:232578741 (人满)
Expand All @@ -13,7 +13,7 @@

- 或者添加我的微信:

![weichaturl](https://images.brucege.com/wechatme.png)
![weichaturl](https://newimages.brucege.com/wechatme.png)


- 或者发邮件给我
Expand Down
6 changes: 3 additions & 3 deletions docs/damengsupport.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
## 新方法(推荐)
使用达梦官方的驱动
然后在驱动的options中配置dialect为oracle
![damengDialect](https://images.brucege.com/damengdialect.png)
![damengDialect](https://newimages.brucege.com/damengdialect.png)

然后可以配置resolutionScope到对应的数据库上:
![resolutionScopedamgn](https://images.brucege.com/damengResolutionScope.png)
![resolutionScopedamgn](https://newimages.brucege.com/damengResolutionScope.png)

sqlDialect也设置为oracle

Expand All @@ -22,7 +22,7 @@ sqlDialect也设置为oracle

### 人大金仓也是类似的,驱动dialect配置为postgresql,设置中dialect配置为postgresql即可

![damgnresult](https://images.brucege.com/damengFinalResult.png)
![damgnresult](https://newimages.brucege.com/damengFinalResult.png)

## 老方法 部分不能识别

Expand Down
10 changes: 5 additions & 5 deletions docs/databaseToCrud.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 使用Intellij自带的datasource来生成 最简单的从数据库生成代码

![intellijDatasourceGenerateCrud](https://images.brucege.com/databaseCrud.gif)
![intellijDatasourceGenerateCrud](https://newimages.brucege.com/databaseCrud.gif)

选定了module后 插件会自动配置好java model folder, java mapper folder 以及 resource folder 一般不需要修改

Expand All @@ -13,11 +13,11 @@
可生成service 生成到通用mapper及mybatisplus

## 支持定制列 配置column和java映射关系,typeHandler配置
![customizedColumns](https://images.brucege.com/customizedColumns.png)
![customizedColumns](https://newimages.brucege.com/customizedColumns.png)


## 支持配置typemapper 配置表字段类型与java类型的映射关系
![typeMappSettins](https://images.brucege.com/typeMapperSettings.png)
![typeMappSettins](https://newimages.brucege.com/typeMapperSettings.png)



Expand All @@ -32,10 +32,10 @@

## IDEA社区版可以使用添加的datasource来生成 (目前支持mysql oracle postgresql sqlserver myql支持5.5及以上 oracle支持oracle10g及以上 postgresql sqlserver支持最新版,老版本未测试 有问题请联系我)

![mybatis-database-generator](https://images.brucege.com/configDatabaseToUseMybatisGenerator.gif)
![mybatis-database-generator](https://newimages.brucege.com/configDatabaseToUseMybatisGenerator.gif)

## 如何配置

一般只用配置下包名 就可以使用了
![mybatis-database-generator](https://images.brucege.com/DatabaseGenerateSetting.png)
![mybatis-database-generator](https://newimages.brucege.com/DatabaseGenerateSetting.png)

4 changes: 2 additions & 2 deletions docs/donate.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
推荐金额20元,可以加备注和链接显示在下面的捐助列表中,或者捐助后联系我微信来加


<img src="https://images.brucege.com/zhifubao.png" width="200">
<img src="https://images.brucege.com/weixinpay2.png" width="200">
<img src="https://newimages.brucege.com/zhifubao.png" width="200">
<img src="https://newimages.brucege.com/weixinpay2.png" width="200">

### 捐助人如下:
2 changes: 1 addition & 1 deletion docs/en/sqlred.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Add ignore comment
### for ${} statement, the part can be any string, the sql can't be recognized. The plugin introduced $sql commment, you can add your real sql into the $sql comment to make sql correct. Sql statement after ${} can be recognized.

add real sql for ${} expression
![parse$byXmlTagComment](https://images.brucege.com/parse$byXmlTagComment.gif)
![parse$byXmlTagComment](https://newimages.brucege.com/parse$byXmlTagComment.gif)

(Add sql representation for $ statement))
![AddSqlAfter$](https://raw.githubusercontent.com/gejun123456/MyBatisCodeHelper-Pro/master/screenshots/AddSqlAfter$.gif)
2 changes: 1 addition & 1 deletion docs/en/typeSafe.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ for ${} statement, the part can be any string, the sql can't be recognized. The
![AddSqlAfter$](https://raw.githubusercontent.com/gejun123456/MyBatisCodeHelper-Pro/master/screenshots/add$sql.gif)

or add real sql for ${} expression
![parse$byXmlTagComment](https://images.brucege.com/parse$byXmlTagComment.gif)
![parse$byXmlTagComment](https://newimages.brucege.com/parse$byXmlTagComment.gif)

foreach collection

Expand Down
10 changes: 5 additions & 5 deletions docs/formatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
插件的代码格式化支持mybatis标签,if test等ognl表达式

例子:
![selectformat](https://images.brucege.com/selectformat.gif)
![selectformat](https://newimages.brucege.com/selectformat.gif)

![insertSelectiveReformat](https://images.brucege.com/insertSelectiveReformat.gif)
![insertSelectiveReformat](https://newimages.brucege.com/insertSelectiveReformat.gif)

![findByAllReformat](https://images.brucege.com/findByAllReformat.gif)
![findByAllReformat](https://newimages.brucege.com/findByAllReformat.gif)

![ognlReformat](https://images.brucege.com/ognlReformat.gif)
![ognlReformat](https://newimages.brucege.com/ognlReformat.gif)


![complexSqlReformat](https://images.brucege.com/complexSqlReformat.gif)
![complexSqlReformat](https://newimages.brucege.com/complexSqlReformat.gif)
10 changes: 5 additions & 5 deletions docs/generateByTemplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ github:https://github.com/gejun123456/EasyCodeMybatisCodeHelperTemplates 下载
直接把模版文件拷到项目的easyCode目录或者Scratches And Consoles的/extensions/EasyCode到来生成代码,写模版有代码提示,可以实时预览模版,直接在idea编辑器操作模版

或者可以从json导入老模版
![importToScratch](https://images.brucege.com/importToScratch.png)
![importToScratch](https://newimages.brucege.com/importToScratch.png)

模版预览:
![scratchGenerate](https://images.brucege.com/scrachGenerate.gif)
![scratchGenerate](https://newimages.brucege.com/scrachGenerate.gif)

生成代码,在idea的数据库表上,可以选多张表生成:
![generateFromScratch](https://images.brucege.com/generateFromScratch.png)
![generateFromScratch](https://newimages.brucege.com/generateFromScratch.png)

目前支持项目的easyCode目录或者scratch目录下的/extensions/EasyCode目录进行识别生成代码

Expand All @@ -27,8 +27,8 @@ github:https://github.com/gejun123456/EasyCodeMybatisCodeHelperTemplates 下载
### 怎么从之前用设置配置的模版导入到 从easycode文件目录生成代码
先将之前设置配置的本地导出到json,再从json导入到scratch那个,导入到scratch后 就可以直接复制easyCode文件夹到项目的根目录,
https://github.com/gejun123456/EasyCodeMybatisCodeHelperTemplates 弄一个group.json放在easyCode目录下就可以生成代码了
![exportAndImport](https://images.brucege.com/exportAndImport.png)
![fromScratch](https://images.brucege.com/scratchTemplateGenerate.png)
![exportAndImport](https://newimages.brucege.com/exportAndImport.png)
![fromScratch](https://newimages.brucege.com/scratchTemplateGenerate.png)

### group.json 做啥用的
group.json是配置关联关系的,模版和globalConfig和typeMapper都是多对多的关系通过配置json的group名来进行区分,一个项目可以有多个生成组
Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
// }
// ads: [
// {
// img: 'https://images.brucege.com/request2.svg',
// img: 'https://newimages.brucege.com/request2.svg',
// href: 'https://api-buddy.com?utm_source=MybatisCodeHelperPro&utm_campaign=product'
// },{
//
Expand All @@ -66,9 +66,9 @@
o.doneEach((function() {
const d = document.querySelector(".sidebar-nav");
var i = document.createElement("div");
i.innerHTML = `<a target='_blank' href='https://api-buddy.com?utm_source=MybatisCodeHelperPro&utm_medium=affiliate&utm_campaign=product'><img src='https://images.brucege.com/request2.svg' style="width: 220px;height:50px"/></a>`;
i.innerHTML = `<a target='_blank' href='https://api-buddy.com?utm_source=MybatisCodeHelperPro&utm_medium=affiliate&utm_campaign=product'><img src='https://newimages.brucege.com/request2.svg' style="width: 220px;height:50px"/></a>`;
var i2 = document.createElement("div");
i2.innerHTML = `<a target='_blank' href='https://plugins.jetbrains.com/plugin/9360-generateallsetter'><img src='https://images.brucege.com/GenerateAllSetter.png' style="width:220px;height:50px"/></a>`;
i2.innerHTML = `<a target='_blank' href='https://plugins.jetbrains.com/plugin/9360-generateallsetter'><img src='https://newimages.brucege.com/GenerateAllSetter.png' style="width:220px;height:50px"/></a>`;
var i3 = document.createElement("div");
i3.innerHTML = `<a href="/doc/#/contactMe" style="float: right;text-decoration: none;">成为赞助者</a>`;
d.insertBefore(i3, d.firstChild),
Expand Down
12 changes: 6 additions & 6 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## 安装
----

### 插件可能会和其他的mybatis插件冲突,如 mybatisX,freeMybatisPlugin,mybatisPlugin,ToolKit.(mybatisLogPlugin没有冲突),如果发现比如方法名生成sql找不到对应的xml文件等,请先卸载掉其他的mybatis插件 然后使用 invalidate Cache and restart. https://images.brucege.com/invalidateCacheAndRestart.png
### 插件可能会和其他的mybatis插件冲突,如 mybatisX,freeMybatisPlugin,mybatisPlugin,ToolKit.(mybatisLogPlugin没有冲突),如果发现比如方法名生成sql找不到对应的xml文件等,请先卸载掉其他的mybatis插件 然后使用 invalidate Cache and restart. https://newimages.brucege.com/invalidateCacheAndRestart.png



Expand Down Expand Up @@ -30,10 +30,10 @@
### 激活码激活

- 未激活时IDEA打开项目时会有一个通知 在IDEA的eventLog可以找到 上面有一个一个register的按钮 点击按钮 输入激活码即可
![register](https://images.brucege.com/register_new.gif)
![register](https://newimages.brucege.com/register_new.gif)

- 或者可以在设置界面激活
![registerInSetting](https://images.brucege.com/activateNew.png)
![registerInSetting](https://newimages.brucege.com/activateNew.png)

在线激活使用onlineActivation 无法联网的机器使用offlineActivation.

Expand All @@ -49,8 +49,8 @@

#### 请将离线激活里面的唯一码,还有购买的在线激活码发送给微信gejun12311,唯一码可以在idea设置 other mybatisCodeHelper拖最下面有个激活按钮找到
#### https://brucege.com/keys 可以将线激活码转为离线激活码
![offline](https://images.brucege.com/offlineActivateNew.png)
![weichaturl](https://images.brucege.com/wechatme.png)
![offline](https://newimages.brucege.com/offlineActivateNew.png)
![weichaturl](https://newimages.brucege.com/wechatme.png)


## 查询激活码
Expand All @@ -60,5 +60,5 @@
## 解绑

- 购买后会发两个激活码,可以在两台设备上绑定,一个激活码绑定一个设备。当更新机器或者重装系统时需要解绑。可进行下图的操作
![unBind](https://images.brucege.com/unBind.png)
![unBind](https://newimages.brucege.com/unBind.png)
或者使用网页http://brucege.com/keys 来解绑
2 changes: 1 addition & 1 deletion docs/javaToCrud.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## 根据java对象一键生成建表语句
### 2.6版本已废弃掉java类生成crud功能,只支持java类生成建表sql语句,在创建完表后 从数据库进行生成,从数据库生成功能更多 数据库添加字段等更新也更方便

![generateCreateTable](https://images.brucege.com/generateCreateTable.gif)
![generateCreateTable](https://newimages.brucege.com/generateCreateTable.gif)

## 使用方法

Expand Down
2 changes: 1 addition & 1 deletion docs/join.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ List<AWithB> AJoinB();
在xml编辑器里面右键选择 generateJoin 即可

最终生成截图 (2.7.6)
![multipleTableJoin](https://images.brucege.com/multipleTableJoin.gif)
![multipleTableJoin](https://newimages.brucege.com/multipleTableJoin.gif)

使用该功能生成目前有一个要求 中需要有BaseResultMap存在,这样插件可以找到表名 (可以通过表上右键mybatis generator左下角预览xml弄到BaseResultMap带有表名)

Expand Down
Loading

0 comments on commit 51481d5

Please sign in to comment.