|
|
|
@@ -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> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|