Преглед изворни кода

字符串類型的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);