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
16b1e5c8
Commit
16b1e5c8
authored
Oct 08, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bugfix] fixed datasource query xml join two table with projecti d
parent
832950c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
PeriodDataSourceExtendsMapper.xml
...ch/atms/vat/dao/extends/PeriodDataSourceExtendsMapper.xml
+5
-3
No files found.
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/extends/PeriodDataSourceExtendsMapper.xml
View file @
16b1e5c8
...
@@ -35,15 +35,17 @@
...
@@ -35,15 +35,17 @@
JOIN
JOIN
PERIOD_CELL_DATA_SOURCE CDS
PERIOD_CELL_DATA_SOURCE CDS
ON
ON
DS.ID = CDS.DATA_SOURCE
_ID
DS.ID = CDS.DATA_SOURCE_ID AND DS.PROJECT_ID=CDS.PROJECT
_ID
JOIN
JOIN
PERIOD_CELL_DATA CD
PERIOD_CELL_DATA CD
ON
ON
CDS.CELL_DATA_ID = CD.ID
CDS.CELL_DATA_ID = CD.ID
AND CDS.PROJECT_ID=CD.PROJECT_ID
JOIN
JOIN
PERIOD_REPORT RPT
PERIOD_REPORT RPT
ON
ON
CD.REPORT_ID= RPT.ID
CD.REPORT_ID= RPT.ID
AND CD.PROJECT_ID=RPT.PROJECT_ID
WHERE
WHERE
CD.REPORT_ID = #{reportID,jdbcType=BIGINT}
CD.REPORT_ID = #{reportID,jdbcType=BIGINT}
...
@@ -75,7 +77,7 @@
...
@@ -75,7 +77,7 @@
JOIN
JOIN
PERIOD_DATA_SOURCE DS
PERIOD_DATA_SOURCE DS
ON
ON
CDS.DATA_SOURCE_ID = DS.ID
CDS.DATA_SOURCE_ID = DS.ID
AND CDS.PROJECT_ID = DS.PROJECT_ID
WHERE
WHERE
DS.TYPE = 10
DS.TYPE = 10
AND CDS.CELL_DATA_ID = #{cellDataID,jdbcType=BIGINT}
AND CDS.CELL_DATA_ID = #{cellDataID,jdbcType=BIGINT}
...
@@ -109,7 +111,7 @@
...
@@ -109,7 +111,7 @@
JOIN
JOIN
PERIOD_CELL_DATA_SOURCE CELLDATASOURCE
PERIOD_CELL_DATA_SOURCE CELLDATASOURCE
ON
ON
CELLDATA.ID = CELLDATASOURCE.CELL_DATA_ID
CELLDATA.ID = CELLDATASOURCE.CELL_DATA_ID
AND CELLDATA.PROJECT_ID = CELLDATASOURCE.PROJECT_ID
WHERE
WHERE
CELLDATASOURCE.DATA_SOURCE_ID = #{dataSourceID,jdbcType=BIGINT} LIMIT 1
CELLDATASOURCE.DATA_SOURCE_ID = #{dataSourceID,jdbcType=BIGINT} LIMIT 1
</select>
</select>
...
...
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