Преглед на файлове

字符串類型的sql要加引號

hurugang преди 3 години
родител
ревизия
9551216e57
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/cn/hnthyy/thmz/mapper/his/mz/MzDepositFileMapper.java

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

@@ -275,7 +275,7 @@ public interface MzDepositFileMapper {
      * @param times
      * @return
      */
-    @Select("select count(1) from mz_deposit_file where patient_id =#{patientId} and times=#{times} and pay_mark =0 and cheque_type=2 ")
+    @Select("select count(1) from mz_deposit_file where patient_id =#{patientId} and times=#{times} and pay_mark =0 and cheque_type='2' ")
     int countYbZf(@Param(value = "patientId") String patientId, @Param("times") Integer times);