32 lines
1.7 KiB
XML
32 lines
1.7 KiB
XML
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||
|
|
<mapper namespace="com.hzs.member.account.mapper.CuMemberTradeBonusMapper">
|
||
|
|
|
||
|
|
<!-- 通用查询映射结果 -->
|
||
|
|
<resultMap id="CuMemberTradeBonus" type="com.hzs.common.domain.member.account.CuMemberTradeBonus">
|
||
|
|
<id column="PK_ID" property="pkId" />
|
||
|
|
<result column="DEL_FLAG" property="delFlag" />
|
||
|
|
<result column="PK_COUNTRY" property="pkCountry" />
|
||
|
|
<result column="CREATION_TIME" property="creationTime" />
|
||
|
|
<result column="MODIFIED_TIME" property="modifiedTime" />
|
||
|
|
<result column="PK_CREATOR" property="pkCreator" />
|
||
|
|
<result column="PK_MODIFIED" property="pkModified" />
|
||
|
|
<result column="PK_MEMBER" property="pkMember" />
|
||
|
|
<result column="CONSUME_TYPE" property="consumeType" />
|
||
|
|
<result column="PK_ORDER" property="pkOrder" />
|
||
|
|
<result column="PK_TRADE_DETAIL" property="pkTradeDetail" />
|
||
|
|
<result column="CONSUME_MONEY" property="consumeMoney" />
|
||
|
|
<result column="CASH_MONEY" property="cashMoney" />
|
||
|
|
</resultMap>
|
||
|
|
<insert id="batchInsertCuMemberTradeBonus">
|
||
|
|
insert ALL
|
||
|
|
<foreach item="item" index="index" collection="cuMemberTradeBonusList" separator=" " >
|
||
|
|
into cu_member_trade_bonus(PK_MEMBER,CONSUME_TYPE,PK_ORDER,PK_TRADE_DETAIL,CONSUME_MONEY,CASH_MONEY,PK_COUNTRY,PK_CREATOR) values
|
||
|
|
(#{item.pkMember},#{item.consumeType},#{item.pkOrder,jdbcType=INTEGER},#{item.pkTradeDetail,jdbcType=INTEGER},#{item.consumeMoney,jdbcType=NUMERIC},
|
||
|
|
#{item.cashMoney,jdbcType=NUMERIC},#{item.pkCountry},#{item.pkCreator})
|
||
|
|
</foreach>
|
||
|
|
SELECT 1 FROM dual
|
||
|
|
</insert>
|
||
|
|
|
||
|
|
</mapper>
|