瀏覽代碼

技淘BUG修复

anderx 7 年之前
父節點
當前提交
78ede64bd1
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/main/java/com/goafanti/common/mapper/DemandMapper.xml

+ 4 - 1
src/main/java/com/goafanti/common/mapper/DemandMapper.xml

@@ -415,9 +415,12 @@
       <if test="costEscrow != null" >
         cost_escrow = #{costEscrow,jdbcType=DECIMAL},
       </if>
-      <if test="budgetCost != null" >
+      <if test="budgetCost != null budgetCost != '' " >
         budget_cost = #{budgetCost,jdbcType=DECIMAL},
       </if>
+      <if test="budgetCost == ''" >
+        budget_cost = null,
+      </if>
       <if test="validityPeriod != null" >
         validity_period = #{validityPeriod,jdbcType=TIMESTAMP},
       </if>