Explorar el Código

修复OGNL对字符串和数字进行值类型转换问题

cgp hace 2 días
padre
commit
7a6fd86050

+ 2 - 2
fs-service/src/main/resources/mapper/hisStore/FsStoreProductScrmMapper.xml

@@ -324,7 +324,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="isAudit != null and isAudit != ''">#{isAudit} ,</if>
             <if test="storeId != null and storeId != ''">#{storeId} ,</if>
             <if test="erpType != null and storeId != ''">#{erpType} ,</if>
-            <if test="isGift != null ">is_gift = #{isGift},</if>
+            <if test="isGift != null ">#{isGift},</if>
          </trim>
     </insert>
 
@@ -394,7 +394,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="isAudit != null and isAudit != ''">is_audit = #{isAudit} ,</if>
             <if test="storeId != null and storeId != ''">store_id = #{storeId} ,</if>
             <if test="erpType != null and erpType != ''">erp_type = #{erpType} ,</if>
-            <if test="isGift != null and isGift != ''">is_gift = #{isGift} ,</if>
+            <if test="isGift != null">is_gift = #{isGift} ,</if>
 
         </trim>
         where product_id = #{productId}