Explorar o código

技淘BUG修复

anderx %!s(int64=7) %!d(string=hai) anos
pai
achega
78ede64bd1
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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" >
       <if test="costEscrow != null" >
         cost_escrow = #{costEscrow,jdbcType=DECIMAL},
         cost_escrow = #{costEscrow,jdbcType=DECIMAL},
       </if>
       </if>
-      <if test="budgetCost != null" >
+      <if test="budgetCost != null budgetCost != '' " >
         budget_cost = #{budgetCost,jdbcType=DECIMAL},
         budget_cost = #{budgetCost,jdbcType=DECIMAL},
       </if>
       </if>
+      <if test="budgetCost == ''" >
+        budget_cost = null,
+      </if>
       <if test="validityPeriod != null" >
       <if test="validityPeriod != null" >
         validity_period = #{validityPeriod,jdbcType=TIMESTAMP},
         validity_period = #{validityPeriod,jdbcType=TIMESTAMP},
       </if>
       </if>