Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
2cec36d3
Commit
2cec36d3
authored
Jun 14, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
核销批量插入
parent
ff4a5ebd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
TourGoodVerificationBiz.java
...a/com/xxfc/platform/tour/biz/TourGoodVerificationBiz.java
+7
-4
TourGoodVerificationMapper.java
...xxfc/platform/tour/mapper/TourGoodVerificationMapper.java
+10
-1
TourGoodVerificationMapper.xml
.../src/main/resources/mapper/TourGoodVerificationMapper.xml
+0
-1
No files found.
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourGoodVerificationBiz.java
View file @
2cec36d3
...
...
@@ -19,10 +19,13 @@ public class TourGoodVerificationBiz extends BaseBiz<TourGoodVerificationMapper,
//删除线路核销
public
void
delGoodVerification
(
List
<
Integer
>
ids
){
mapper
.
delVerification
(
ids
);}
//批量新增
/**
* 批量插入核销
* @param tourGoodVerifications
*/
public
void
addBathTourGoodVerification
(
List
<
TourGoodVerification
>
tourGoodVerifications
){
for
(
TourGoodVerification
tourGoodVerification:
tourGoodVerifications
){
mapper
.
insertTourGoodVerification
(
tourGoodVerification
);
}
}
}
\ No newline at end of file
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/mapper/TourGoodVerificationMapper.java
View file @
2cec36d3
...
...
@@ -2,6 +2,7 @@ package com.xxfc.platform.tour.mapper;
import
com.xxfc.platform.tour.entity.TourGoodVerification
;
import
org.apache.ibatis.annotations.Insert
;
import
org.apache.ibatis.annotations.Param
;
import
tk.mybatis.mapper.common.Mapper
;
...
...
@@ -18,5 +19,13 @@ public interface TourGoodVerificationMapper extends Mapper<TourGoodVerification>
//删除线路核销
public
int
delVerification
(
@Param
(
"list"
)
List
<
Integer
>
ids
);
/**
* 保存线路核销
* @param tourGoodVerification
* @return
*/
@Insert
(
"tour_good_verification(`spe_id`,`site_id`,`good_id`)values(#{speId} ,#{siteId} ,#{goodId}) where `spe_id`<>#{spId} and `site_id`<>#{siteId} and `good_id`<>#{goodId}"
)
int
insertTourGoodVerification
(
TourGoodVerification
tourGoodVerification
);
}
xx-tour/xx-tour-server/src/main/resources/mapper/TourGoodVerificationMapper.xml
View file @
2cec36d3
...
...
@@ -28,5 +28,4 @@
)
</if>
</update>
</mapper>
\ No newline at end of file
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