anderx лет назад: 7
Родитель
Сommit
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>