| @@ -85,7 +85,7 @@ | |||||
| <insert id="insertList" parameterType="java.util.List"> | <insert id="insertList" parameterType="java.util.List"> | ||||
| insert into wx_offline_activity_grant_item | insert into wx_offline_activity_grant_item | ||||
| (id,tenant_id,parent_tenant_id, | |||||
| (id, | |||||
| grant_id,activity_id,activity_name, | grant_id,activity_id,activity_name, | ||||
| activity_item_id,activity_item_name,activity_item_type, | activity_item_id,activity_item_name,activity_item_type, | ||||
| award_itam_id,award_name,award_grade, | award_itam_id,award_name,award_grade, | ||||
| @@ -95,7 +95,7 @@ | |||||
| create_date,update_date) | create_date,update_date) | ||||
| values | values | ||||
| <foreach collection="grantItemList" item="item" index="index" separator=","> | <foreach collection="grantItemList" item="item" index="index" separator=","> | ||||
| (#{item.id,jdbcType=BIGINT},#{item.tenantId,jdbcType=VARCHAR},#{item.parentTenantId,jdbcType=VARCHAR}, | |||||
| (#{item.id,jdbcType=BIGINT}, | |||||
| #{item.grantId,jdbcType=BIGINT},#{item.activityId,jdbcType=BIGINT},#{item.activityName,jdbcType=VARCHAR}, | #{item.grantId,jdbcType=BIGINT},#{item.activityId,jdbcType=BIGINT},#{item.activityName,jdbcType=VARCHAR}, | ||||
| #{item.activityItemId,jdbcType=BIGINT},#{item.activityItemName,jdbcType=VARCHAR},#{item.activityItemType,jdbcType=INTEGER}, | #{item.activityItemId,jdbcType=BIGINT},#{item.activityItemName,jdbcType=VARCHAR},#{item.activityItemType,jdbcType=INTEGER}, | ||||
| #{item.awardItamId,jdbcType=BIGINT},#{item.awardName,jdbcType=VARCHAR},#{item.awardGrade,jdbcType=INTEGER}, | #{item.awardItamId,jdbcType=BIGINT},#{item.awardName,jdbcType=VARCHAR},#{item.awardGrade,jdbcType=INTEGER}, | ||||
| @@ -103,7 +103,7 @@ | |||||
| <insert id="insertList" parameterType="java.util.List"> | <insert id="insertList" parameterType="java.util.List"> | ||||
| insert into wx_offline_activity_grant_settlement | insert into wx_offline_activity_grant_settlement | ||||
| (id,tenant_id,parent_tenant_id, | |||||
| (id, | |||||
| record_id,order_no,order_money, | record_id,order_no,order_money, | ||||
| merchant_id,activity_id,activity_item_id, | merchant_id,activity_id,activity_item_id, | ||||
| award_itam_id,grant_id,grant_price, | award_itam_id,grant_id,grant_price, | ||||
| @@ -112,7 +112,7 @@ | |||||
| create_date,update_date) | create_date,update_date) | ||||
| values | values | ||||
| <foreach collection="settlementList" item="item" index="index" separator=","> | <foreach collection="settlementList" item="item" index="index" separator=","> | ||||
| (#{item.id,jdbcType=BIGINT},#{item.tenantId,jdbcType=VARCHAR},#{item.parentTenantId,jdbcType=VARCHAR}, | |||||
| (#{item.id,jdbcType=BIGINT}, | |||||
| #{item.recordId,jdbcType=BIGINT},#{item.orderNo,jdbcType=VARCHAR},#{item.orderMoney,jdbcType=DECIMAL}, | #{item.recordId,jdbcType=BIGINT},#{item.orderNo,jdbcType=VARCHAR},#{item.orderMoney,jdbcType=DECIMAL}, | ||||
| #{item.merchantId,jdbcType=BIGINT},#{item.activityId,jdbcType=BIGINT},#{item.activityItemId,jdbcType=BIGINT}, | #{item.merchantId,jdbcType=BIGINT},#{item.activityId,jdbcType=BIGINT},#{item.activityItemId,jdbcType=BIGINT}, | ||||
| #{item.awardItamId,jdbcType=BIGINT},#{item.grantId,jdbcType=BIGINT},#{item.grantPrice,jdbcType=DECIMAL}, | #{item.awardItamId,jdbcType=BIGINT},#{item.grantId,jdbcType=BIGINT},#{item.grantPrice,jdbcType=DECIMAL}, | ||||
| @@ -24,12 +24,10 @@ | |||||
| <insert id="insertList" parameterType="java.util.List"> | <insert id="insertList" parameterType="java.util.List"> | ||||
| insert into wx_offline_activity_record_grant | insert into wx_offline_activity_record_grant | ||||
| (`tenant_id`,`parent_tenant_id`,`activity_id`,`record_id`,`grant_id`) | |||||
| (`activity_id`,`record_id`,`grant_id`) | |||||
| values | values | ||||
| <foreach collection="recordGrantList" item="item" index="index" separator=","> | <foreach collection="recordGrantList" item="item" index="index" separator=","> | ||||
| (#{item.tenantId,jdbcType=VARCHAR}, | |||||
| #{item.parentTenantId,jdbcType=VARCHAR}, | |||||
| #{item.activityId,jdbcType=BIGINT}, | |||||
| (#{item.activityId,jdbcType=BIGINT}, | |||||
| #{item.recordId,jdbcType=BIGINT}, | #{item.recordId,jdbcType=BIGINT}, | ||||
| #{item.grantId,jdbcType=BIGINT}) | #{item.grantId,jdbcType=BIGINT}) | ||||
| </foreach> | </foreach> | ||||