Browse Source

技淘BUG修复

anderx 7 years ago
parent
commit
78ede64bd1
1 changed files with 4 additions and 1 deletions
  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>