Просмотр исходного кода

//CouponMerchant

release_toaliyun_real
xhxu 3 лет назад
Родитель
Сommit
e9b2f82317
2 измененных файлов: 2 добавлений и 3 удалений
  1. +1
    -0
      mallinkService/src/main/java/com/iformall/mapper/WxCouponMerchantMapper.java
  2. +1
    -3
      mallinkService/src/main/resources/mapper/WxCouponMerchantMapper.xml

+ 1
- 0
mallinkService/src/main/java/com/iformall/mapper/WxCouponMerchantMapper.java Просмотреть файл

@@ -28,5 +28,6 @@ public interface WxCouponMerchantMapper extends CommonMapper<WxCouponMerchant, L

int updateStatus(@Param("tenantId")String tenantId, @Param("productId")Long couponId, @Param("merchantIdList")List<Long> merchantIds,@Param("status")Integer status);

//自动加tenent
int insertList(@Param("addList")List<WxCouponMerchant> addList);
}

+ 1
- 3
mallinkService/src/main/resources/mapper/WxCouponMerchantMapper.xml Просмотреть файл

@@ -207,12 +207,10 @@

<insert id="insertList" parameterType="java.util.List">
insert into wx_coupon_merchant
(`id`,`tenant_id`,`parent_tenant_id`,`product_id`,`merchant_id`,`parameter`,`create_date`,`update_date`,`status`)
(`id`,`product_id`,`merchant_id`,`parameter`,`create_date`,`update_date`,`status`)
values
<foreach collection="addList" item="item" index="index" separator=",">
(#{item.id,jdbcType=BIGINT},
/*#{item.tenantId,jdbcType=VARCHAR},
#{item.parentTenantId,jdbcType=VARCHAR},*/
#{item.productId,jdbcType=BIGINT},
#{item.merchantId,jdbcType=BIGINT},
#{item.parameter,jdbcType=VARCHAR},


Загрузка…
Отмена
Сохранить