소스 검색

技淘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>