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
83c19d89
Commit
83c19d89
authored
Jul 24, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bugfix] change currentperiodbo to field period for db not has that
parent
a2f94e3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ValidationInfoMapper.java
...n/java/pwc/taxtech/atms/vat/dao/ValidationInfoMapper.java
+4
-4
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/dao/ValidationInfoMapper.java
View file @
83c19d89
...
...
@@ -137,7 +137,7 @@ public interface ValidationInfoMapper extends MyVatMapper {
@Select
(
"SELECT "
+
" vv.VID, "
+
" vv.Group, "
+
" vv.
CurrentPeriodBo
, "
+
" vv.
Period
, "
+
" vv.CustomerCode, "
+
" vv.Summary, "
+
" vv.AcctCode, "
+
...
...
@@ -149,15 +149,15 @@ public interface ValidationInfoMapper extends MyVatMapper {
" JOIN "
+
" (SELECT "
+
" v.VID, "
+
" v.
CurrentPeriodBo
, "
+
" v.
Period
, "
+
" v.Group, "
+
" MAX(v.Date) AS `Date`, "
+
" SUM(v.Debit) AS Debit, "
+
" SUM(v.Credit) AS Credit "
+
" FROM "
+
" Voucher v "
+
" GROUP BY v.VID , v.
CurrentPeriodBo
, v.Group "
+
" HAVING Debit != Credit) q ON vv.VID = q.VID AND vv.
CurrentPeriodBo = q.CurrentPeriodBo
"
+
" GROUP BY v.VID , v.
Period
, v.Group "
+
" HAVING Debit != Credit) q ON vv.VID = q.VID AND vv.
Period = q.Period
"
+
" AND vv.Group = q.Group "
+
""
)
List
<
VoucherBalanceDto
>
getSingleVoucherCheck
();
...
...
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