├── .gitignore ├── .idea ├── compiler.xml ├── emacs.xml ├── kotlinc.xml ├── libraries │ ├── KotlinJavaRuntime.xml │ └── commons_lang3_3_6.xml ├── misc.xml ├── modules.xml ├── vcs.xml └── workspace.xml ├── MybatisGenerator.iml ├── MybatisGenerator.zip ├── README.md ├── _config.yml ├── lib ├── commons-lang3-3.6.jar ├── kotlin-reflect.jar ├── kotlin-stdlib-jre7-sources.jar ├── kotlin-stdlib-jre7.jar ├── kotlin-stdlib-jre8-sources.jar ├── kotlin-stdlib-jre8.jar ├── kotlin-stdlib-sources.jar ├── kotlin-stdlib.jar ├── kotlin-test.jar └── mysql-connector-java-5.1.41.jar └── src └── main ├── java └── com │ └── yangyang │ └── mybatis │ └── generator │ ├── MyConstant.kt │ ├── actions │ ├── ActionConfigPath.kt │ ├── ActionConfigureDB.kt │ ├── ActionGenerate.kt │ └── ActionGroupMybatis.kt │ └── utils │ ├── NotificationUtil.kt │ ├── PlatformUtil.kt │ ├── UIUtil.kt │ └── mybatis │ ├── MyBatisGenConst.kt │ └── MybatisCore.kt └── resources ├── META-INF └── plugin.xml ├── icons ├── ic_mybatis.png └── ic_mybatis@2x.png └── template ├── base ├── baseCriteria.txt ├── baseQuery.txt ├── criteria.txt └── pageResult.txt ├── do.txt ├── manager.txt ├── managerImpl.txt ├── mapper-ext.txt ├── mapper.txt ├── query.txt ├── sqlmap-ext.txt └── sqlmap.txt /.gitignore: -------------------------------------------------------------------------------- 1 | .classpath 2 | .project 3 | .settings/ 4 | .git/ 5 | 6 | # Mac 7 | .DS_Store 8 | # Maven 9 | log/ 10 | target/ 11 | 12 | #Intellij 13 | out/ 14 | .idea/workspace.xml -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/emacs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /.idea/kotlinc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /.idea/libraries/KotlinJavaRuntime.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /.idea/libraries/commons_lang3_3_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | sIsMHCStaff 77 | 卖好车 78 | MHC_STAFF 79 | baseQuery.txt 80 | sqlmapOutFile 81 | doOutFilePath 82 | doResult 83 | doOutFile 84 | className 85 | sqlmapResult 86 | .do 87 | /do 88 | 不替换旧文件 89 | cri 90 | BaseCriteria 91 | Criterion 92 | b2b 93 | pref 94 | getClassName 95 | managerPackagePath 96 | getclass 97 | do.. 98 | do 99 | getColInfoList 100 | pks 101 | getSqlmapParamList 102 | doTemplate 103 | doresult 104 | merge 105 | VP_LIST 106 | 107 | 108 | 152 109 | param 110 | ) 111 | sDaoPackageDir 112 | baseCriteria 113 | baseQuery 114 | 115 | 116 | 117 | 119 | 120 | 123 | 124 | 125 | 160 | 161 | 162 | 163 | 164 | true 165 | 166 | false 167 | true 168 | true 169 | 170 | 171 | true 172 | DEFINITION_ORDER 173 | 174 | 175 | 181 | 182 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | ActionScript specificJavaScript 195 | 196 | 197 | Android > Lint > Lint 198 | 199 | 200 | Batch Applications Issues 201 | 202 | 203 | Flow type checkerJavaScript 204 | 205 | 206 | GeneralJavaScript 207 | 208 | 209 | Groovy 210 | 211 | 212 | HTML 213 | 214 | 215 | J2ME issuesJava 216 | 217 | 218 | Java 219 | 220 | 221 | JavaFX 222 | 223 | 224 | JavaScript 225 | 226 | 227 | OtherGroovy 228 | 229 | 230 | Portability issuesJava 231 | 232 | 233 | Spring 234 | 235 | 236 | Spring CoreSpring 237 | 238 | 239 | Struts 240 | 241 | 242 | Struts 1Struts 243 | 244 | 245 | TypeScript 246 | 247 | 248 | Web Services 249 | 250 | 251 | XML 252 | 253 | 254 | XMLSpring CoreSpring 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 77 | select 78 | 79 | distinct 80 | 81 | 82 | from ${tableName} 83 | 84 | 85 | 86 | 87 | order by ${orderByClause} 88 | 89 | 90 | 91 | 92 | 95 | 96 | 97 | delete from ${tableName} where ${primaryKey} = #{${propPrimaryKey},jdbcType=BIGINT} 98 | 99 | 100 | 101 | delete from ${tableName} 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | SELECT LAST_INSERT_ID() 110 | 111 | insert into ${tableName} 112 | 113 | gmt_create,gmt_modified, 114 | #foreach($item in $list) 115 | 116 | ${item.columnName}, 117 | 118 | #end 119 | 120 | 121 | now(),now(), 122 | #foreach($item in $list) 123 | 124 | #{${item.propName},jdbcType=${item.jdbcType}}, 125 | 126 | #end 127 | 128 | 129 | 130 | 136 | 137 | 138 | update ${tableName} 139 | 140 | gmt_modified=now(), 141 | #foreach($item in $list) 142 | 143 | ${item.columnName} = #{record.${item.propName},jdbcType=${item.jdbcType}}, 144 | 145 | #end 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | update ${tableName} set 154 | #foreach($item in $list) 155 | ${item.columnName} = #{record.${item.propName},jdbcType=${item.jdbcType}}, 156 | #end 157 | gmt_modified = now() 158 | 159 | 160 | 161 | 162 | 163 | 164 | update ${tableName} 165 | 166 | gmt_modified=now(), 167 | #foreach($item in $list) 168 | 169 | ${item.columnName} = #{${item.propName},jdbcType=${item.jdbcType}}, 170 | 171 | #end 172 | 173 | where ${primaryKey} = #{${propPrimaryKey},jdbcType=BIGINT} 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | --------------------------------------------------------------------------------