|
@@ -142,18 +142,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
insert into goods_info
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="name != null and name != ''">name,</if>
|
|
|
+ <if test="nameEn != null and nameEn != ''">name_en,</if>
|
|
|
<if test="companyId != null ">company_id,</if>
|
|
|
<if test="typeId != null ">type_id,</if>
|
|
|
<if test="price != null ">price,</if>
|
|
|
<if test="cover != null and cover != ''">cover,</if>
|
|
|
<if test="slideshow != null and slideshow != ''">slideshow,</if>
|
|
|
<if test="des != null and des != ''">des,</if>
|
|
|
+ <if test="desEn != null and desEn != ''">des_en,</if>
|
|
|
<if test="delivery != null and delivery != ''">delivery,</if>
|
|
|
+ <if test="deliveryEn != null and deliveryEn != ''">delivery_en,</if>
|
|
|
<if test="producedTime != null ">produced_time,</if>
|
|
|
<if test="producedAddress != null and producedAddress != ''">produced_address,</if>
|
|
|
+ <if test="producedAddressEn != null and producedAddressEn != ''">produced_address_en,</if>
|
|
|
<if test="warehouseAddress != null and warehouseAddress != ''">warehouse_address,</if>
|
|
|
+ <if test="warehouseAddressEn != null and warehouseAddressEn != ''">warehouse_address_en,</if>
|
|
|
<if test="weight != null and weight != ''">weight,</if>
|
|
|
<if test="material != null and material != ''">material,</if>
|
|
|
+ <if test="materialEn != null and materialEn != ''">material_en,</if>
|
|
|
<if test="putawayFlag != null and putawayFlag != ''">putaway_flag,</if>
|
|
|
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
|
|
<if test="createTime != null ">create_time,</if>
|
|
@@ -165,18 +171,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
|
+ <if test="nameEn != null and nameEn != ''">#{nameEn},</if>
|
|
|
<if test="companyId != null ">#{companyId},</if>
|
|
|
<if test="typeId != null ">#{typeId},</if>
|
|
|
<if test="price != null ">#{price},</if>
|
|
|
<if test="cover != null and cover != ''">#{cover},</if>
|
|
|
<if test="slideshow != null and slideshow != ''">#{slideshow},</if>
|
|
|
<if test="des != null and des != ''">#{des},</if>
|
|
|
+ <if test="desEn != null and desEn != ''">#{desEn},</if>
|
|
|
<if test="delivery != null and delivery != ''">#{delivery},</if>
|
|
|
+ <if test="deliveryEn != null and deliveryEn != ''">#{deliveryEn},</if>
|
|
|
<if test="producedTime != null ">#{producedTime},</if>
|
|
|
<if test="producedAddress != null and producedAddress != ''">#{producedAddress},</if>
|
|
|
+ <if test="producedAddressEn != null and producedAddressEn != ''">#{producedAddressEn},</if>
|
|
|
<if test="warehouseAddress != null and warehouseAddress != ''">#{warehouseAddress},</if>
|
|
|
+ <if test="warehouseAddressEn != null and warehouseAddressEn != ''">#{warehouseAddressEn},</if>
|
|
|
<if test="weight != null and weight != ''">#{weight},</if>
|
|
|
<if test="material != null and material != ''">#{material},</if>
|
|
|
+ <if test="materialEn != null and materialEn != ''">#{materialEn},</if>
|
|
|
<if test="putawayFlag != null and putawayFlag != ''">#{putawayFlag},</if>
|
|
|
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
|
|
<if test="createTime != null ">#{createTime},</if>
|
|
@@ -192,6 +204,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
update goods_info
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="name != null and name != ''">name = #{name},</if>
|
|
|
+ <if test="nameEn != null and nameEn != ''">name_en = #{nameEn},</if>
|
|
|
<if test="companyId != null ">company_id = #{companyId},</if>
|
|
|
<if test="typeId != null ">type_id = #{typeId},</if>
|
|
|
<if test="price != null ">price = #{price},</if>
|
|
@@ -199,11 +212,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="slideshow != null and slideshow != ''">slideshow = #{slideshow},</if>
|
|
|
<if test="des != null and des != ''">des = #{des},</if>
|
|
|
<if test="delivery != null and delivery != ''">delivery = #{delivery},</if>
|
|
|
+ <if test="deliveryEn != null and deliveryEn != ''">delivery_en = #{deliveryEn},</if>
|
|
|
<if test="producedTime != null ">produced_time = #{producedTime},</if>
|
|
|
<if test="producedAddress != null and producedAddress != ''">produced_address = #{producedAddress},</if>
|
|
|
+ <if test="producedAddressEn != null and producedAddressEn != ''">produced_address_en = #{producedAddressEn},</if>
|
|
|
<if test="warehouseAddress != null and warehouseAddress != ''">warehouse_address = #{warehouseAddress},</if>
|
|
|
+ <if test="warehouseAddressEn != null and warehouseAddressEn != ''">warehouse_address_en = #{warehouseAddressEn},</if>
|
|
|
<if test="weight != null and weight != ''">weight = #{weight},</if>
|
|
|
<if test="material != null and material != ''">material = #{material},</if>
|
|
|
+ <if test="materialEn != null and materialEn != ''">material_en = #{materialEn},</if>
|
|
|
<if test="putawayFlag != null and putawayFlag != ''">putaway_flag = #{putawayFlag},</if>
|
|
|
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
|
|
<if test="createTime != null ">create_time = #{createTime},</if>
|