LIJU 2 月之前
父节点
当前提交
90431d42ca

+ 10 - 2
src/main/java/cn/hnthyy/thmz/mapper/his/yb/SelinfoSoldMapper.java

@@ -4,6 +4,7 @@ import cn.hnthyy.thmz.entity.yb.SelinfoSold;
 import cn.hnthyy.thmz.vo.MzDrugWinVo;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Select;
 
 import java.util.List;
@@ -13,10 +14,17 @@ public interface SelinfoSoldMapper extends BaseMapper<SelinfoSold> {
 
     @Insert("insert into selinfo_sold_drugtrac(id,selinfo_sold_id,trac_codg,success_flag)" +
             " values(#{id,jdbcType=VARCHAR},#{selinfoSoldId,jdbcType=VARCHAR},#{tracCodg,jdbcType=VARCHAR},,#{successFlag,jdbcType=VARCHAR})")
-    int insertSelinfoSoldDrugtrac(String id, String selinfoSoldId, String tracCodg, String successFlag);
+    int insertSelinfoSoldDrugtrac(@Param("id") String id, 
+                                 @Param("selinfoSoldId") String selinfoSoldId, 
+                                 @Param("tracCodg") String tracCodg, 
+                                 @Param("successFlag") String successFlag);
 
     @Select("select * from selinfo_sold where patient_id=#{patientId} and times=#{times} and order_no=#{orderNo} and charge_item_code=#{chargeItemCode} and real_no=#{realNo}")
-    List<SelinfoSold> getSelinfoSoldList(String patientId, Integer times, Integer orderNo, String chargeItemCode, Integer realNo);
+    List<SelinfoSold> getSelinfoSoldList(@Param("patientId") String patientId, 
+                                         @Param("times") Integer times, 
+                                         @Param("orderNo") Integer orderNo, 
+                                         @Param("chargeItemCode") String chargeItemCode, 
+                                         @Param("realNo") Integer realNo);
 
     @Select("<script>" +
             "select * from selinfo_sold_drugtrac " +

+ 1 - 1
src/main/resources/static/js/mz/west_pharmacy_send.js

@@ -1899,7 +1899,7 @@ function saveRefundMedicine() {
                     let times = firstItem.times;
                     let receiptNo = firstItem.receipt_no;
                     let orderNo = firstItem.order_no;
-                    let realNo = firstItem.real_no;
+                    let realNo = Math.abs(firstItem.real_no); // 保证 realNo 为正数
                     let name = firstItem.name;
                     
                     console.log('退药医保接口参数:', {