Prechádzať zdrojové kódy

解决同一就诊次数有多个缴费次数时更新错误

hurugang 3 rokov pred
rodič
commit
b44e916cd1

+ 1 - 1
src/main/java/cn/hnthyy/thmz/mapper/his/mz/MzChargeDetailMapper.java

@@ -500,7 +500,7 @@ public interface MzChargeDetailMapper {
      */
     @Update({"<script>",
             "update mz_charge_detail ",
-            "<trim prefix='set' prefixOverrides=',' suffix=' where patient_id = #{patientId} and times=#{times} and charge_item_code=#{chargeItemCode,jdbcType=CHAR} and order_no = #{orderNo} and  item_no=#{itemNo} ' >",
+            "<trim prefix='set' prefixOverrides=',' suffix=' where patient_id = #{patientId} and times=#{times} and receipt_no=#{receiptNo} and charge_item_code=#{chargeItemCode,jdbcType=CHAR} and order_no = #{orderNo} and  item_no=#{itemNo} ' >",
             "<when test='serialNo!=null'>",
             "serial_no =#{serialNo,jdbcType=INTEGER}",
             "</when>",