浏览代码

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

hurugang 3 年之前
父节点
当前提交
b44e916cd1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/cn/hnthyy/thmz/mapper/his/mz/MzChargeDetailMapper.java

+ 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>",