Commit 2cec36d3 authored by libin's avatar libin

核销批量插入

parent ff4a5ebd
...@@ -19,10 +19,13 @@ public class TourGoodVerificationBiz extends BaseBiz<TourGoodVerificationMapper, ...@@ -19,10 +19,13 @@ public class TourGoodVerificationBiz extends BaseBiz<TourGoodVerificationMapper,
//删除线路核销 //删除线路核销
public void delGoodVerification(List<Integer> ids){ mapper.delVerification(ids);} public void delGoodVerification(List<Integer> ids){ mapper.delVerification(ids);}
//批量新增 /**
* 批量插入核销
* @param tourGoodVerifications
*/
public void addBathTourGoodVerification(List<TourGoodVerification> tourGoodVerifications){ public void addBathTourGoodVerification(List<TourGoodVerification> tourGoodVerifications){
for (TourGoodVerification tourGoodVerification:tourGoodVerifications){
mapper.insertTourGoodVerification(tourGoodVerification);
}
} }
} }
\ No newline at end of file
...@@ -2,6 +2,7 @@ package com.xxfc.platform.tour.mapper; ...@@ -2,6 +2,7 @@ package com.xxfc.platform.tour.mapper;
import com.xxfc.platform.tour.entity.TourGoodVerification; import com.xxfc.platform.tour.entity.TourGoodVerification;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper; import tk.mybatis.mapper.common.Mapper;
...@@ -18,5 +19,13 @@ public interface TourGoodVerificationMapper extends Mapper<TourGoodVerification> ...@@ -18,5 +19,13 @@ public interface TourGoodVerificationMapper extends Mapper<TourGoodVerification>
//删除线路核销 //删除线路核销
public int delVerification( @Param("list") List<Integer> ids); 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);
} }
...@@ -28,5 +28,4 @@ ...@@ -28,5 +28,4 @@
) )
</if> </if>
</update> </update>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment