Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
zhoujh@polysoft.com.cn
/
nafmii-parent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c472fedc
authored
Apr 22, 2021
by
zhoujinghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
首次提交
1 parent
48224cfc
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
6 deletions
nafmii-mbg/pom.xml
nafmii-mbg/src/main/java/com/macro/mall/CommentGenerator.java → nafmii-mbg/src/main/java/org/nafmii/nafmiimbg/CommentGenerator.java
nafmii-mbg/src/main/java/org/nafmii/nafmiimbg/mapper/TStudentMapper.java
nafmii-mbg/src/main/java/org/nafmii/nafmiimbg/model/TStudent.java
nafmii-mbg/src/main/resources/generatorConfig.xml
nafmii-mbg/src/main/resources/org/nafmii/nafmiimbg/mapper/TStudentMapper.xml
nafmii-mbg/pom.xml
View file @
c472fed
...
...
@@ -35,6 +35,14 @@
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.mybatis
</groupId>
<artifactId>
mybatis
</artifactId>
</dependency>
<dependency>
<groupId>
com.github.xiaoymin
</groupId>
<artifactId>
knife4j-micro-spring-boot-starter
</artifactId>
</dependency>
</dependencies>
<build>
...
...
nafmii-mbg/src/main/java/
com/macro/mall
/CommentGenerator.java
→
nafmii-mbg/src/main/java/
org/nafmii/nafmiimbg
/CommentGenerator.java
View file @
c472fed
package
com
.
macro
.
mall
;
package
org
.
nafmii
.
nafmiimbg
;
import
org.mybatis.generator.api.IntrospectedColumn
;
import
org.mybatis.generator.api.IntrospectedTable
;
...
...
nafmii-mbg/src/main/java/org/nafmii/nafmiimbg/mapper/TStudentMapper.java
0 → 100644
View file @
c472fed
package
org
.
nafmii
.
nafmiimbg
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
import
org.nafmii.nafmiimbg.model.TStudent
;
import
org.nafmii.nafmiimbg.model.TStudentExample
;
public
interface
TStudentMapper
{
long
countByExample
(
TStudentExample
example
);
int
deleteByExample
(
TStudentExample
example
);
int
deleteByPrimaryKey
(
Integer
id
);
int
insert
(
TStudent
record
);
int
insertSelective
(
TStudent
record
);
List
<
TStudent
>
selectByExample
(
TStudentExample
example
);
TStudent
selectByPrimaryKey
(
Integer
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
TStudent
record
,
@Param
(
"example"
)
TStudentExample
example
);
int
updateByExample
(
@Param
(
"record"
)
TStudent
record
,
@Param
(
"example"
)
TStudentExample
example
);
int
updateByPrimaryKeySelective
(
TStudent
record
);
int
updateByPrimaryKey
(
TStudent
record
);
}
\ No newline at end of file
nafmii-mbg/src/main/java/org/nafmii/nafmiimbg/model/TStudent.java
View file @
c472fed
package
org
.
nafmii
.
nafmiimbg
.
model
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
java.util.Date
;
public
class
TStudent
implements
Serializable
{
//
@ApiModelProperty(value = "id")
@ApiModelProperty
(
value
=
"id"
)
private
Integer
id
;
private
String
name
;
...
...
nafmii-mbg/src/main/resources/generatorConfig.xml
View file @
c472fed
...
...
@@ -15,7 +15,7 @@
<plugin
type=
"org.mybatis.generator.plugins.ToStringPlugin"
/>
<!--生成mapper.xml时覆盖原文件-->
<plugin
type=
"org.mybatis.generator.plugins.UnmergeableXmlMappersPlugin"
/>
<commentGenerator
type=
"
com.macro.mall
.CommentGenerator"
>
<commentGenerator
type=
"
org.nafmii.nafmiimbg
.CommentGenerator"
>
<!-- 是否去除自动生成的注释 true:是 : false:否 -->
<property
name=
"suppressAllComments"
value=
"true"
/>
<property
name=
"suppressDate"
value=
"true"
/>
...
...
@@ -34,8 +34,8 @@
<sqlMapGenerator
targetPackage=
"org.nafmii.nafmiimbg.mapper"
targetProject=
"nafmii-mbg\src\main\resources"
/>
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"
com.macro.mall
.mapper"
targetProject=
"
mall
-mbg\src\main\java"
/>
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"
org.nafmii.nafmiimbg
.mapper"
targetProject=
"
nafmii
-mbg\src\main\java"
/>
<!--生成全部表tableName设为%-->
<table
tableName=
"%"
>
<!--<generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
...
...
nafmii-mbg/src/main/resources/org/nafmii/nafmiimbg/mapper/TStudentMapper.xml
View file @
c472fed
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"
com.macro.mall
.mapper.TStudentMapper"
>
<mapper
namespace=
"
org.nafmii.nafmiimbg
.mapper.TStudentMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"org.nafmii.nafmiimbg.model.TStudent"
>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment