Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
91a4b126
Commit
91a4b126
authored
Apr 24, 2019
by
eddie.woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mybatis generator
parent
1957abfc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
461 additions
and
7 deletions
+461
-7
WfRecordDetailMapper.java
.../main/java/pwc/taxtech/atms/dao/WfRecordDetailMapper.java
+34
-0
WfRecordMapper.java
...ao/src/main/java/pwc/taxtech/atms/dao/WfRecordMapper.java
+34
-0
WfRecord.java
atms-dao/src/main/java/pwc/taxtech/atms/entity/WfRecord.java
+221
-0
WfRecordDetail.java
...src/main/java/pwc/taxtech/atms/entity/WfRecordDetail.java
+161
-0
WfRecordDetailExample.java
...n/java/pwc/taxtech/atms/entity/WfRecordDetailExample.java
+0
-0
WfRecordExample.java
...rc/main/java/pwc/taxtech/atms/entity/WfRecordExample.java
+0
-0
WfRecordDetailMapper.xml
...n/resources/pwc/taxtech/atms/dao/WfRecordDetailMapper.xml
+0
-0
WfRecordMapper.xml
...rc/main/resources/pwc/taxtech/atms/dao/WfRecordMapper.xml
+0
-0
MyBatisGeneratorTest.java
.../test/java/pwc/taxtech/atms/gen/MyBatisGeneratorTest.java
+1
-1
SimpleCommentGenerator.java
...est/java/pwc/taxtech/atms/gen/SimpleCommentGenerator.java
+6
-6
generator.properties
atms-dao/src/test/resources/generator.properties
+4
-0
generatorConfig.xml
atms-dao/src/test/resources/generatorConfig.xml
+0
-0
No files found.
atms-dao/src/main/java/pwc/taxtech/atms/dao/WfRecordDetailMapper.java
0 → 100644
View file @
91a4b126
package
pwc
.
taxtech
.
atms
.
dao
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
pwc.taxtech.atms.MyMapper
;
import
pwc.taxtech.atms.entity.WfRecordDetail
;
import
pwc.taxtech.atms.entity.WfRecordDetailExample
;
@Mapper
public
interface
WfRecordDetailMapper
extends
MyMapper
{
long
countByExample
(
WfRecordDetailExample
example
);
int
deleteByExample
(
WfRecordDetailExample
example
);
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
WfRecordDetail
record
);
int
insertSelective
(
WfRecordDetail
record
);
List
<
WfRecordDetail
>
selectByExample
(
WfRecordDetailExample
example
);
WfRecordDetail
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
WfRecordDetail
record
,
@Param
(
"example"
)
WfRecordDetailExample
example
);
int
updateByExample
(
@Param
(
"record"
)
WfRecordDetail
record
,
@Param
(
"example"
)
WfRecordDetailExample
example
);
int
updateByPrimaryKeySelective
(
WfRecordDetail
record
);
int
updateByPrimaryKey
(
WfRecordDetail
record
);
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/dao/WfRecordMapper.java
0 → 100644
View file @
91a4b126
package
pwc
.
taxtech
.
atms
.
dao
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
pwc.taxtech.atms.MyMapper
;
import
pwc.taxtech.atms.entity.WfRecord
;
import
pwc.taxtech.atms.entity.WfRecordExample
;
@Mapper
public
interface
WfRecordMapper
extends
MyMapper
{
long
countByExample
(
WfRecordExample
example
);
int
deleteByExample
(
WfRecordExample
example
);
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
WfRecord
record
);
int
insertSelective
(
WfRecord
record
);
List
<
WfRecord
>
selectByExample
(
WfRecordExample
example
);
WfRecord
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
WfRecord
record
,
@Param
(
"example"
)
WfRecordExample
example
);
int
updateByExample
(
@Param
(
"record"
)
WfRecord
record
,
@Param
(
"example"
)
WfRecordExample
example
);
int
updateByPrimaryKeySelective
(
WfRecord
record
);
int
updateByPrimaryKey
(
WfRecord
record
);
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/entity/WfRecord.java
0 → 100644
View file @
91a4b126
package
pwc
.
taxtech
.
atms
.
entity
;
import
java.io.Serializable
;
public
class
WfRecord
extends
BaseEntity
implements
Serializable
{
/**
*
*/
private
Long
id
;
/**
* 机构ID
*/
private
String
orgId
;
/**
* 项目ID
*/
private
Long
projectId
;
/**
* 年
*/
private
Integer
year
;
/**
* 期间
*/
private
Integer
period
;
/**
* 类型 0:通用 1:VAT 2:CIT 3:税金计算表
*/
private
Integer
type
;
/**
* ACT实例ID
*/
private
String
actInstId
;
/**
* 状态 0:审批中 1:通过 2:驳回
*/
private
Integer
status
;
/**
* 流程发起人ID
*/
private
String
uid
;
/**
* 备注
*/
private
String
comment
;
/**
* wf_record
*/
private
static
final
long
serialVersionUID
=
1L
;
/**
* @return id
*/
public
Long
getId
()
{
return
id
;
}
/**
* @param id
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* @return org_id 机构ID
*/
public
String
getOrgId
()
{
return
orgId
;
}
/**
* @param orgId 机构ID
*/
public
void
setOrgId
(
String
orgId
)
{
this
.
orgId
=
orgId
==
null
?
null
:
orgId
.
trim
();
}
/**
* @return project_id 项目ID
*/
public
Long
getProjectId
()
{
return
projectId
;
}
/**
* @param projectId 项目ID
*/
public
void
setProjectId
(
Long
projectId
)
{
this
.
projectId
=
projectId
;
}
/**
* @return year 年
*/
public
Integer
getYear
()
{
return
year
;
}
/**
* @param year 年
*/
public
void
setYear
(
Integer
year
)
{
this
.
year
=
year
;
}
/**
* @return period 期间
*/
public
Integer
getPeriod
()
{
return
period
;
}
/**
* @param period 期间
*/
public
void
setPeriod
(
Integer
period
)
{
this
.
period
=
period
;
}
/**
* @return type 类型 0:通用 1:VAT 2:CIT 3:税金计算表
*/
public
Integer
getType
()
{
return
type
;
}
/**
* @param type 类型 0:通用 1:VAT 2:CIT 3:税金计算表
*/
public
void
setType
(
Integer
type
)
{
this
.
type
=
type
;
}
/**
* @return act_inst_id ACT实例ID
*/
public
String
getActInstId
()
{
return
actInstId
;
}
/**
* @param actInstId ACT实例ID
*/
public
void
setActInstId
(
String
actInstId
)
{
this
.
actInstId
=
actInstId
==
null
?
null
:
actInstId
.
trim
();
}
/**
* @return status 状态 0:审批中 1:通过 2:驳回
*/
public
Integer
getStatus
()
{
return
status
;
}
/**
* @param status 状态 0:审批中 1:通过 2:驳回
*/
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
/**
* @return uid 流程发起人ID
*/
public
String
getUid
()
{
return
uid
;
}
/**
* @param uid 流程发起人ID
*/
public
void
setUid
(
String
uid
)
{
this
.
uid
=
uid
==
null
?
null
:
uid
.
trim
();
}
/**
* @return comment 备注
*/
public
String
getComment
()
{
return
comment
;
}
/**
* @param comment 备注
*/
public
void
setComment
(
String
comment
)
{
this
.
comment
=
comment
==
null
?
null
:
comment
.
trim
();
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", orgId="
).
append
(
orgId
);
sb
.
append
(
", projectId="
).
append
(
projectId
);
sb
.
append
(
", year="
).
append
(
year
);
sb
.
append
(
", period="
).
append
(
period
);
sb
.
append
(
", type="
).
append
(
type
);
sb
.
append
(
", actInstId="
).
append
(
actInstId
);
sb
.
append
(
", status="
).
append
(
status
);
sb
.
append
(
", uid="
).
append
(
uid
);
sb
.
append
(
", comment="
).
append
(
comment
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/entity/WfRecordDetail.java
0 → 100644
View file @
91a4b126
package
pwc
.
taxtech
.
atms
.
entity
;
import
java.io.Serializable
;
public
class
WfRecordDetail
extends
BaseEntity
implements
Serializable
{
/**
*
*/
private
Long
id
;
/**
* 工作流主表ID
*/
private
Long
recordId
;
/**
* ACT实例ID
*/
private
String
actInstId
;
/**
* ACT任务ID
*/
private
String
actTaskId
;
/**
* UID
*/
private
String
uid
;
/**
* 状态 0:审批中 1:通过 2:驳回
*/
private
Integer
status
;
/**
* 备注
*/
private
String
comment
;
/**
* wf_record_detail
*/
private
static
final
long
serialVersionUID
=
1L
;
/**
* @return id
*/
public
Long
getId
()
{
return
id
;
}
/**
* @param id
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* @return record_id 工作流主表ID
*/
public
Long
getRecordId
()
{
return
recordId
;
}
/**
* @param recordId 工作流主表ID
*/
public
void
setRecordId
(
Long
recordId
)
{
this
.
recordId
=
recordId
;
}
/**
* @return act_inst_id ACT实例ID
*/
public
String
getActInstId
()
{
return
actInstId
;
}
/**
* @param actInstId ACT实例ID
*/
public
void
setActInstId
(
String
actInstId
)
{
this
.
actInstId
=
actInstId
==
null
?
null
:
actInstId
.
trim
();
}
/**
* @return act_task_id ACT任务ID
*/
public
String
getActTaskId
()
{
return
actTaskId
;
}
/**
* @param actTaskId ACT任务ID
*/
public
void
setActTaskId
(
String
actTaskId
)
{
this
.
actTaskId
=
actTaskId
==
null
?
null
:
actTaskId
.
trim
();
}
/**
* @return uid UID
*/
public
String
getUid
()
{
return
uid
;
}
/**
* @param uid UID
*/
public
void
setUid
(
String
uid
)
{
this
.
uid
=
uid
==
null
?
null
:
uid
.
trim
();
}
/**
* @return status 状态 0:审批中 1:通过 2:驳回
*/
public
Integer
getStatus
()
{
return
status
;
}
/**
* @param status 状态 0:审批中 1:通过 2:驳回
*/
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
/**
* @return comment 备注
*/
public
String
getComment
()
{
return
comment
;
}
/**
* @param comment 备注
*/
public
void
setComment
(
String
comment
)
{
this
.
comment
=
comment
==
null
?
null
:
comment
.
trim
();
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", recordId="
).
append
(
recordId
);
sb
.
append
(
", actInstId="
).
append
(
actInstId
);
sb
.
append
(
", actTaskId="
).
append
(
actTaskId
);
sb
.
append
(
", uid="
).
append
(
uid
);
sb
.
append
(
", status="
).
append
(
status
);
sb
.
append
(
", comment="
).
append
(
comment
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/entity/WfRecordDetailExample.java
0 → 100644
View file @
91a4b126
This diff is collapsed.
Click to expand it.
atms-dao/src/main/java/pwc/taxtech/atms/entity/WfRecordExample.java
0 → 100644
View file @
91a4b126
This diff is collapsed.
Click to expand it.
atms-dao/src/main/resources/pwc/taxtech/atms/dao/WfRecordDetailMapper.xml
0 → 100644
View file @
91a4b126
This diff is collapsed.
Click to expand it.
atms-dao/src/main/resources/pwc/taxtech/atms/dao/WfRecordMapper.xml
0 → 100644
View file @
91a4b126
This diff is collapsed.
Click to expand it.
atms-dao/src/test/java/pwc/taxtech/atms/gen/MyBatisGeneratorTest.java
View file @
91a4b126
...
...
@@ -16,7 +16,7 @@ public class MyBatisGeneratorTest {
List
<
String
>
warnings
=
new
ArrayList
<>();
boolean
overwrite
=
true
;
//配置文件
// File configFile = new File(MyBatisGeneratorTest.class.getClassLoader().getResource("
g
eneratorConfig.xml").getPath());
// File configFile = new File(MyBatisGeneratorTest.class.getClassLoader().getResource("
vatG
eneratorConfig.xml").getPath());
File
configFile
=
new
File
(
MyBatisGeneratorTest
.
class
.
getClassLoader
().
getResource
(
"generatorConfig.xml"
).
getPath
());
ConfigurationParser
cp
=
new
ConfigurationParser
(
warnings
);
Configuration
config
=
cp
.
parseConfiguration
(
configFile
);
...
...
atms-dao/src/test/java/pwc/taxtech/atms/gen/SimpleCommentGenerator.java
View file @
91a4b126
...
...
@@ -201,9 +201,9 @@ public class SimpleCommentGenerator implements CommentGenerator {
method
.
addJavaDocLine
(
"/**"
);
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
" * "
);
sb
.
append
(
introspectedColumn
.
getRemarks
());
method
.
addJavaDocLine
(
sb
.
toString
());
//
sb.append(" * ");
//
sb.append(introspectedColumn.getRemarks());
//
method.addJavaDocLine(sb.toString());
sb
.
setLength
(
0
);
sb
.
append
(
" * @return "
);
...
...
@@ -226,9 +226,9 @@ public class SimpleCommentGenerator implements CommentGenerator {
method
.
addJavaDocLine
(
"/**"
);
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
" * "
);
sb
.
append
(
introspectedColumn
.
getRemarks
());
method
.
addJavaDocLine
(
sb
.
toString
());
//
sb.append(" * ");
//
sb.append(introspectedColumn.getRemarks());
//
method.addJavaDocLine(sb.toString());
Parameter
parm
=
method
.
getParameters
().
get
(
0
);
sb
.
setLength
(
0
);
...
...
atms-dao/src/test/resources/generator.properties
0 → 100644
View file @
91a4b126
jdbc.driverClass
=
com.mysql.jdbc.Driver
jdbc.connectionURL
=
jdbc:mysql://10.158.230.16:3306/tax_admin_didi?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false
jdbc.userId
=
root
jdbc.password
=
taxadmin2018
atms-dao/src/test/resources/generatorConfig.xml
0 → 100644
View file @
91a4b126
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment