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
dbe66483
Commit
dbe66483
authored
Jul 27, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bugfix] fix mapper multi result for select one
parent
eae05de8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
JournalEntryImportMapper.java
...va/pwc/taxtech/atms/vat/dao/JournalEntryImportMapper.java
+6
-8
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/dao/JournalEntryImportMapper.java
View file @
dbe66483
...
@@ -43,7 +43,6 @@ public interface JournalEntryImportMapper extends MyVatMapper {
...
@@ -43,7 +43,6 @@ public interface JournalEntryImportMapper extends MyVatMapper {
"WHERE "
+
"WHERE "
+
" 1 = 1 "
+
" 1 = 1 "
+
" AND `ImportType` = #{importType} AND `Period` = #{period} "
+
" AND `ImportType` = #{importType} AND `Period` = #{period} "
+
" ORDER BY `Period`,`Group`,`VID`,`ItemID`"
+
" LIMIT #{start},#{size}"
+
" LIMIT #{start},#{size}"
+
"</script>"
)
"</script>"
)
List
<
Voucher
>
pageQuery
(
@Param
(
"importType"
)
int
code
,
@Param
(
"period"
)
int
periodId
,
@Param
(
"start"
)
int
start
,
List
<
Voucher
>
pageQuery
(
@Param
(
"importType"
)
int
code
,
@Param
(
"period"
)
int
periodId
,
@Param
(
"start"
)
int
start
,
...
@@ -61,14 +60,13 @@ public interface JournalEntryImportMapper extends MyVatMapper {
...
@@ -61,14 +60,13 @@ public interface JournalEntryImportMapper extends MyVatMapper {
Integer
pageQueryCount
(
@Param
(
"importType"
)
int
code
,
@Param
(
"period"
)
int
periodId
);
Integer
pageQueryCount
(
@Param
(
"importType"
)
int
code
,
@Param
(
"period"
)
int
periodId
);
@Select
(
"<script>"
+
@Select
(
"<script>"
+
"SELECT "
+
"
SELECT "
+
"
COUNT
(1) "
+
"
count
(1) "
+
"FROM "
+
"FROM "
+
" Voucher "
+
" (SELECT DISTINCT "
+
"WHERE "
+
" VID , `Group`, Period "
+
" 1 = 1"
+
" FROM "
+
" AND `ImportType` = #{importType} AND `Period` = #{period}"
+
" Voucher WHERE AND `ImportType` = #{importType} AND `Period` = #{period}) as temp"
+
" GROUP BY `VID` ,`Group`,`Period`"
+
"</script>"
)
"</script>"
)
Integer
pageVIDCount
(
@Param
(
"importType"
)
int
code
,
@Param
(
"period"
)
int
periodId
);
Integer
pageVIDCount
(
@Param
(
"importType"
)
int
code
,
@Param
(
"period"
)
int
periodId
);
}
}
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