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
0e617b1c
Commit
0e617b1c
authored
Jun 01, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEV] use mybaties gen Project group files
parent
fc780606
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
170 additions
and
0 deletions
+170
-0
generatorConfig.xml
atms-api/etc/generator/generatorConfig.xml
+5
-0
ProjectMapper.java
...api/src/main/java/pwc/taxtech/atms/dao/ProjectMapper.java
+165
-0
Project.java
atms-api/src/main/java/pwc/taxtech/atms/entitiy/Project.java
+0
-0
ProjectExample.java
...rc/main/java/pwc/taxtech/atms/entitiy/ProjectExample.java
+0
-0
ProjectMapper.xml
...src/main/resources/pwc/taxtech/atms/dao/ProjectMapper.xml
+0
-0
No files found.
atms-api/etc/generator/generatorConfig.xml
View file @
0e617b1c
...
...
@@ -395,5 +395,9 @@
<columnOverride
column=
"IsManualChange"
javaType=
"Boolean"
/>
<columnOverride
column=
"Instructions"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
</table>
<table
tableName=
"Project"
domainObjectName=
"Project"
>
<property
name=
"useActualColumnNames"
value=
"true"
/>
<property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/>
</table>
</context>
</generatorConfiguration>
\ No newline at end of file
atms-api/src/main/java/pwc/taxtech/atms/dao/ProjectMapper.java
0 → 100644
View file @
0e617b1c
package
pwc
.
taxtech
.
atms
.
dao
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
org.apache.ibatis.session.RowBounds
;
import
pwc.taxtech.atms.MyMapper
;
import
pwc.taxtech.atms.dto.taxadmin.ProjectDisplayDto
;
import
pwc.taxtech.atms.entitiy.Project
;
import
pwc.taxtech.atms.entitiy.ProjectExample
;
@Mapper
public
interface
ProjectMapper
extends
MyMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Project
*
* @mbg.generated
*/
long
countByExample
(
ProjectExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Project
*
* @mbg.generated
*/
int
deleteByExample
(
ProjectExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Project
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
String
ID
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Project
*
* @mbg.generated
*/
int
insert
(
Project
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Project
*
* @mbg.generated
*/
int
insertSelective
(
Project
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Project
*
* @mbg.generated
*/
List
<
Project
>
selectByExampleWithRowbounds
(
ProjectExample
example
,
RowBounds
rowBounds
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Project
*
* @mbg.generated
*/
List
<
Project
>
selectByExample
(
ProjectExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Project
*
* @mbg.generated
*/
Project
selectByPrimaryKey
(
String
ID
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Project
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
Project
record
,
@Param
(
"example"
)
ProjectExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Project
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
Project
record
,
@Param
(
"example"
)
ProjectExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Project
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
Project
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Project
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
Project
record
);
@Select
(
"<script>"
+
"SELECT "
+
" p.CreateTime AS CreateTime, "
+
" p.IsActive AS IsActive, "
+
" p.OrganizationID AS OrganizationID, "
+
" p.Name AS Name, "
+
" p.Code AS Code, "
+
" p.ID AS ID, "
+
" p.IndustryID AS IndustryID, "
+
" p.Year AS Year, "
+
" p.RegionID AS RegionID, "
+
" region.ShortName AS RegionName, "
+
" p.RuleType AS RuleType, "
+
" projectServiceType.ServiceTypeID AS ServiceTypeID, "
+
" p.UpdateTime AS UpdateTime, "
+
" serviceType.Name AS ServiceTypeName, "
+
" organization.Name AS OrganizationName, "
+
" industry.Name AS IndustryName, "
+
" projectServiceType.TemplateGroupID AS TemplateGroupID, "
+
" templateGroup.Name AS TemplateGroupName, "
+
" p.ClientCode AS ClientCode, "
+
" p.DbName AS DbName, "
+
" TRUE AS HaveCreateProject, "
+
" p.EnterpriseAccountSetID AS EnterpriseAccountSetID, "
+
" p.StartPeriod AS StartPeriod, "
+
" p.EndPeriod AS EndPeriod "
+
"FROM "
+
" Project p "
+
" JOIN "
+
" Organization org ON p.OrganizationID = org.ID "
+
" JOIN "
+
" ProjectServiceType projectServiceType ON p.ID = projectServiceType.ProjectID "
+
" JOIN "
+
" Organization organization ON p.OrganizationID = organization.ID "
+
" JOIN "
+
" ServiceType serviceType ON projectServiceType.ServiceTypeID = serviceType.ID "
+
" JOIN "
+
" Industry industry ON p.IndustryID = industry.ID "
+
" JOIN "
+
" TemplateGroup templateGroup ON projectServiceType.TemplateGroupID = templateGroup.ID "
+
" JOIN "
+
" Region region ON p.RegionID = region.ID "
+
" JOIN "
+
" EnterpriseAccountSetOrg enterOrg ON p.EnterpriseAccountSetID = enterOrg.EnterpriseAccountSetID "
+
" <where>"
+
" p.IsActive=1 and serviceType.isActive=1 and p.OrganizationID = enterOrg.OrganizationID"
+
" <if test=\"orgID != null and orgID !='' \">AND org.ID=#{orgID}</if>"
+
" <if test=\"serverID != null and serverID !='' \">AND p.serviceType=#{serverID}</if>"
+
" <if test=\"projectYear != null\">AND p.Year=#{projectYear}</if>"
+
" </where>"
+
"</script>"
)
List
<
ProjectDisplayDto
>
getProjectList
(
@Param
(
"orgID"
)
String
orgID
,
@Param
(
"serverID"
)
String
serviceID
,
@Param
(
"projectYear"
)
Integer
projectYear
);
}
\ No newline at end of file
atms-api/src/main/java/pwc/taxtech/atms/entitiy/Project.java
0 → 100644
View file @
0e617b1c
This diff is collapsed.
Click to expand it.
atms-api/src/main/java/pwc/taxtech/atms/entitiy/ProjectExample.java
0 → 100644
View file @
0e617b1c
This diff is collapsed.
Click to expand it.
atms-api/src/main/resources/pwc/taxtech/atms/dao/ProjectMapper.xml
0 → 100644
View file @
0e617b1c
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