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
a1cb888d
Commit
a1cb888d
authored
Sep 21, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev] change get project from count sql erro
parent
5d0c7966
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
41 deletions
+41
-41
ProjectMapper.java
...dao/src/main/java/pwc/taxtech/atms/dao/ProjectMapper.java
+41
-41
No files found.
atms-dao/src/main/java/pwc/taxtech/atms/dao/ProjectMapper.java
View file @
a1cb888d
...
...
@@ -174,51 +174,51 @@ public interface ProjectMapper extends MyMapper {
List
<
ProjectStatusManage
>
getProjectSatusListByDbName
(
String
dbName
);
@Select
(
"<script>"
+
"SELECT "
+
"
now() AS CreateTime,
"
+
"
TRUE AS IsActive,
"
+
" org.id AS OrganizationID, "
+
" org.Name AS Name, "
+
" org.Code AS Code, "
+
"
UUID() AS id,
"
+
" org.Industry
ID AS IndustryID,
"
+
" 0 AS Year, "
+
" org.REGION_ID AS RegionID, "
+
" 0 AS RuleType, "
+
" st.id AS ServiceTypeID, "
+
" reg.Short
Name AS RegionName,
"
+
"
now() AS UpdateTime,
"
+
" st.Name AS ServiceTypeName, "
+
" org.Name AS OrganizationName, "
+
" ind.Name AS IndustryName, "
+
" ostg.TEMPLATE_GROUP_ID AS TemplateGroupID, "
+
" '' AS TemplateGroupName, "
+
" org.Client
Code AS ClientCode,
"
+
" '' AS DbName, "
+
"
FALSE AS HaveCreateProject,
"
+
" ea.Enterprise
AccountSetID AS EnterpriseAccountSetID,
"
+
" 1 AS StartPeriod, "
+
" 12 AS EndPeriod, "
+
" ea.EFFECTIVE_DATE AS EffectiveDate, "
+
" ea.EXPIRED_DATE AS ExpiredDate "
+
"FROM "
+
" ORGANIZATION org "
+
" JOIN "
+
" ENTERPRISE_ACCOUNT_SET_ORG ea ON org.id = ea.Organization
ID
"
+
" JOIN "
+
" ORG
ANIZATION_SERVICE_TEMPLATE_GROUP ostg ON org.id = ostg.ORGANIZATION_ID
"
+
" JOIN "
+
" SERVICE_TYPE st ON ostg.SERVICE_TYPE_ID = st.id "
+
" JOIN "
+
" INDUSTRY ind ON org.Industry
ID = ind.id
"
+
" JOIN "
+
" REGION reg ON org.Region
ID = reg.id
"
+
"SELECT
"
+
"
SYSDATE AS CreateTime,
"
+
"
1 AS IsActive,
"
+
" org.id AS OrganizationID,
"
+
" org.Name AS Name,
"
+
" org.Code AS Code,
"
+
"
SYS_GUID() AS id,
"
+
" org.Industry
_ID AS IndustryID,
"
+
" 0 AS Year,
"
+
" org.REGION_ID AS RegionID,
"
+
" 0 AS RuleType,
"
+
" st.id AS ServiceTypeID,
"
+
" reg.Short
_Name AS RegionName,
"
+
"
SYSDATE AS UpdateTime,
"
+
" st.Name AS ServiceTypeName,
"
+
" org.Name AS OrganizationName,
"
+
" ind.Name AS IndustryName,
"
+
" ostg.TEMPLATE_GROUP_ID AS TemplateGroupID,
"
+
" '' AS TemplateGroupName,
"
+
" org.Client
_Code AS ClientCode,
"
+
" '' AS DbName,
"
+
"
0 AS HaveCreateProject,
"
+
" ea.Enterprise
_Account_Set_ID AS EnterpriseAccountSetID,
"
+
" 1 AS StartPeriod,
"
+
" 12 AS EndPeriod,
"
+
" ea.EFFECTIVE_DATE AS EffectiveDate,
"
+
" ea.EXPIRED_DATE AS ExpiredDate
"
+
"FROM
"
+
" ORGANIZATION org
"
+
" JOIN
"
+
" ENTERPRISE_ACCOUNT_SET_ORG ea ON org.id = ea.Organization
_ID
"
+
" JOIN
"
+
" ORG
_SERVICE_TEMPLATE_GROUP ostg ON org.id = ostg.ORGANIZATION_ID
"
+
" JOIN
"
+
" SERVICE_TYPE st ON ostg.SERVICE_TYPE_ID = st.id
"
+
" JOIN
"
+
" INDUSTRY ind ON org.Industry
_ID = ind.id
"
+
" JOIN
"
+
" REGION reg ON org.Region
_ID = reg.id
"
+
"WHERE "
+
" 1=1"
+
" <if test=\"orgI
D != null and orgID
!='' \">AND org.id=#{orgId}</if>"
+
" <if test=\"orgI
d != null and orgId
!='' \">AND org.id=#{orgId}</if>"
+
" AND org.IsActive = 1 "
+
" AND st.IsActive = 1 "
+
" <if test=\"serviceI
D != null and serviceID !='' \">AND ostg.ServiceType
ID=#{serviceId}</if>"
+
" <if test=\"serviceI
d != null and serviceId !='' \">AND ostg.Service_Type_
ID=#{serviceId}</if>"
+
"ORDER BY ea.EFFECTIVE_DATE,org.Code"
+
"</script>"
)
List
<
ProjectDisplayDto
>
getProjectFromEnterpriseAccountSetOrg
(
@Param
(
"orgId"
)
String
orgId
,
@Param
(
"serviceId"
)
String
serviceId
);
...
...
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