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

//goodsc

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

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

@@ -18,15 +18,6 @@ public interface TtMallGoodsCategoryMapper extends CommonMapper<TtMallGoodsCateg

int insertList(List<TtMallGoodsCategory> childList);


List<TtMallGoodsCategory> findList(TtMallGoodsCategory record);

List<Integer> findIdAll(TtMallGoodsCategory record);

int updDelByIds(TtMallGoodsCategory record);

int updateFeeByIds(TtMallGoodsCategory record);



}

+ 12
- 21
mallinkService/src/main/resources/mapper/TtMallGoodsCategoryMapper.xml Просмотреть файл

@@ -63,28 +63,19 @@
</if>
</update>

<select id="findIdAll" parameterType="com.iformall.domain.po.TtMallGoodsCategory" resultType="Integer">
select id from tt_mall_goods_category
<include refid="dynamicWhereConditions" />
</select>

<update id="updDelByIds" parameterType="com.iformall.domain.po.TtMallGoodsCategory">
update tt_mall_goods_category set is_del = #{isDel}, update_date = #{updateDate}
where goods_category_id in
<foreach collection="categoryIds" index="index" item="idItem" open="(" separator="," close=")">
#{idItem}
</foreach>
</update>

<update id="updateFeeByIds" parameterType="com.iformall.domain.po.TtMallGoodsCategory">
update tt_mall_goods_category set `software_fee` = #{softwareFee}, update_date = #{updateDate}
where goods_category_id in
<foreach collection="categoryIds" index="index" item="idItem" open="(" separator="," close=")">
#{idItem}
<insert id="insertList" parameterType="java.util.List">
insert into tt_mall_goods_category
(`goods_category_id`,`tenant_id`,`parent_tenant_id`,`software_fee`, `create_date`,`update_date`)
values
<foreach collection="list" item="item" index="index" separator=",">
(#{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})
</foreach>
</update>


</insert>





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