Przeglądaj źródła

修复发票打印问题

hurugang 5 lat temu
rodzic
commit
43e242674f

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

@@ -99,7 +99,7 @@ public interface MzPatientMiMapper {
                  "<when test='icCardNo!=null'>",
                     ",ic_card_no =#{icCardNo,jdbcType=CHAR}",
                  "</when>",
-                 "<when test='birthDay!=null'>",
+                 "<when test='phoneNo!=null'>",
                     ",phone_no =#{phoneNo,jdbcType=CHAR}",
                  "</when>",
                  "<when test='address!=null'>",

+ 1 - 0
src/main/java/cn/hnthyy/thmz/mapper/his/MzReceiptSerialMapper.java

@@ -116,6 +116,7 @@ public interface MzReceiptSerialMapper {
             "<when test='receiptNo!=null'>",
             " and receipt_no=#{receiptNo}",
             "</when>",
+            " order by receipt_bill desc ",
             "</script>"})
     List<MzReceiptSerial> selectReceiptDetails(@Param(value = "patientId") String patientId, @Param("times") Integer times, @Param("receiptNo") Integer receiptNo);