mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-02 13:07:57 +08:00
订单分账记录
This commit is contained in:
@@ -1,5 +1,14 @@
|
|||||||
package com.jsowell.pile.mapper;
|
package com.jsowell.pile.mapper;
|
||||||
|
|
||||||
|
import com.jsowell.pile.domain.OrderSplitRecord;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public interface OrderSplitRecordMapper {
|
public interface OrderSplitRecordMapper {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量保存订单拆分记录
|
||||||
|
*/
|
||||||
|
int batchInsert(@Param("list") List<OrderSplitRecord> orderSplitRecords);
|
||||||
}
|
}
|
||||||
@@ -29,4 +29,19 @@
|
|||||||
create_time, update_by, update_time, del_flag
|
create_time, update_by, update_time, del_flag
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
insert into order_split_record
|
||||||
|
(`status`, order_code, settle_amount, adapay_member_id, payment_id, payment_confirm_id, electricity_split_ratio,
|
||||||
|
electricity_split_amount, service_split_ratio, service_split_amount, remark, create_by)
|
||||||
|
values
|
||||||
|
<foreach collection="list" item="item" separator=",">
|
||||||
|
(#{item.status,jdbcType=VARCHAR}, #{item.orderCode,jdbcType=VARCHAR}, #{item.settleAmount,jdbcType=DECIMAL},
|
||||||
|
#{item.adapayMemberId,jdbcType=VARCHAR}, #{item.paymentId,jdbcType=VARCHAR}, #{item.paymentConfirmId,jdbcType=VARCHAR},
|
||||||
|
#{item.electricitySplitRatio,jdbcType=DECIMAL}, #{item.electricitySplitAmount,jdbcType=DECIMAL},
|
||||||
|
#{item.serviceSplitRatio,jdbcType=DECIMAL}, #{item.serviceSplitAmount,jdbcType=DECIMAL}, #{item.remark,jdbcType=VARCHAR},
|
||||||
|
#{item.createBy,jdbcType=VARCHAR})
|
||||||
|
</foreach>
|
||||||
|
</insert>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user