From 546ee62e38a348d8cc82527d736e3474fb559d35 Mon Sep 17 00:00:00 2001 From: xhxu Date: Wed, 22 Feb 2023 15:05:14 +0800 Subject: [PATCH] //goodsc --- .../mapper/TtMallGoodsCategoryMapper.java | 9 ----- .../mapper/TtMallGoodsCategoryMapper.xml | 33 +++++++------------ 2 files changed, 12 insertions(+), 30 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/mapper/TtMallGoodsCategoryMapper.java b/mallinkService/src/main/java/com/iformall/mapper/TtMallGoodsCategoryMapper.java index 263f3c4c7..48e0e9ae0 100644 --- a/mallinkService/src/main/java/com/iformall/mapper/TtMallGoodsCategoryMapper.java +++ b/mallinkService/src/main/java/com/iformall/mapper/TtMallGoodsCategoryMapper.java @@ -18,15 +18,6 @@ public interface TtMallGoodsCategoryMapper extends CommonMapper childList); - List findList(TtMallGoodsCategory record); - List findIdAll(TtMallGoodsCategory record); - - int updDelByIds(TtMallGoodsCategory record); - - int updateFeeByIds(TtMallGoodsCategory record); - - - } diff --git a/mallinkService/src/main/resources/mapper/TtMallGoodsCategoryMapper.xml b/mallinkService/src/main/resources/mapper/TtMallGoodsCategoryMapper.xml index 41df734b8..871b67ea2 100644 --- a/mallinkService/src/main/resources/mapper/TtMallGoodsCategoryMapper.xml +++ b/mallinkService/src/main/resources/mapper/TtMallGoodsCategoryMapper.xml @@ -63,28 +63,19 @@ - - - - update tt_mall_goods_category set is_del = #{isDel}, update_date = #{updateDate} - where goods_category_id in - - #{idItem} - - - - - update tt_mall_goods_category set `software_fee` = #{softwareFee}, update_date = #{updateDate} - where goods_category_id in - - #{idItem} + + insert into tt_mall_goods_category + (`goods_category_id`,`tenant_id`,`parent_tenant_id`,`software_fee`, `create_date`,`update_date`) + values + + (#{item.goodsCategoryId,jdbcType=INTEGER}, + #{item.tenantId,jdbcType=VARCHAR}, + #{item.parentTenantId,jdbcType=VARCHAR}, + #{item.software_fee,jdbcType=INTEGER}, + #{item.createDate,jdbcType=TIMESTAMP}, + #{item.updateDate,jdbcType=TIMESTAMP}) - - - +